go-datadog-api
go-datadog-api copied to clipboard
State support
Follow up from #163
When reading up on the API doco at https://docs.datadoghq.com/api/?lang=bash#monitors I noticed there are quite a few changes possible in regards to states:
Input
- [ ] group_states: could be "all" or "alert,warn" used as a an argument to getting monitor details
Output
- [x] state: empty or contains an array of groups, consisting of hosts
- [x] overall_state: *string, example "Alert" -as seen in example of "resolve monitor" #163
- [x] overall_state_modified: *string: "2017-08-11T12:21:05.949182+00:00" -as seen in example of "resolve monitor"