Created
June 18, 2014 05:10
-
-
Save eddywashere/70b4861214d4206191b0 to your computer and use it in GitHub Desktop.
Example webhook data from Rackspace Cloud Monitoring
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"event_id": "12345678910:1403052700000:OK", | |
"log_entry_id": "123456789101234567891012345678910", | |
"details": { | |
"target": "rackspace.com", | |
"timestamp": 1403052704485, | |
"metrics": { | |
"duration": { | |
"type": "I", | |
"data": 240, | |
"unit": "milliseconds" | |
}, | |
"tt_firstbyte": { | |
"type": "I", | |
"data": 161, | |
"unit": "milliseconds" | |
}, | |
"bytes": { | |
"type": "i", | |
"data": 3605, | |
"unit": "bytes" | |
}, | |
"tt_connect": { | |
"type": "I", | |
"data": 80, | |
"unit": "milliseconds" | |
}, | |
"code": { | |
"type": "s", | |
"data": "200", | |
"unit": "unknown" | |
}, | |
"truncated": { | |
"type": "I", | |
"data": 0, | |
"unit": "bytes" | |
} | |
}, | |
"state": "OK", | |
"status": "HTTP server is functioning normally", | |
"txn_id": "12345678910123456789101234567891012345678910", | |
"collector_address_v4": "123.123.123.123", | |
"collector_address_v6": "1234:1234:1234:1234:1234:1234:1234:1234", | |
"observations": [ | |
{ | |
"monitoring_zone_id": "mzlon", | |
"state": "OK", | |
"status": "HTTP server is functioning normally", | |
"timestamp": 1403052704485 | |
}, | |
{ | |
"monitoring_zone_id": "mzord", | |
"state": "CRITICAL", | |
"status": "HTTP server responding with 4xx status", | |
"timestamp": 1403052658565 | |
}, | |
{ | |
"monitoring_zone_id": "mzdfw", | |
"state": "OK", | |
"status": "HTTP server is functioning normally", | |
"timestamp": 1403052703638 | |
} | |
] | |
}, | |
"entity": { | |
"id": "12345678910", | |
"label": "RACKSPACE", | |
"ip_addresses": { | |
"access_ip0_v6": "1234:1234:1234:1234:1234:1234:1234:1234", | |
"eNet0_v4": "123.123.123.123", | |
"public0_v4": "123.123.123.123", | |
"access_ip1_v4": "123.123.123.123", | |
"private0_v4": "123.123.123.1231", | |
"public1_v6": "1234:1234:1234:1234:1234:1234:1234:1234" | |
}, | |
"metadata": null, | |
"managed": false, | |
"uri": "https://server-uri", | |
"agent_id": "12345678910", | |
"created_at": 1386275912424, | |
"updated_at": 1398271898655 | |
}, | |
"check": { | |
"id": "123456", | |
"label": "Rackspace.com", | |
"type": "remote.http", | |
"details": { | |
"url": "http://rackspace.com", | |
"body": null, | |
"method": "GET", | |
"auth_user": null, | |
"auth_password": null, | |
"follow_redirects": true, | |
"payload": null | |
}, | |
"monitoring_zones_poll": [ | |
"mzdfw", | |
"mzlon", | |
"mzord" | |
], | |
"timeout": 30, | |
"period": 60, | |
"target_alias": null, | |
"target_hostname": "rackspace.com", | |
"target_resolver": "IPv4", | |
"disabled": false, | |
"metadata": {}, | |
"confd_name": null, | |
"confd_hash": null, | |
"created_at": 1393027742405, | |
"updated_at": 1403052701966 | |
}, | |
"alarm": { | |
"id": "123456", | |
"label": "Status code", | |
"check_id": "123456", | |
"criteria": "if (metric['code'] regex '4[0-9][0-9]') {\n return new AlarmStatus(CRITICAL, 'HTTP server responding with 4xx status');\n}\n\nif (metric['code'] regex '5[0-9][0-9]') {\n return new AlarmStatus(CRITICAL, 'HTTP server responding with 5xx status');\n}\n\nreturn new AlarmStatus(OK, 'HTTP server is functioning normally');\n", | |
"disabled": false, | |
"notification_plan_id": "123456", | |
"metadata": { | |
"template_name": "remote.http_status_code" | |
}, | |
"confd_name": null, | |
"confd_hash": null, | |
"created_at": 1393027747802, | |
"updated_at": 1403046068698 | |
}, | |
"tenant_id": "123123123" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment