auths
objectreturn
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps) => {
}
const axios = require("axios")
// THIS NEW EVENT FIELD IS INSERTED INTO THE BODY OF THE GRAFANA WEBHOOK EVENT
$event.body.new_data = "NEW VALUE HERE"
const options = {
method: "POST",
// CHANGE THIS URL TO THE URL FOR YOUR SERVICE NOW INCOMING WEBHOOK
url: 'https://en1lkcjsapobv.x.pipedream.net',
data: JSON.stringify($event.body),
headers: {
'content-type': 'application/json'
}
}
await axios(options)