diff --git a/.apigentools-info b/.apigentools-info index 71f9ec744a..7fa50040bd 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-03-17 17:20:24.454374", - "spec_repo_commit": "29344bf2" + "regenerated": "2025-03-18 00:13:53.905784", + "spec_repo_commit": "2738500d" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-03-17 17:20:24.469287", - "spec_repo_commit": "29344bf2" + "regenerated": "2025-03-18 00:13:53.920848", + "spec_repo_commit": "2738500d" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index c44a16f378..925746bc0e 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -29328,7 +29328,7 @@ paths: - description: 'When specified, shows additional information about the group states. - Choose one or more from `all`, `alert`, `warn`, and `no data` (`no%20data`).' + Choose one or more from `all`, `alert`, `warn`, and `no data`.' in: query name: group_states required: false @@ -29913,7 +29913,7 @@ paths: - apiKeyAuth: [] appKeyAuth: [] - AuthZ: - - monitors_write + - monitors_read summary: Validate a monitor tags: - Monitors @@ -29921,7 +29921,7 @@ paths: x-permission: operator: OR permissions: - - monitors_write + - monitors_read /api/v1/monitor/{monitor_id}: delete: description: Delete the specified monitor @@ -30214,7 +30214,7 @@ paths: - apiKeyAuth: [] appKeyAuth: [] - AuthZ: - - monitors_write + - monitors_read summary: Validate an existing monitor tags: - Monitors @@ -30222,7 +30222,7 @@ paths: x-permission: operator: OR permissions: - - monitors_write + - monitors_read /api/v1/monthly_custom_reports: get: deprecated: true @@ -36863,7 +36863,10 @@ tags: scopes from alerting. Downtime settings, which can be scheduled with start and - end times, prevent all alerting related to specified Datadog tags.' + end times, prevent all alerting related to specified Datadog tags. + + + **Note:** `curl` commands require [url encoding](https://curl.se/docs/url-syntax.html).' name: Downtimes - description: 'The Event Management API allows you to programmatically post events to the Events Explorer and fetch events from the Events Explorer. See the [Event @@ -36940,7 +36943,10 @@ tags: notifies your team when a defined threshold has exceeded. - For more information, see [Creating Monitors](https://docs.datadoghq.com/monitors/create/types/).' + For more information, see [Creating Monitors](https://docs.datadoghq.com/monitors/create/types/). + + + **Note:** `curl` commands require [url encoding](https://curl.se/docs/url-syntax.html).' externalDocs: description: Find out more at url: https://docs.datadoghq.com/monitors/create/types/ diff --git a/src/datadog_api_client/v1/api/downtimes_api.py b/src/datadog_api_client/v1/api/downtimes_api.py index 2945ed3730..bb241ffac6 100644 --- a/src/datadog_api_client/v1/api/downtimes_api.py +++ b/src/datadog_api_client/v1/api/downtimes_api.py @@ -23,6 +23,8 @@ class DowntimesApi: you greater control over monitor notifications by allowing you to globally exclude scopes from alerting. Downtime settings, which can be scheduled with start and end times, prevent all alerting related to specified Datadog tags. + + **Note:** ``curl`` commands require `url encoding `_. """ def __init__(self, api_client=None): diff --git a/src/datadog_api_client/v1/api/monitors_api.py b/src/datadog_api_client/v1/api/monitors_api.py index 8c860be4ce..0e6ce57e08 100644 --- a/src/datadog_api_client/v1/api/monitors_api.py +++ b/src/datadog_api_client/v1/api/monitors_api.py @@ -28,6 +28,8 @@ class MonitorsApi: notifies your team when a defined threshold has exceeded. For more information, see `Creating Monitors `_. + + **Note:** ``curl`` commands require `url encoding `_. """ def __init__(self, api_client=None): @@ -679,7 +681,7 @@ def list_monitors( Get all monitors from your organization. :param group_states: When specified, shows additional information about the group states. - Choose one or more from ``all`` , ``alert`` , ``warn`` , and ``no data`` ( ``no%20data`` ). + Choose one or more from ``all`` , ``alert`` , ``warn`` , and ``no data``. :type group_states: str, optional :param name: A string to filter monitors by name. :type name: str, optional @@ -743,7 +745,7 @@ def list_monitors_with_pagination( Provide a paginated version of :meth:`list_monitors`, returning all items. :param group_states: When specified, shows additional information about the group states. - Choose one or more from ``all`` , ``alert`` , ``warn`` , and ``no data`` ( ``no%20data`` ). + Choose one or more from ``all`` , ``alert`` , ``warn`` , and ``no data``. :type group_states: str, optional :param name: A string to filter monitors by name. :type name: str, optional diff --git a/tests/v1/features/downtimes.feature b/tests/v1/features/downtimes.feature index ccad86b876..fccf366027 100644 --- a/tests/v1/features/downtimes.feature +++ b/tests/v1/features/downtimes.feature @@ -4,7 +4,8 @@ Feature: Downtimes you greater control over monitor notifications by allowing you to globally exclude scopes from alerting. Downtime settings, which can be scheduled with start and end times, prevent all alerting related to specified - Datadog tags. + Datadog tags. **Note:** `curl` commands require [url + encoding](https://curl.se/docs/url-syntax.html). Background: Given a valid "apiKeyAuth" key in the system diff --git a/tests/v1/features/monitors.feature b/tests/v1/features/monitors.feature index 05ef98216e..9bbc6531fa 100644 --- a/tests/v1/features/monitors.feature +++ b/tests/v1/features/monitors.feature @@ -3,7 +3,9 @@ Feature: Monitors [Monitors](https://docs.datadoghq.com/monitors) allow you to watch a metric or check that you care about and notifies your team when a defined threshold has exceeded. For more information, see [Creating - Monitors](https://docs.datadoghq.com/monitors/create/types/). + Monitors](https://docs.datadoghq.com/monitors/create/types/). **Note:** + `curl` commands require [url encoding](https://curl.se/docs/url- + syntax.html). Background: Given a valid "apiKeyAuth" key in the system