I am trying to use a webhook to send data to keen.io
{
"eventName": "librato_",
"url": "https://metrics-api.librato.com/v1/metrics",
"requestType": "POST",
"auth": {
"username": "YOUR_LIBRATO_USERNAME",
"password": "YOUR_LIBRATO_ACCESS_TOKEN"
},
"json": {
"gauges": [
{
"name": "{{SPARK_EVENT_NAME}}",
"value": "{{SPARK_EVENT_VALUE}}",
"source": "{{SPARK_CORE_ID}}"
}
]
},
"mydevices": true
}
Problem is that I cant define an integer. If i remove “” then json format is invalid.
"value": {{SPARK_EVENT_VALUE}} <- invalid json
To support int’s template tags should be different (curly braces aren’t the best choice for json)
"value": ##SPARK_EVENT_VALUE##
Is there any other solution that supports sending ints with webhook?