This repository was archived by the owner on Mar 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
REST
coryb edited this page Jul 26, 2012
·
10 revisions
This will fetch all chaos events in the last 24 hours. Output is always json.
$ curl http://localhost:8080/api/v1/chaos
[
{
"monkeyType": "CHAOS",
"eventType": "CHAOS_TERMINATION",
"eventTime": 1343233763683,
"groupType": "ASG",
"groupName": "simianarmy",
"instanceId": "i-804f7cf8"
},
...
]
Name | Type | Description |
---|---|---|
monkeyType | string | The monkey that created the event |
eventType | string | The event type |
eventTime | long int | The time the event occurred in milliseconds since the epoch |
groupType | string | The group type for the termination (ex: ASG for AutoScalingGroup) |
groupName | string | The group name for the termination (the name of the ASG) |
instanceId | string | The Instance ID that was terminated. |
Any of the above attributes can be passed as query parameters to restrict the query results. There is an added since= query parameter to change the time-frame for the interested events. The default is 24 hours.
$ curl 'http://localhost:8080/api/v1/chaos?groupName=simianarmy&since=1343113200000'
[
{
"monkeyType": "CHAOS",
"eventType": "CHAOS_TERMINATION",
"eventTime": 1343233763683,
"groupType": "ASG",
"groupName": "simianarmy",
"instanceId": "i-804f7cf8"
},
{
"monkeyType": "CHAOS",
"eventType": "CHAOS_TERMINATION",
"eventTime": 1343158781228,
"groupType": "ASG",
"groupName": "simianarmy",
"instanceId": "i-06cae07e"
}
]