Convert a json to a tickscript

Hi,
I would like read a api endpoint ( ex: http://myapp.com/alert) that return a json file and convert it do tickscript or do a direct put in kapacitor api.

{
“myapp”: [{
“metric”: “myapp_businesslogic_requests_total”,
“documentation”: “http: //intranet.xpto/myapp
“alert”: {
“warning”: 110,
“critical”: 130
},
“notification”: “slack”,
“channel”: [“crise”, “time”],
},
{
“metric”: “myapp_businesslogic2_requests_size”,
“documentation”: “http://intranet.xpto/myapp/size
“alert”: {
“warning”: 90,
“critical”: 100
}
“notification”: “slack”,
“channel”: [“time”],
}
]
}

Hi!

If you’re writing in Go, you can construct the pipeline node directly.
If you’re using any other language, you will have to construct the json for the pipeline nodes.