You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand that the timeout occurs because the API call returns a very large dataset and exceeds the allowed time. If we use "filters" in the API requests and the response dataset is small, the timeout does not occur. Goes very well.
We are using pagination in these functions like:
while True:
monitors = self.monitors_api.list_monitors(
name=monitor_name,
monitor_tags=tags,
page=page,
page_size=page_size,
with_downtimes=True
)
if not monitors:
break
all_monitors.extend(monitors)
page += 1
time.sleep(1)
However, the timeout duration appears to remain the same.
This issue has been automatically marked as stale because it has not had activity in the last 30 days. Note that the issue will not be automatically closed, but this notification will remind us to investigate why there's been inactivity. Thank you for participating in the Datadog open source community.
If you would like this issue to remain open:
Verify that you can still reproduce the issue in the latest version of this project.
Comment that the issue is still reproducible and include updated details requested in the issue template.
I have some concerns about how the
datadog-api-client
library interacts with the Datadog API.Specifically, in the case of monitors, when calling the
list_monitors()
function (https://datadog-api-client.readthedocs.io/en/latest/datadog_api_client.v1.api.html#datadog_api_client.v1.api.monitors_api.MonitorsApi.list_monitors), we receive a Requested timeout error after approximately 10 seconds.The same happens with
search_monitors()
(https://datadog-api-client.readthedocs.io/en/latest/datadog_api_client.v1.api.html#datadog_api_client.v1.api.monitors_api.MonitorsApi.search_monitors).I understand that the timeout occurs because the API call returns a very large dataset and exceeds the allowed time. If we use "filters" in the API requests and the response dataset is small, the timeout does not occur. Goes very well.
We are using pagination in these functions like:
However, the timeout duration appears to remain the same.
We also pass the
Configuration
object to the Datadog API client (APIClient
), including therequest_timeout
parameter (https://datadog-api-client.readthedocs.io/en/latest/datadog_api_client.v1.html#datadog_api_client.v1.Configuration), but the timeout behavior still seems unchanged.Could you have some information about how the
datadog-api-client
call timeout works and whether it is possible to modify it?Thank you very much.
The text was updated successfully, but these errors were encountered: