-
Notifications
You must be signed in to change notification settings - Fork 43
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
Search Incidents Api error #1695
Comments
Hi, I think the doc is wrong, the error message gives you the proper syntax |
Hi @therve no problem, if there is a way to use a time range that would be great, also could you please update the doc. |
👋 Hi @neerajtiwar — Engineering manager of the Incident Management team here. Sorry it's taken us awhile to get back to you. Thank you for flagging this issue. We have removed the confusing language in our API documentation. You can use the terms Example query: |
Fixed in #1699 |
Describe the bug
As per the datadog Api docs its mentioned to use the browser query into the query parameter of the Api
After entering a search query in your
Incidents page, use the query parameter value in the URL of the page as the value for this parameter.
which sometimes also contains thefrom_ts
&to_ts
fields however when used with these fields the API gives the following error which i think should be working, I want to use these params to only search for incidents within a specific timeframe.Exception
my fucntion
where search_query is
"state:(active OR stable OR resolved OR completed)&from_ts=1693233872794&to_ts=1695912272794"
I also tried with raw query like
state%3A%28active%20OR%20stable%20OR%20resolved%20OR%20completed%29&page=1&from_ts=1693233872794&to_ts=1695912272794
but it also doesn't work.To Reproduce
Steps to reproduce the behavior:
Expected behavior
the API should return the response without any errors
Screenshots
If applicable, add screenshots to help explain your problem.
Environment and Versions (please complete the following information):
A clear and precise description of your setup:
Additional context
when running inside ipython on my mac it works fine but inside the container it doesn't
The text was updated successfully, but these errors were encountered: