Skip to content

Instantly share code, notes, and snippets.

@joemiller
Created February 11, 2020 15:33
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save joemiller/f54d464bbbd97ad956935771489f6199 to your computer and use it in GitHub Desktop.
stackdriver webhook payload v1.2 example
{
"incident": {
"incident_id": "0.lj2va6zdkemq",
"resource_id": "",
"resource_name": "foobar appserver",
"resource": {
"type": "gce_instance",
"labels": {
"instance_id": "8979287136362607111",
"zone": "us-central1-c"
}
},
"started_at": 1580920957,
"policy_name": "test",
"condition_name": "GCE VM Instance - CPU usage",
"url": "https://app.google.stackdriver.com/incidents/0.lj2va6zdkemq?project=foobar",
"documentation": {
"content": "docs here. blah blha\nfoof bar\nlorem ipsum, son",
"mime_type": "text/markdown"
},
"state": "open",
"ended_at": null,
"summary": "CPU usage for foobar appserver with metric labels {instance_name=appserver} is above the threshold of 0.01 with a value of 4.997."
},
"version": "1.2"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment