...
The Sources
field of the following snippet is a string representation of a JSON object the content of which can differ; hence, the whole Sources
object is added to the available draggable (dynamic) fields so that the custom fields can be extracted as needed. For example, to add the dsname
field of the Sources
object to alerts, useĀ {{sources.dsname}}
.
Expand |
---|
title | Create alert payload (in JSON format) |
---|
|
Code Block |
---|
{
"severity": "Critical",
"sources": "{\"AWSUniqueId\":\"i-274xxxx1_us-west-2_97xxxxxxxx\",\"dsname\":\"value\",\"host\":\"ip-172.us-west-2.compute.internal\",\"plugin\":\"signalfx-metadata\",\"plugin_instance\":\"utilization\",\"sf_metric\":\"memory.utilization\"}",
"rule": "Create Jira Service Management Alert",
"alertTimestamp": 1463567930000,
"eventType": "_SF_PLOT_KEY_Ciu5eDlAgAc_9_3",
"incidentId": "CiYI3ipAgnA",
"detector": "Memory Used % Detector",
"detectorUrl": "https://app.signalfx.com/#/detector/Ciu5eDlAgAc/edit",
"currentValue": "4.07361626150254",
"status": "too high"
} |
|
Expand |
---|
title | Close alert payload (in JSON format) |
---|
|
Code Block |
---|
{
"severity": "Critical",
"sources": "{\"AWSUniqueId\":\"i-2xxx1_us-west-2_974xxxxxxx\",\"dsname\":\"value\",\"host\":\"ip-172-x.us-west-2.compute.internal\",\"plugin\":\"signalfx-metadata\",\"plugin_instance\":\"utilization\",\"sf_metric\":\"memory.utilization\"}",
"rule": "Create Jira Service Management Alert",
"alertTimestamp": 1463568222190,
"eventType": "_SF_PLOT_KEY_Ciu5eDlAgAc_9_3",
"incidentId": "CiYI3ipAgnA",
"detector": "Memory Used % Detector",
"detectorUrl": "https://app.signalfx.com/#/detector/Ciu5eDlAgAc/edit",
"currentValue": "4.07361626150254",
"status": "ok"
} |
|
...
See also
Explore integration types
...