diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 3013d46b7c..39454b02d9 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -38007,15 +38007,6 @@ paths: schema: format: int64 type: integer - - description: |- - Whether to return only deleted service level objective objects. - example: true - in: query - name: is_deleted - required: false - schema: - default: false - type: boolean responses: "200": content: diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index a5b1012c5d..fcf5fd48e2 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -168213,7 +168213,12 @@ paths: permissions: - metric_tags_write get: - description: Returns the tag configuration for the given metric name. + description: |- + Returns the tag configuration for the given metric name. + + A metric may exist and submit data without having a tag configuration. If no tag configuration exists + for the metric, this endpoint returns `404 Not Found`. This response does not indicate that the metric + itself is missing. operationId: ListTagConfigurationByName parameters: - $ref: "#/components/parameters/MetricName" @@ -168246,7 +168251,7 @@ paths: application/json: schema: $ref: "#/components/schemas/APIErrorResponse" - description: Not Found + description: No tag configuration exists for the metric "429": content: application/json: diff --git a/src/datadog_api_client/v1/api/service_level_objectives_api.py b/src/datadog_api_client/v1/api/service_level_objectives_api.py index f8641ce541..6b2fb8f22d 100644 --- a/src/datadog_api_client/v1/api/service_level_objectives_api.py +++ b/src/datadog_api_client/v1/api/service_level_objectives_api.py @@ -273,11 +273,6 @@ def __init__(self, api_client=None): "attribute": "offset", "location": "query", }, - "is_deleted": { - "openapi_types": (bool,), - "attribute": "is_deleted", - "location": "query", - }, }, headers_map={ "accept": ["application/json"], @@ -529,7 +524,6 @@ def list_slos( metrics_query: Union[str, UnsetType] = unset, limit: Union[int, UnsetType] = unset, offset: Union[int, UnsetType] = unset, - is_deleted: Union[bool, UnsetType] = unset, ) -> SLOListResponse: """Get all SLOs. @@ -547,8 +541,6 @@ def list_slos( :type limit: int, optional :param offset: The specific offset to use as the beginning of the returned response. :type offset: int, optional - :param is_deleted: Whether to return only deleted service level objective objects. - :type is_deleted: bool, optional :rtype: SLOListResponse """ kwargs: Dict[str, Any] = {} @@ -570,9 +562,6 @@ def list_slos( if offset is not unset: kwargs["offset"] = offset - if is_deleted is not unset: - kwargs["is_deleted"] = is_deleted - return self._list_slos_endpoint.call_with_http_info(**kwargs) def list_slos_with_pagination( @@ -584,7 +573,6 @@ def list_slos_with_pagination( metrics_query: Union[str, UnsetType] = unset, limit: Union[int, UnsetType] = unset, offset: Union[int, UnsetType] = unset, - is_deleted: Union[bool, UnsetType] = unset, ) -> collections.abc.Iterable[ServiceLevelObjective]: """Get all SLOs. @@ -602,8 +590,6 @@ def list_slos_with_pagination( :type limit: int, optional :param offset: The specific offset to use as the beginning of the returned response. :type offset: int, optional - :param is_deleted: Whether to return only deleted service level objective objects. - :type is_deleted: bool, optional :return: A generator of paginated results. :rtype: collections.abc.Iterable[ServiceLevelObjective] @@ -627,9 +613,6 @@ def list_slos_with_pagination( if offset is not unset: kwargs["offset"] = offset - if is_deleted is not unset: - kwargs["is_deleted"] = is_deleted - local_page_size = get_attribute_from_path(kwargs, "limit", 1000) endpoint = self._list_slos_endpoint set_attribute_from_path(kwargs, "limit", local_page_size, endpoint.params_map) diff --git a/src/datadog_api_client/v2/api/metrics_api.py b/src/datadog_api_client/v2/api/metrics_api.py index 4f59123f0d..f404648efc 100644 --- a/src/datadog_api_client/v2/api/metrics_api.py +++ b/src/datadog_api_client/v2/api/metrics_api.py @@ -1282,6 +1282,10 @@ def list_tag_configuration_by_name( Returns the tag configuration for the given metric name. + A metric may exist and submit data without having a tag configuration. If no tag configuration exists + for the metric, this endpoint returns ``404 Not Found``. This response does not indicate that the metric + itself is missing. + :param metric_name: The name of the metric. :type metric_name: str :rtype: MetricTagConfigurationResponse diff --git a/tests/v2/features/metrics.feature b/tests/v2/features/metrics.feature index 30517072c6..e5e78d4a9c 100644 --- a/tests/v2/features/metrics.feature +++ b/tests/v2/features/metrics.feature @@ -487,12 +487,12 @@ Feature: Metrics And the response "data.id" is equal to "static_test_metric_donotdelete" @generated @skip @team:DataDog/metrics-experience - Scenario: List tag configuration by name returns "Not Found" response + Scenario: List tag configuration by name returns "No tag configuration exists for the metric" response Given a valid "appKeyAuth" key in the system And new "ListTagConfigurationByName" request And request contains "metric_name" parameter from "REPLACE.ME" When the request is sent - Then the response status is 404 Not Found + Then the response status is 404 No tag configuration exists for the metric @replay-only @skip-validation @team:DataDog/metrics-experience Scenario: List tag configuration by name returns "Success" response