Custumize the JSON send with webhook alert

I need to send a costum JSON as webhook. I have set everything correctly but I do not know where I have to go to personalize it.

As you see from the screenshot I have a state with a separate label “TipoTest”

I want to send the label when the alert fires as contento of the JSON

How do I do that?

thanks for editing the title but… any help?

So it turned out that Grafana was already sending that Label in the JSON but it was my webhook it was reading it incorrectly.

To process it via Django, or Python in general, you need to get the request body, decode in utf-8 and load as json with:

req_dictionary = json.loads(request.body.decode("utf-8"))

than, you have to access the labels key with