Open Arkaniad opened 1 year ago
Agreed, currently I do something like:
{
"name": "webhook-name",
"transformationFunction": "result={....a lot of escaping within JS}"
}
...which gets really messy escaping within transformationFunction
. I've seen yourself @Arkaniad and other users post full JS snippets; is there currently a more elegant way to do it or are you folks just sanitizing the escape characters when you post issues on here? I feel like I might be missing something here.
Semi related to #635 - if we could do this managing a unique webhook transform would be less complex
Right now we're stringing together AlertManager alerts from multiple clusters into multiple channels. Our current workflow per-cluster-channel is thus:
Per environment:
This isn't a lot, but we are already having channels with ~5 webhooks each and if we have to update transforms it's laborious to do so to each and every one by hand.
It would be splendid if we could do something like this: