datadog-api-client-python icon indicating copy to clipboard operation
datadog-api-client-python copied to clipboard

get_downtime API always returns None for monitors

Open dkirrane opened this issue 1 year ago • 2 comments

Describe the bug get_downtime API does not return the list Impacted Monitors. It always return None

        from datadog_api_client.v2.api.downtimes_api import DowntimesApi

        api_response = datadog_downtimes_api.get_downtime(
            downtime_id=downtime_id,
            include='monitor'
            # include='created_by,monitor'
        )
        print(api_response)

Actual Response always has

'relationships': {'monitor': {'data': None}}, 'type': 'downtime'},

Expected List of monitors impacted by the Downtime.

Using datadog-api-client==2.29.0

dkirrane avatar Nov 14 '24 11:11 dkirrane