Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kfanadka-salesforce opened this issue Apr 9, 2019 · 0 comments

Comments

@kfanadka-salesforce
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant