The /monitor/${MONITOR_ID} endpoint will return a state field if you supply the group_states query parameter. This field contains a record for each host with the status of that monitor for that host. As far as I know, this is the only way in the DataDog API to query whether or not a given monitor is alerting or not for a given host.
However, the Haskell API does not yet support querying this extra information as far as I can tell. It seems like the most appropriate place to put this information would be as a new field underneath the Monitor type.
The
/monitor/${MONITOR_ID}endpoint will return astatefield if you supply thegroup_statesquery parameter. This field contains a record for each host with the status of that monitor for that host. As far as I know, this is the only way in the DataDog API to query whether or not a given monitor is alerting or not for a given host.However, the Haskell API does not yet support querying this extra information as far as I can tell. It seems like the most appropriate place to put this information would be as a new field underneath the
Monitortype.