Failing to update with MonitorUpdateRequest
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện lệnh gọi cập nhật monitor với JSON đã xuất và môi trường datadog-api-client-2.26.0, sau đó kiểm tra MonitorUpdateRequest và phương thức cập nhật monitor gọi nó. Hoàn thành khi dữ liệu monitor đã xuất có thể được phân tích cú pháp và các monitor được cập nhật mà không gặp lỗi thuộc tính restriction_policy.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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:
- Export monitor as a JSON
- Add to code base
- Use the datadog api to update monitoring
- 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.
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
- Ngôn ngữ chính
- Python
- Star
- 166
- Fork
- 55
- Merge trung bình
- 2 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 73
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DataDog/datadog-api-client-python
-
stale
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 72/100
DataDog/datadog-api-client-python#3535 · 1 bình luận ·
-
kind/bug stale
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 66/100
DataDog/datadog-api-client-python#3717 · 3 bình luận ·
-
kind/bug stale
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 75/100
DataDog/datadog-api-client-python#3656 · 1 bình luận ·
-
kind/bug stale
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
DataDog/datadog-api-client-python#3120 · 1 bình luận ·
-
stale
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
DataDog/datadog-api-client-python#2986 · 1 bình luận ·
Tất cả issue của DataDog/datadog-api-client-python
Issue tương tự
-
essnmx good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
-
[Feature] 奇物选择添加优先级 Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
syfoud/Simulated_Scepter#174 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Giskard-AI/giskard-oss#2840 · 1 bình luận ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success Đang mởarea: repo bug perceived difficulty: 2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
yeti-platform/yeti#1380 ·