Alerts Question Template
I want to pass-in the value of the host for which the alert violation occurred in the webhook. I understand that the name of the target information is passed under the JSON object represented by $TARGETS. I want to leverage the name
key, i.e. name of the target or entity passed in the $TARGETS outside of the $TARGETS variable. Is it possible?
Something like this:
{
...........
"entity": "$NAME",
"targets": "$TARGETS",
.....
}
Is it possible to do something like this?
The problem is that we have an existing system which does process webhooks from various systems but expects all the parameters to be of type String
. So, it fails to parse the JSON object denoted by $TARGETS.