Skip to content

Failing to update with MonitorUpdateRequest #2043

Open
@Doetheman

Description

@Doetheman

Describe the bug
A clear and concise description of what the bug is.

When my team updates monitoring via the datadog api client using the calling update monitor method the MonitorUpdateRequest returns an attribute error.

datadog_api_client.exceptions.ApiAttributeError: MonitorUpdateRequest has no attribute 'restriction_policy' at ['restriction_policy']

To Reproduce
Steps to reproduce the behavior:

  1. Export monitor as a JSON
  2. Add to code base
  3. Use the datadog api to update monitoring
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Our monitors should update and not return an error when parsing the JSON.

Screenshots
If applicable, add screenshots to help explain your problem.
Screenshot 2024-07-12 at 12 17 13 PM

Environment and Versions (please complete the following information):
A clear and precise description of your setup:

Latest version of datadog api client, datadog-api-client-2.26.0

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