zorkian / go-datadog-api

A Go implementation of the Datadog API.
BSD 3-Clause "New" or "Revised" License
183 stars 156 forks source link

[monitor] Support group_states parameter for monitor GET #332

Closed peterashwell closed 3 years ago

peterashwell commented 3 years ago

The monitor GET endpoint has the following optional parameter group_states

/v1/monitor/<monitor_id>?group_states=<states>

this can be all, alert, etc to indicate that you want only certain monitor groups. all is important because the default if not specified is only to have the overall state of the monitor.

For certain applications having all the monitor groups is very useful, hence this PR.