Skip to content

get_downtime API always returns None for monitors #2262

Description

@dkirrane

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions