Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Failing to update with MonitorUpdateRequest

Open
#2,043 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
api

Research direction

Start by reproducing the update monitor call with the exported JSON and the datadog-api-client-2.26.0 environment, then inspect MonitorUpdateRequest and the calling update monitor method. Done means the exported monitor data can be parsed and monitors update without the restriction_policy attribute error.

Written by the indexing model from the issue text.

Description

kind/bug stale

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

Dominant language
Python
Stars
166
Forks
55
Avg merge
2d 17h
Merged PRs (30d)
73

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DataDog/datadog-api-client-python

All issues in DataDog/datadog-api-client-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.