Dealing with json http posts in kapacitor


I’ve tried message and details, but it seems that kapacitor escapes the json formatted data I need to send. Is there a way to let it be more ‘raw’ json?


var trigger = data
.crit(lambda: “value” > crit)
“gen_subject”:“TEST Alert - {{.Group}} received {{.Level}} alert”,
“alert_message”:“mytest alert- group- {{.Group}} - {{.Level}} - {{ index .Fields “value” }} at {{.Time}}”,
“application”:’{{index .Tags “custom”}}’,
“metric_name”:’{{ index .Fields “name” }}’