`MonitorsApi.list_monitors` - datadog_api_client.exceptions.ApiValueError: Invalid value for month_starts, must be a value less than or equal to 1
Describe the bug We (Keep - https://github.com/keephq/keep) try to get all monitors from datadog. However, a customer of ours fails to get them with this exception.
We don't have control on their monitors.
To Reproduce I'm not sure about what monitors they have configured on their side
with ApiClient(self.configuration) as api_client:
api = MonitorsApi(api_client)
api.list_monitors()
Expected behavior I'll get list of monitors
Environment and Versions (please complete the following information):
2.31.0
for internal purpose, a good example is on org:2 monitor 145163520 the issues seems to be the content validation in the python wrapper also visible if you use the get_monitor call on the mentioned id
or any monitor that uses a monthly sum schedule that does not start on day 1
Thanks for your contribution!
This issue has been automatically marked as stale because it has not had activity in the last 30 days. Note that the issue will not be automatically closed, but this notification will remind us to investigate why there's been inactivity. Thank you for participating in the Datadog open source community.
If you would like this issue to remain open:
-
Verify that you can still reproduce the issue in the latest version of this project.
-
Comment that the issue is still reproducible and include updated details requested in the issue template.
🐛 Bug still reproducible on latest release (2.43.0)
This issue is still present on the latest version of the client (2.43.0).
Invalid value for `month_starts`, must be a value less than or equal to `1`
This prevents us from programmatically retrieving monitors in production.
It would be much better if the API could return all monitors that can be retrieved successfully, instead of failing the entire call because of a single problematic monitor.