Skip to content

Instantly share code, notes, and snippets.

@sauravvishal8797
Created April 1, 2017 18:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sauravvishal8797/531f11b685d99f3d87cad567b0d3c5bc to your computer and use it in GitHub Desktop.
Save sauravvishal8797/531f11b685d99f3d87cad567b0d3c5bc to your computer and use it in GitHub Desktop.
Alerting metadata including severity, actionPlugin etc.
{
"triggers": [
{
"trigger": {
"id": "cpu-load trigger",
"name": "Trigger for excessive cpu-load",
"severity": "HIGH",
"enabled": true,
"actions": [
{
"actionPlugin": "email",
"actionId": "notify-admin"
}
]
},
"conditions": [
{
"triggerMode": "FIRING",
"type": "threshold",
"dataId": "cpu_load",
"operator": "LT",
"threshold": 0.2
}
]
}
],
"actions": [
{
"actionPlugin": "email",
"actionId": "notify-admin",
"properties": {
"to": "admin@example.org"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment