brettlangdon / node-dogapi

Datadog API Node.JS Client
https://brettlangdon.github.io/node-dogapi/
105 stars 45 forks source link

state object is missing when get a monitor using dogapi.monitor.getAll(..) #63

Open kfanadka-salesforce opened 5 years ago

kfanadka-salesforce commented 5 years ago

When I get a monitor I expect to have a state object in the response, the state includes information like the effected hosts from the alert. dogapi.monitor.getAll(['alert'],(err, monitors) => {...

I expect: "state": {"groups": {"host:data-tests-mongo-prod-mongo-127-conf-0": {"status": "OK", "last_triggered_ts": null, "last_nodata_ts": null, "name": "host:data-tests-mongo-prod-mongo-127-conf-0", "last_notified_ts": null, "last_resolved_ts": null}

but actually, I don't get the state object, the state object I'm showing above is from python datadog : https://github.com/DataDog/datadogpy

Any idea why it's missing?