From 938ba898f2193a4b37f40b771b0873573e88d3a5 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 29 Oct 2026 15:33:24 +0000 Subject: [PATCH] Regenerate client from commit 94e6018 of spec repo --- .generator/schemas/v2/openapi.yaml | 308 ------------------ .../CreateBulkTagsMetricsConfiguration.py | 44 --- .../DeleteBulkTagsMetricsConfiguration.py | 35 -- src/datadog_api_client/v2/api/metrics_api.py | 91 ------ .../model/metric_bulk_configure_tags_type.py | 35 -- .../v2/model/metric_bulk_tag_config_create.py | 65 ---- ...etric_bulk_tag_config_create_attributes.py | 96 ------ .../metric_bulk_tag_config_create_request.py | 40 --- .../v2/model/metric_bulk_tag_config_delete.py | 65 ---- ...etric_bulk_tag_config_delete_attributes.py | 42 --- .../metric_bulk_tag_config_delete_request.py | 40 --- .../metric_bulk_tag_config_email_list.py | 25 -- .../model/metric_bulk_tag_config_response.py | 43 --- .../v2/model/metric_bulk_tag_config_status.py | 66 ---- ...etric_bulk_tag_config_status_attributes.py | 73 ----- .../metric_bulk_tag_config_tag_name_list.py | 25 -- src/datadog_api_client/v2/models/__init__.py | 24 -- .../test-runner-data/manifest.json | 7 - ...ple-metrics-returns-accepted-response.json | 40 --- .../test-server-data/v2/metrics.json | 130 -------- tests/v2/features/metrics.feature | 49 --- tests/v2/features/undo.json | 19 -- 22 files changed, 1362 deletions(-) delete mode 100644 examples/v2/metrics/CreateBulkTagsMetricsConfiguration.py delete mode 100644 examples/v2/metrics/DeleteBulkTagsMetricsConfiguration.py delete mode 100644 src/datadog_api_client/v2/model/metric_bulk_configure_tags_type.py delete mode 100644 src/datadog_api_client/v2/model/metric_bulk_tag_config_create.py delete mode 100644 src/datadog_api_client/v2/model/metric_bulk_tag_config_create_attributes.py delete mode 100644 src/datadog_api_client/v2/model/metric_bulk_tag_config_create_request.py delete mode 100644 src/datadog_api_client/v2/model/metric_bulk_tag_config_delete.py delete mode 100644 src/datadog_api_client/v2/model/metric_bulk_tag_config_delete_attributes.py delete mode 100644 src/datadog_api_client/v2/model/metric_bulk_tag_config_delete_request.py delete mode 100644 src/datadog_api_client/v2/model/metric_bulk_tag_config_email_list.py delete mode 100644 src/datadog_api_client/v2/model/metric_bulk_tag_config_response.py delete mode 100644 src/datadog_api_client/v2/model/metric_bulk_tag_config_status.py delete mode 100644 src/datadog_api_client/v2/model/metric_bulk_tag_config_status_attributes.py delete mode 100644 src/datadog_api_client/v2/model/metric_bulk_tag_config_tag_name_list.py delete mode 100644 tests/generated-test/test-runner-data/v2/metrics/configure-tags-for-multiple-metrics-returns-accepted-response.json diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index f5dd9090d3..5ea08de286 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -80103,153 +80103,6 @@ components: $ref: "#/components/schemas/MetricAssetResponseIncluded" type: array type: object - MetricBulkConfigureTagsType: - default: metric_bulk_configure_tags - description: The metric bulk configure tags resource. - enum: - - metric_bulk_configure_tags - example: metric_bulk_configure_tags - type: string - x-enum-varnames: - - BULK_MANAGE_TAGS - MetricBulkTagConfigCreate: - description: Request object to bulk configure tags for metrics matching the given prefix. - properties: - attributes: - $ref: "#/components/schemas/MetricBulkTagConfigCreateAttributes" - id: - $ref: "#/components/schemas/MetricBulkTagConfigNamePrefix" - type: - $ref: "#/components/schemas/MetricBulkConfigureTagsType" - required: - - id - - type - type: object - MetricBulkTagConfigCreateAttributes: - description: Optional parameters for bulk creating metric tag configurations. - properties: - emails: - $ref: "#/components/schemas/MetricBulkTagConfigEmailList" - exclude_tags_mode: - description: |- - When set to true, the configuration will exclude the configured tags and include any other submitted tags. - When set to false, the configuration will include the configured tags and exclude any other submitted tags. - Defaults to false. - type: boolean - include_actively_queried_tags_window: - description: |- - When provided, all tags that have been actively queried are - configured (and, therefore, remain queryable) for each metric that - matches the given prefix. Minimum value is 1 second, and maximum - value is 7,776,000 seconds (90 days). - format: double - maximum: 7776000 - minimum: 1 - type: number - override_existing_configurations: - description: |- - When set to true, the configuration overrides any existing - configurations for the given metric with the new set of tags in this - configuration request. If false, old configurations are kept and - are merged with the set of tags in this configuration request. - Defaults to true. - type: boolean - tags: - $ref: "#/components/schemas/MetricBulkTagConfigTagNameList" - type: object - MetricBulkTagConfigCreateRequest: - description: Wrapper object for a single bulk tag configuration request. - properties: - data: - $ref: "#/components/schemas/MetricBulkTagConfigCreate" - required: - - data - type: object - MetricBulkTagConfigDelete: - description: Request object to bulk delete all tag configurations for metrics matching the given prefix. - properties: - attributes: - $ref: "#/components/schemas/MetricBulkTagConfigDeleteAttributes" - id: - $ref: "#/components/schemas/MetricBulkTagConfigNamePrefix" - type: - $ref: "#/components/schemas/MetricBulkConfigureTagsType" - required: - - id - - type - type: object - MetricBulkTagConfigDeleteAttributes: - description: Optional parameters for bulk deleting metric tag configurations. - properties: - emails: - $ref: "#/components/schemas/MetricBulkTagConfigEmailList" - type: object - MetricBulkTagConfigDeleteRequest: - description: Wrapper object for a single bulk tag deletion request. - properties: - data: - $ref: "#/components/schemas/MetricBulkTagConfigDelete" - required: - - data - type: object - MetricBulkTagConfigEmailList: - description: A list of account emails to notify when the configuration is applied. - example: ["sue@example.com", "bob@example.com"] - items: - description: An email address. - type: string - type: array - MetricBulkTagConfigNamePrefix: - description: A text prefix to match against metric names. - example: "kafka.lag" - type: string - MetricBulkTagConfigResponse: - description: Wrapper for a single bulk tag configuration status response. - properties: - data: - $ref: "#/components/schemas/MetricBulkTagConfigStatus" - type: object - MetricBulkTagConfigStatus: - description: |- - The status of a request to bulk configure metric tags. - It contains the fields from the original request for reference. - properties: - attributes: - $ref: "#/components/schemas/MetricBulkTagConfigStatusAttributes" - id: - $ref: "#/components/schemas/MetricBulkTagConfigNamePrefix" - type: - $ref: "#/components/schemas/MetricBulkConfigureTagsType" - required: - - id - - type - type: object - MetricBulkTagConfigStatusAttributes: - description: Optional attributes for the status of a bulk tag configuration request. - properties: - emails: - $ref: "#/components/schemas/MetricBulkTagConfigEmailList" - exclude_tags_mode: - description: |- - When set to true, the configuration will exclude the configured tags and include any other submitted tags. - When set to false, the configuration will include the configured tags and exclude any other submitted tags. - type: boolean - status: - description: The status of the request. - example: "Accepted" - type: string - tags: - $ref: "#/components/schemas/MetricBulkTagConfigTagNameList" - type: object - MetricBulkTagConfigTagNameList: - description: A list of tag names to apply to the configuration. - example: ["host", "pod_name", "is_shadow"] - items: - description: A metric tag name. - maxLength: 200 - pattern: ^[A-Za-z][A-Za-z0-9\.\-\_:\/]*$ - type: string - type: array MetricContentEncoding: default: deflate description: HTTP header used to compress the media-type. @@ -202025,167 +201878,6 @@ paths: operator: OR permissions: - metrics_read - /api/v2/metrics/config/bulk-tags: - delete: - deprecated: true - description: |- - **Note**: This endpoint is deprecated. Use [Tag Indexing Rules](/api/latest/metrics/#create-a-tag-indexing-rule) (`POST /api/v2/metrics/tag-indexing-rules`) instead. - - Delete all custom lists of queryable tag keys for a set of existing count, gauge, rate, and distribution metrics. - Metrics are selected by passing a metric name prefix. - Results can be sent to a set of account email addresses, just like the same operation in the Datadog web app. - Can only be used with application keys of users with the `Manage Tags for Metrics` permission. - operationId: DeleteBulkTagsMetricsConfiguration - requestBody: - content: - application/json: - examples: - default: - value: - data: - attributes: - emails: - - sue@example.com - - bob@example.com - id: kafka.lag - type: metric_bulk_configure_tags - schema: - $ref: "#/components/schemas/MetricBulkTagConfigDeleteRequest" - required: true - responses: - "202": - content: - application/json: - examples: - default: - value: - data: - attributes: - emails: - - test@example.com - status: Accepted - id: kafka.lag - type: metric_bulk_configure_tags - schema: - $ref: "#/components/schemas/MetricBulkTagConfigResponse" - description: Accepted - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: Bad Request - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: Forbidden - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: Not Found - "429": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: Too Many Requests - summary: Delete tags for multiple metrics - tags: - - Metrics - x-codegen-request-body-name: body - "x-permission": - operator: OR - permissions: - - metric_tags_write - x-sunset: "2026-11-01" - post: - deprecated: true - description: |- - **Note**: This endpoint is deprecated. Use [Tag Indexing Rules](/api/latest/metrics/#create-a-tag-indexing-rule) (`POST /api/v2/metrics/tag-indexing-rules`) instead. - - Create and define a list of queryable tag keys for a set of existing count, gauge, rate, and distribution metrics. - Metrics are selected by passing a metric name prefix. Use the Delete method of this API path to remove tag configurations. - Results can be sent to a set of account email addresses, just like the same operation in the Datadog web app. - If multiple calls include the same metric, the last configuration applied (not by submit order) is used, do not - expect deterministic ordering of concurrent calls. The `exclude_tags_mode` value will set all metrics that match the prefix to - the same exclusion state, metric tag configurations do not support mixed inclusion and exclusion for tags on the same metric. - Can only be used with application keys of users with the `Manage Tags for Metrics` permission. - operationId: CreateBulkTagsMetricsConfiguration - requestBody: - content: - application/json: - examples: - default: - value: - data: - attributes: - emails: - - sue@example.com - - bob@example.com - tags: - - host - - pod_name - - is_shadow - id: kafka.lag - type: metric_bulk_configure_tags - schema: - $ref: "#/components/schemas/MetricBulkTagConfigCreateRequest" - required: true - responses: - "202": - content: - application/json: - examples: - default: - value: - data: - attributes: - emails: - - test@example.com - tags: - - host - id: kafka.lag - type: metric_bulk_configure_tags - schema: - $ref: "#/components/schemas/MetricBulkTagConfigResponse" - description: Accepted - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: Bad Request - "403": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: Forbidden - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: Not Found - "429": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: Too Many Requests - summary: Configure tags for multiple metrics - tags: - - Metrics - x-codegen-request-body-name: body - "x-permission": - operator: OR - permissions: - - metric_tags_write - x-sunset: "2026-11-01" /api/v2/metrics/derived-metrics: post: description: |- diff --git a/examples/v2/metrics/CreateBulkTagsMetricsConfiguration.py b/examples/v2/metrics/CreateBulkTagsMetricsConfiguration.py deleted file mode 100644 index e69f756b06..0000000000 --- a/examples/v2/metrics/CreateBulkTagsMetricsConfiguration.py +++ /dev/null @@ -1,44 +0,0 @@ -""" -Configure tags for multiple metrics returns "Accepted" response -""" - -from os import environ -from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.metrics_api import MetricsApi -from datadog_api_client.v2.model.metric_bulk_configure_tags_type import MetricBulkConfigureTagsType -from datadog_api_client.v2.model.metric_bulk_tag_config_create import MetricBulkTagConfigCreate -from datadog_api_client.v2.model.metric_bulk_tag_config_create_attributes import MetricBulkTagConfigCreateAttributes -from datadog_api_client.v2.model.metric_bulk_tag_config_create_request import MetricBulkTagConfigCreateRequest -from datadog_api_client.v2.model.metric_bulk_tag_config_email_list import MetricBulkTagConfigEmailList -from datadog_api_client.v2.model.metric_bulk_tag_config_tag_name_list import MetricBulkTagConfigTagNameList - -# there is a valid "user" in the system -USER_DATA_ATTRIBUTES_EMAIL = environ["USER_DATA_ATTRIBUTES_EMAIL"] - -body = MetricBulkTagConfigCreateRequest( - data=MetricBulkTagConfigCreate( - attributes=MetricBulkTagConfigCreateAttributes( - emails=MetricBulkTagConfigEmailList( - [ - USER_DATA_ATTRIBUTES_EMAIL, - ] - ), - tags=MetricBulkTagConfigTagNameList( - [ - "test", - "examplemetric", - ] - ), - ), - id="system.load.1", - type=MetricBulkConfigureTagsType.BULK_MANAGE_TAGS, - ), -) - -configuration = Configuration() -configuration.access_token = environ["DD_BEARER_TOKEN"] -with ApiClient(configuration) as api_client: - api_instance = MetricsApi(api_client) - response = api_instance.create_bulk_tags_metrics_configuration(body=body) - - print(response) diff --git a/examples/v2/metrics/DeleteBulkTagsMetricsConfiguration.py b/examples/v2/metrics/DeleteBulkTagsMetricsConfiguration.py deleted file mode 100644 index babac9b9e4..0000000000 --- a/examples/v2/metrics/DeleteBulkTagsMetricsConfiguration.py +++ /dev/null @@ -1,35 +0,0 @@ -""" -Delete tags for multiple metrics returns "Accepted" response -""" - -from os import environ -from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.metrics_api import MetricsApi -from datadog_api_client.v2.model.metric_bulk_configure_tags_type import MetricBulkConfigureTagsType -from datadog_api_client.v2.model.metric_bulk_tag_config_delete import MetricBulkTagConfigDelete -from datadog_api_client.v2.model.metric_bulk_tag_config_delete_attributes import MetricBulkTagConfigDeleteAttributes -from datadog_api_client.v2.model.metric_bulk_tag_config_delete_request import MetricBulkTagConfigDeleteRequest -from datadog_api_client.v2.model.metric_bulk_tag_config_email_list import MetricBulkTagConfigEmailList - -body = MetricBulkTagConfigDeleteRequest( - data=MetricBulkTagConfigDelete( - attributes=MetricBulkTagConfigDeleteAttributes( - emails=MetricBulkTagConfigEmailList( - [ - "sue@example.com", - "bob@example.com", - ] - ), - ), - id="kafka.lag", - type=MetricBulkConfigureTagsType.BULK_MANAGE_TAGS, - ), -) - -configuration = Configuration() -configuration.access_token = environ["DD_BEARER_TOKEN"] -with ApiClient(configuration) as api_client: - api_instance = MetricsApi(api_client) - response = api_instance.delete_bulk_tags_metrics_configuration(body=body) - - print(response) diff --git a/src/datadog_api_client/v2/api/metrics_api.py b/src/datadog_api_client/v2/api/metrics_api.py index c580757604..561dc0b8e1 100644 --- a/src/datadog_api_client/v2/api/metrics_api.py +++ b/src/datadog_api_client/v2/api/metrics_api.py @@ -5,7 +5,6 @@ import collections from typing import Any, Dict, Union -import warnings from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint from datadog_api_client.configuration import Configuration @@ -23,9 +22,6 @@ MetricTagConfigurationMetricTypeCategory, ) from datadog_api_client.v2.model.metrics_and_metric_tag_configurations import MetricsAndMetricTagConfigurations -from datadog_api_client.v2.model.metric_bulk_tag_config_response import MetricBulkTagConfigResponse -from datadog_api_client.v2.model.metric_bulk_tag_config_delete_request import MetricBulkTagConfigDeleteRequest -from datadog_api_client.v2.model.metric_bulk_tag_config_create_request import MetricBulkTagConfigCreateRequest from datadog_api_client.v2.model.derived_metric_response import DerivedMetricResponse from datadog_api_client.v2.model.derived_metric_create_request import DerivedMetricCreateRequest from datadog_api_client.v2.model.historical_metrics_configuration_response import HistoricalMetricsConfigurationResponse @@ -87,26 +83,6 @@ def __init__(self, api_client=None): api_client = ApiClient(Configuration()) self.api_client = api_client - self._create_bulk_tags_metrics_configuration_endpoint = _Endpoint( - settings={ - "response_type": (MetricBulkTagConfigResponse,), - "auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"], - "endpoint_path": "/api/v2/metrics/config/bulk-tags", - "operation_id": "create_bulk_tags_metrics_configuration", - "http_method": "POST", - "version": "v2", - }, - params_map={ - "body": { - "required": True, - "openapi_types": (MetricBulkTagConfigCreateRequest,), - "location": "body", - }, - }, - headers_map={"accept": ["application/json"], "content_type": ["application/json"]}, - api_client=api_client, - ) - self._create_derived_metric_endpoint = _Endpoint( settings={ "response_type": (DerivedMetricResponse,), @@ -219,26 +195,6 @@ def __init__(self, api_client=None): api_client=api_client, ) - self._delete_bulk_tags_metrics_configuration_endpoint = _Endpoint( - settings={ - "response_type": (MetricBulkTagConfigResponse,), - "auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"], - "endpoint_path": "/api/v2/metrics/config/bulk-tags", - "operation_id": "delete_bulk_tags_metrics_configuration", - "http_method": "DELETE", - "version": "v2", - }, - params_map={ - "body": { - "required": True, - "openapi_types": (MetricBulkTagConfigDeleteRequest,), - "location": "body", - }, - }, - headers_map={"accept": ["application/json"], "content_type": ["application/json"]}, - api_client=api_client, - ) - self._delete_derived_metric_endpoint = _Endpoint( settings={ "response_type": None, @@ -1085,31 +1041,6 @@ def __init__(self, api_client=None): api_client=api_client, ) - def create_bulk_tags_metrics_configuration( - self, - body: MetricBulkTagConfigCreateRequest, - ) -> MetricBulkTagConfigResponse: - """Configure tags for multiple metrics. **Deprecated**. - - **Note** : This endpoint is deprecated. Use `Tag Indexing Rules `_ ( ``POST /api/v2/metrics/tag-indexing-rules`` ) instead. - - Create and define a list of queryable tag keys for a set of existing count, gauge, rate, and distribution metrics. - Metrics are selected by passing a metric name prefix. Use the Delete method of this API path to remove tag configurations. - Results can be sent to a set of account email addresses, just like the same operation in the Datadog web app. - If multiple calls include the same metric, the last configuration applied (not by submit order) is used, do not - expect deterministic ordering of concurrent calls. The ``exclude_tags_mode`` value will set all metrics that match the prefix to - the same exclusion state, metric tag configurations do not support mixed inclusion and exclusion for tags on the same metric. - Can only be used with application keys of users with the ``Manage Tags for Metrics`` permission. - - :type body: MetricBulkTagConfigCreateRequest - :rtype: MetricBulkTagConfigResponse - """ - kwargs: Dict[str, Any] = {} - kwargs["body"] = body - - warnings.warn("create_bulk_tags_metrics_configuration is deprecated", DeprecationWarning, stacklevel=2) - return self._create_bulk_tags_metrics_configuration_endpoint.call_with_http_info(**kwargs) - def create_derived_metric( self, body: DerivedMetricCreateRequest, @@ -1212,28 +1143,6 @@ def create_tag_indexing_rule_exemption( return self._create_tag_indexing_rule_exemption_endpoint.call_with_http_info(**kwargs) - def delete_bulk_tags_metrics_configuration( - self, - body: MetricBulkTagConfigDeleteRequest, - ) -> MetricBulkTagConfigResponse: - """Delete tags for multiple metrics. **Deprecated**. - - **Note** : This endpoint is deprecated. Use `Tag Indexing Rules `_ ( ``POST /api/v2/metrics/tag-indexing-rules`` ) instead. - - Delete all custom lists of queryable tag keys for a set of existing count, gauge, rate, and distribution metrics. - Metrics are selected by passing a metric name prefix. - Results can be sent to a set of account email addresses, just like the same operation in the Datadog web app. - Can only be used with application keys of users with the ``Manage Tags for Metrics`` permission. - - :type body: MetricBulkTagConfigDeleteRequest - :rtype: MetricBulkTagConfigResponse - """ - kwargs: Dict[str, Any] = {} - kwargs["body"] = body - - warnings.warn("delete_bulk_tags_metrics_configuration is deprecated", DeprecationWarning, stacklevel=2) - return self._delete_bulk_tags_metrics_configuration_endpoint.call_with_http_info(**kwargs) - def delete_derived_metric( self, metric_name: str, diff --git a/src/datadog_api_client/v2/model/metric_bulk_configure_tags_type.py b/src/datadog_api_client/v2/model/metric_bulk_configure_tags_type.py deleted file mode 100644 index f2dd878b2d..0000000000 --- a/src/datadog_api_client/v2/model/metric_bulk_configure_tags_type.py +++ /dev/null @@ -1,35 +0,0 @@ -# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. -# This product includes software developed at Datadog (https://www.datadoghq.com/). -# Copyright 2019-Present Datadog, Inc. -from __future__ import annotations - - -from datadog_api_client.model_utils import ( - ModelSimple, - cached_property, -) - -from typing import ClassVar - - -class MetricBulkConfigureTagsType(ModelSimple): - """ - The metric bulk configure tags resource. - - :param value: If omitted defaults to "metric_bulk_configure_tags". Must be one of ["metric_bulk_configure_tags"]. - :type value: str - """ - - allowed_values = { - "metric_bulk_configure_tags", - } - BULK_MANAGE_TAGS: ClassVar["MetricBulkConfigureTagsType"] - - @cached_property - def openapi_types(_): - return { - "value": (str,), - } - - -MetricBulkConfigureTagsType.BULK_MANAGE_TAGS = MetricBulkConfigureTagsType("metric_bulk_configure_tags") diff --git a/src/datadog_api_client/v2/model/metric_bulk_tag_config_create.py b/src/datadog_api_client/v2/model/metric_bulk_tag_config_create.py deleted file mode 100644 index 580db3321d..0000000000 --- a/src/datadog_api_client/v2/model/metric_bulk_tag_config_create.py +++ /dev/null @@ -1,65 +0,0 @@ -# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. -# This product includes software developed at Datadog (https://www.datadoghq.com/). -# Copyright 2019-Present Datadog, Inc. -from __future__ import annotations - -from typing import Union, TYPE_CHECKING - -from datadog_api_client.model_utils import ( - ModelNormal, - cached_property, - unset, - UnsetType, -) - - -if TYPE_CHECKING: - from datadog_api_client.v2.model.metric_bulk_tag_config_create_attributes import MetricBulkTagConfigCreateAttributes - from datadog_api_client.v2.model.metric_bulk_configure_tags_type import MetricBulkConfigureTagsType - - -class MetricBulkTagConfigCreate(ModelNormal): - @cached_property - def openapi_types(_): - from datadog_api_client.v2.model.metric_bulk_tag_config_create_attributes import ( - MetricBulkTagConfigCreateAttributes, - ) - from datadog_api_client.v2.model.metric_bulk_configure_tags_type import MetricBulkConfigureTagsType - - return { - "attributes": (MetricBulkTagConfigCreateAttributes,), - "id": (str,), - "type": (MetricBulkConfigureTagsType,), - } - - attribute_map = { - "attributes": "attributes", - "id": "id", - "type": "type", - } - - def __init__( - self_, - id: str, - type: MetricBulkConfigureTagsType, - attributes: Union[MetricBulkTagConfigCreateAttributes, UnsetType] = unset, - **kwargs, - ): - """ - Request object to bulk configure tags for metrics matching the given prefix. - - :param attributes: Optional parameters for bulk creating metric tag configurations. - :type attributes: MetricBulkTagConfigCreateAttributes, optional - - :param id: A text prefix to match against metric names. - :type id: str - - :param type: The metric bulk configure tags resource. - :type type: MetricBulkConfigureTagsType - """ - if attributes is not unset: - kwargs["attributes"] = attributes - super().__init__(kwargs) - - self_.id = id - self_.type = type diff --git a/src/datadog_api_client/v2/model/metric_bulk_tag_config_create_attributes.py b/src/datadog_api_client/v2/model/metric_bulk_tag_config_create_attributes.py deleted file mode 100644 index 6dad96d67f..0000000000 --- a/src/datadog_api_client/v2/model/metric_bulk_tag_config_create_attributes.py +++ /dev/null @@ -1,96 +0,0 @@ -# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. -# This product includes software developed at Datadog (https://www.datadoghq.com/). -# Copyright 2019-Present Datadog, Inc. -from __future__ import annotations - -from typing import Union, TYPE_CHECKING - -from datadog_api_client.model_utils import ( - ModelNormal, - cached_property, - unset, - UnsetType, -) - - -if TYPE_CHECKING: - from datadog_api_client.v2.model.metric_bulk_tag_config_email_list import MetricBulkTagConfigEmailList - from datadog_api_client.v2.model.metric_bulk_tag_config_tag_name_list import MetricBulkTagConfigTagNameList - - -class MetricBulkTagConfigCreateAttributes(ModelNormal): - validations = { - "include_actively_queried_tags_window": { - "inclusive_maximum": 7776000, - "inclusive_minimum": 1, - }, - } - - @cached_property - def openapi_types(_): - from datadog_api_client.v2.model.metric_bulk_tag_config_email_list import MetricBulkTagConfigEmailList - from datadog_api_client.v2.model.metric_bulk_tag_config_tag_name_list import MetricBulkTagConfigTagNameList - - return { - "emails": (MetricBulkTagConfigEmailList,), - "exclude_tags_mode": (bool,), - "include_actively_queried_tags_window": (float,), - "override_existing_configurations": (bool,), - "tags": (MetricBulkTagConfigTagNameList,), - } - - attribute_map = { - "emails": "emails", - "exclude_tags_mode": "exclude_tags_mode", - "include_actively_queried_tags_window": "include_actively_queried_tags_window", - "override_existing_configurations": "override_existing_configurations", - "tags": "tags", - } - - def __init__( - self_, - emails: Union[MetricBulkTagConfigEmailList, UnsetType] = unset, - exclude_tags_mode: Union[bool, UnsetType] = unset, - include_actively_queried_tags_window: Union[float, UnsetType] = unset, - override_existing_configurations: Union[bool, UnsetType] = unset, - tags: Union[MetricBulkTagConfigTagNameList, UnsetType] = unset, - **kwargs, - ): - """ - Optional parameters for bulk creating metric tag configurations. - - :param emails: A list of account emails to notify when the configuration is applied. - :type emails: MetricBulkTagConfigEmailList, optional - - :param exclude_tags_mode: When set to true, the configuration will exclude the configured tags and include any other submitted tags. - When set to false, the configuration will include the configured tags and exclude any other submitted tags. - Defaults to false. - :type exclude_tags_mode: bool, optional - - :param include_actively_queried_tags_window: When provided, all tags that have been actively queried are - configured (and, therefore, remain queryable) for each metric that - matches the given prefix. Minimum value is 1 second, and maximum - value is 7,776,000 seconds (90 days). - :type include_actively_queried_tags_window: float, optional - - :param override_existing_configurations: When set to true, the configuration overrides any existing - configurations for the given metric with the new set of tags in this - configuration request. If false, old configurations are kept and - are merged with the set of tags in this configuration request. - Defaults to true. - :type override_existing_configurations: bool, optional - - :param tags: A list of tag names to apply to the configuration. - :type tags: MetricBulkTagConfigTagNameList, optional - """ - if emails is not unset: - kwargs["emails"] = emails - if exclude_tags_mode is not unset: - kwargs["exclude_tags_mode"] = exclude_tags_mode - if include_actively_queried_tags_window is not unset: - kwargs["include_actively_queried_tags_window"] = include_actively_queried_tags_window - if override_existing_configurations is not unset: - kwargs["override_existing_configurations"] = override_existing_configurations - if tags is not unset: - kwargs["tags"] = tags - super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/metric_bulk_tag_config_create_request.py b/src/datadog_api_client/v2/model/metric_bulk_tag_config_create_request.py deleted file mode 100644 index 0715b76d6f..0000000000 --- a/src/datadog_api_client/v2/model/metric_bulk_tag_config_create_request.py +++ /dev/null @@ -1,40 +0,0 @@ -# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. -# This product includes software developed at Datadog (https://www.datadoghq.com/). -# Copyright 2019-Present Datadog, Inc. -from __future__ import annotations - -from typing import TYPE_CHECKING - -from datadog_api_client.model_utils import ( - ModelNormal, - cached_property, -) - - -if TYPE_CHECKING: - from datadog_api_client.v2.model.metric_bulk_tag_config_create import MetricBulkTagConfigCreate - - -class MetricBulkTagConfigCreateRequest(ModelNormal): - @cached_property - def openapi_types(_): - from datadog_api_client.v2.model.metric_bulk_tag_config_create import MetricBulkTagConfigCreate - - return { - "data": (MetricBulkTagConfigCreate,), - } - - attribute_map = { - "data": "data", - } - - def __init__(self_, data: MetricBulkTagConfigCreate, **kwargs): - """ - Wrapper object for a single bulk tag configuration request. - - :param data: Request object to bulk configure tags for metrics matching the given prefix. - :type data: MetricBulkTagConfigCreate - """ - super().__init__(kwargs) - - self_.data = data diff --git a/src/datadog_api_client/v2/model/metric_bulk_tag_config_delete.py b/src/datadog_api_client/v2/model/metric_bulk_tag_config_delete.py deleted file mode 100644 index 0b727e27d4..0000000000 --- a/src/datadog_api_client/v2/model/metric_bulk_tag_config_delete.py +++ /dev/null @@ -1,65 +0,0 @@ -# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. -# This product includes software developed at Datadog (https://www.datadoghq.com/). -# Copyright 2019-Present Datadog, Inc. -from __future__ import annotations - -from typing import Union, TYPE_CHECKING - -from datadog_api_client.model_utils import ( - ModelNormal, - cached_property, - unset, - UnsetType, -) - - -if TYPE_CHECKING: - from datadog_api_client.v2.model.metric_bulk_tag_config_delete_attributes import MetricBulkTagConfigDeleteAttributes - from datadog_api_client.v2.model.metric_bulk_configure_tags_type import MetricBulkConfigureTagsType - - -class MetricBulkTagConfigDelete(ModelNormal): - @cached_property - def openapi_types(_): - from datadog_api_client.v2.model.metric_bulk_tag_config_delete_attributes import ( - MetricBulkTagConfigDeleteAttributes, - ) - from datadog_api_client.v2.model.metric_bulk_configure_tags_type import MetricBulkConfigureTagsType - - return { - "attributes": (MetricBulkTagConfigDeleteAttributes,), - "id": (str,), - "type": (MetricBulkConfigureTagsType,), - } - - attribute_map = { - "attributes": "attributes", - "id": "id", - "type": "type", - } - - def __init__( - self_, - id: str, - type: MetricBulkConfigureTagsType, - attributes: Union[MetricBulkTagConfigDeleteAttributes, UnsetType] = unset, - **kwargs, - ): - """ - Request object to bulk delete all tag configurations for metrics matching the given prefix. - - :param attributes: Optional parameters for bulk deleting metric tag configurations. - :type attributes: MetricBulkTagConfigDeleteAttributes, optional - - :param id: A text prefix to match against metric names. - :type id: str - - :param type: The metric bulk configure tags resource. - :type type: MetricBulkConfigureTagsType - """ - if attributes is not unset: - kwargs["attributes"] = attributes - super().__init__(kwargs) - - self_.id = id - self_.type = type diff --git a/src/datadog_api_client/v2/model/metric_bulk_tag_config_delete_attributes.py b/src/datadog_api_client/v2/model/metric_bulk_tag_config_delete_attributes.py deleted file mode 100644 index d9ea776e20..0000000000 --- a/src/datadog_api_client/v2/model/metric_bulk_tag_config_delete_attributes.py +++ /dev/null @@ -1,42 +0,0 @@ -# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. -# This product includes software developed at Datadog (https://www.datadoghq.com/). -# Copyright 2019-Present Datadog, Inc. -from __future__ import annotations - -from typing import Union, TYPE_CHECKING - -from datadog_api_client.model_utils import ( - ModelNormal, - cached_property, - unset, - UnsetType, -) - - -if TYPE_CHECKING: - from datadog_api_client.v2.model.metric_bulk_tag_config_email_list import MetricBulkTagConfigEmailList - - -class MetricBulkTagConfigDeleteAttributes(ModelNormal): - @cached_property - def openapi_types(_): - from datadog_api_client.v2.model.metric_bulk_tag_config_email_list import MetricBulkTagConfigEmailList - - return { - "emails": (MetricBulkTagConfigEmailList,), - } - - attribute_map = { - "emails": "emails", - } - - def __init__(self_, emails: Union[MetricBulkTagConfigEmailList, UnsetType] = unset, **kwargs): - """ - Optional parameters for bulk deleting metric tag configurations. - - :param emails: A list of account emails to notify when the configuration is applied. - :type emails: MetricBulkTagConfigEmailList, optional - """ - if emails is not unset: - kwargs["emails"] = emails - super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/metric_bulk_tag_config_delete_request.py b/src/datadog_api_client/v2/model/metric_bulk_tag_config_delete_request.py deleted file mode 100644 index 05b5ea87b7..0000000000 --- a/src/datadog_api_client/v2/model/metric_bulk_tag_config_delete_request.py +++ /dev/null @@ -1,40 +0,0 @@ -# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. -# This product includes software developed at Datadog (https://www.datadoghq.com/). -# Copyright 2019-Present Datadog, Inc. -from __future__ import annotations - -from typing import TYPE_CHECKING - -from datadog_api_client.model_utils import ( - ModelNormal, - cached_property, -) - - -if TYPE_CHECKING: - from datadog_api_client.v2.model.metric_bulk_tag_config_delete import MetricBulkTagConfigDelete - - -class MetricBulkTagConfigDeleteRequest(ModelNormal): - @cached_property - def openapi_types(_): - from datadog_api_client.v2.model.metric_bulk_tag_config_delete import MetricBulkTagConfigDelete - - return { - "data": (MetricBulkTagConfigDelete,), - } - - attribute_map = { - "data": "data", - } - - def __init__(self_, data: MetricBulkTagConfigDelete, **kwargs): - """ - Wrapper object for a single bulk tag deletion request. - - :param data: Request object to bulk delete all tag configurations for metrics matching the given prefix. - :type data: MetricBulkTagConfigDelete - """ - super().__init__(kwargs) - - self_.data = data diff --git a/src/datadog_api_client/v2/model/metric_bulk_tag_config_email_list.py b/src/datadog_api_client/v2/model/metric_bulk_tag_config_email_list.py deleted file mode 100644 index e47279705b..0000000000 --- a/src/datadog_api_client/v2/model/metric_bulk_tag_config_email_list.py +++ /dev/null @@ -1,25 +0,0 @@ -# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. -# This product includes software developed at Datadog (https://www.datadoghq.com/). -# Copyright 2019-Present Datadog, Inc. -from __future__ import annotations - - -from datadog_api_client.model_utils import ( - ModelSimple, - cached_property, -) - - -class MetricBulkTagConfigEmailList(ModelSimple): - """ - A list of account emails to notify when the configuration is applied. - - - :type value: [str] - """ - - @cached_property - def openapi_types(_): - return { - "value": ([str],), - } diff --git a/src/datadog_api_client/v2/model/metric_bulk_tag_config_response.py b/src/datadog_api_client/v2/model/metric_bulk_tag_config_response.py deleted file mode 100644 index fda24c7ee4..0000000000 --- a/src/datadog_api_client/v2/model/metric_bulk_tag_config_response.py +++ /dev/null @@ -1,43 +0,0 @@ -# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. -# This product includes software developed at Datadog (https://www.datadoghq.com/). -# Copyright 2019-Present Datadog, Inc. -from __future__ import annotations - -from typing import Union, TYPE_CHECKING - -from datadog_api_client.model_utils import ( - ModelNormal, - cached_property, - unset, - UnsetType, -) - - -if TYPE_CHECKING: - from datadog_api_client.v2.model.metric_bulk_tag_config_status import MetricBulkTagConfigStatus - - -class MetricBulkTagConfigResponse(ModelNormal): - @cached_property - def openapi_types(_): - from datadog_api_client.v2.model.metric_bulk_tag_config_status import MetricBulkTagConfigStatus - - return { - "data": (MetricBulkTagConfigStatus,), - } - - attribute_map = { - "data": "data", - } - - def __init__(self_, data: Union[MetricBulkTagConfigStatus, UnsetType] = unset, **kwargs): - """ - Wrapper for a single bulk tag configuration status response. - - :param data: The status of a request to bulk configure metric tags. - It contains the fields from the original request for reference. - :type data: MetricBulkTagConfigStatus, optional - """ - if data is not unset: - kwargs["data"] = data - super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/metric_bulk_tag_config_status.py b/src/datadog_api_client/v2/model/metric_bulk_tag_config_status.py deleted file mode 100644 index f02019af8b..0000000000 --- a/src/datadog_api_client/v2/model/metric_bulk_tag_config_status.py +++ /dev/null @@ -1,66 +0,0 @@ -# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. -# This product includes software developed at Datadog (https://www.datadoghq.com/). -# Copyright 2019-Present Datadog, Inc. -from __future__ import annotations - -from typing import Union, TYPE_CHECKING - -from datadog_api_client.model_utils import ( - ModelNormal, - cached_property, - unset, - UnsetType, -) - - -if TYPE_CHECKING: - from datadog_api_client.v2.model.metric_bulk_tag_config_status_attributes import MetricBulkTagConfigStatusAttributes - from datadog_api_client.v2.model.metric_bulk_configure_tags_type import MetricBulkConfigureTagsType - - -class MetricBulkTagConfigStatus(ModelNormal): - @cached_property - def openapi_types(_): - from datadog_api_client.v2.model.metric_bulk_tag_config_status_attributes import ( - MetricBulkTagConfigStatusAttributes, - ) - from datadog_api_client.v2.model.metric_bulk_configure_tags_type import MetricBulkConfigureTagsType - - return { - "attributes": (MetricBulkTagConfigStatusAttributes,), - "id": (str,), - "type": (MetricBulkConfigureTagsType,), - } - - attribute_map = { - "attributes": "attributes", - "id": "id", - "type": "type", - } - - def __init__( - self_, - id: str, - type: MetricBulkConfigureTagsType, - attributes: Union[MetricBulkTagConfigStatusAttributes, UnsetType] = unset, - **kwargs, - ): - """ - The status of a request to bulk configure metric tags. - It contains the fields from the original request for reference. - - :param attributes: Optional attributes for the status of a bulk tag configuration request. - :type attributes: MetricBulkTagConfigStatusAttributes, optional - - :param id: A text prefix to match against metric names. - :type id: str - - :param type: The metric bulk configure tags resource. - :type type: MetricBulkConfigureTagsType - """ - if attributes is not unset: - kwargs["attributes"] = attributes - super().__init__(kwargs) - - self_.id = id - self_.type = type diff --git a/src/datadog_api_client/v2/model/metric_bulk_tag_config_status_attributes.py b/src/datadog_api_client/v2/model/metric_bulk_tag_config_status_attributes.py deleted file mode 100644 index 9516a0c36e..0000000000 --- a/src/datadog_api_client/v2/model/metric_bulk_tag_config_status_attributes.py +++ /dev/null @@ -1,73 +0,0 @@ -# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. -# This product includes software developed at Datadog (https://www.datadoghq.com/). -# Copyright 2019-Present Datadog, Inc. -from __future__ import annotations - -from typing import Union, TYPE_CHECKING - -from datadog_api_client.model_utils import ( - ModelNormal, - cached_property, - unset, - UnsetType, -) - - -if TYPE_CHECKING: - from datadog_api_client.v2.model.metric_bulk_tag_config_email_list import MetricBulkTagConfigEmailList - from datadog_api_client.v2.model.metric_bulk_tag_config_tag_name_list import MetricBulkTagConfigTagNameList - - -class MetricBulkTagConfigStatusAttributes(ModelNormal): - @cached_property - def openapi_types(_): - from datadog_api_client.v2.model.metric_bulk_tag_config_email_list import MetricBulkTagConfigEmailList - from datadog_api_client.v2.model.metric_bulk_tag_config_tag_name_list import MetricBulkTagConfigTagNameList - - return { - "emails": (MetricBulkTagConfigEmailList,), - "exclude_tags_mode": (bool,), - "status": (str,), - "tags": (MetricBulkTagConfigTagNameList,), - } - - attribute_map = { - "emails": "emails", - "exclude_tags_mode": "exclude_tags_mode", - "status": "status", - "tags": "tags", - } - - def __init__( - self_, - emails: Union[MetricBulkTagConfigEmailList, UnsetType] = unset, - exclude_tags_mode: Union[bool, UnsetType] = unset, - status: Union[str, UnsetType] = unset, - tags: Union[MetricBulkTagConfigTagNameList, UnsetType] = unset, - **kwargs, - ): - """ - Optional attributes for the status of a bulk tag configuration request. - - :param emails: A list of account emails to notify when the configuration is applied. - :type emails: MetricBulkTagConfigEmailList, optional - - :param exclude_tags_mode: When set to true, the configuration will exclude the configured tags and include any other submitted tags. - When set to false, the configuration will include the configured tags and exclude any other submitted tags. - :type exclude_tags_mode: bool, optional - - :param status: The status of the request. - :type status: str, optional - - :param tags: A list of tag names to apply to the configuration. - :type tags: MetricBulkTagConfigTagNameList, optional - """ - if emails is not unset: - kwargs["emails"] = emails - if exclude_tags_mode is not unset: - kwargs["exclude_tags_mode"] = exclude_tags_mode - if status is not unset: - kwargs["status"] = status - if tags is not unset: - kwargs["tags"] = tags - super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/metric_bulk_tag_config_tag_name_list.py b/src/datadog_api_client/v2/model/metric_bulk_tag_config_tag_name_list.py deleted file mode 100644 index dd05f3b749..0000000000 --- a/src/datadog_api_client/v2/model/metric_bulk_tag_config_tag_name_list.py +++ /dev/null @@ -1,25 +0,0 @@ -# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. -# This product includes software developed at Datadog (https://www.datadoghq.com/). -# Copyright 2019-Present Datadog, Inc. -from __future__ import annotations - - -from datadog_api_client.model_utils import ( - ModelSimple, - cached_property, -) - - -class MetricBulkTagConfigTagNameList(ModelSimple): - """ - A list of tag names to apply to the configuration. - - - :type value: [str] - """ - - @cached_property - def openapi_types(_): - return { - "value": ([str],), - } diff --git a/src/datadog_api_client/v2/models/__init__.py b/src/datadog_api_client/v2/models/__init__.py index eef8c21703..56320def78 100644 --- a/src/datadog_api_client/v2/models/__init__.py +++ b/src/datadog_api_client/v2/models/__init__.py @@ -6416,18 +6416,6 @@ from datadog_api_client.v2.model.metric_asset_slo_relationship import MetricAssetSLORelationship from datadog_api_client.v2.model.metric_asset_slo_relationships import MetricAssetSLORelationships from datadog_api_client.v2.model.metric_assets_response import MetricAssetsResponse -from datadog_api_client.v2.model.metric_bulk_configure_tags_type import MetricBulkConfigureTagsType -from datadog_api_client.v2.model.metric_bulk_tag_config_create import MetricBulkTagConfigCreate -from datadog_api_client.v2.model.metric_bulk_tag_config_create_attributes import MetricBulkTagConfigCreateAttributes -from datadog_api_client.v2.model.metric_bulk_tag_config_create_request import MetricBulkTagConfigCreateRequest -from datadog_api_client.v2.model.metric_bulk_tag_config_delete import MetricBulkTagConfigDelete -from datadog_api_client.v2.model.metric_bulk_tag_config_delete_attributes import MetricBulkTagConfigDeleteAttributes -from datadog_api_client.v2.model.metric_bulk_tag_config_delete_request import MetricBulkTagConfigDeleteRequest -from datadog_api_client.v2.model.metric_bulk_tag_config_email_list import MetricBulkTagConfigEmailList -from datadog_api_client.v2.model.metric_bulk_tag_config_response import MetricBulkTagConfigResponse -from datadog_api_client.v2.model.metric_bulk_tag_config_status import MetricBulkTagConfigStatus -from datadog_api_client.v2.model.metric_bulk_tag_config_status_attributes import MetricBulkTagConfigStatusAttributes -from datadog_api_client.v2.model.metric_bulk_tag_config_tag_name_list import MetricBulkTagConfigTagNameList from datadog_api_client.v2.model.metric_content_encoding import MetricContentEncoding from datadog_api_client.v2.model.metric_custom_aggregation import MetricCustomAggregation from datadog_api_client.v2.model.metric_custom_aggregations import MetricCustomAggregations @@ -17605,18 +17593,6 @@ "MetricAssetSLORelationship", "MetricAssetSLORelationships", "MetricAssetsResponse", - "MetricBulkConfigureTagsType", - "MetricBulkTagConfigCreate", - "MetricBulkTagConfigCreateAttributes", - "MetricBulkTagConfigCreateRequest", - "MetricBulkTagConfigDelete", - "MetricBulkTagConfigDeleteAttributes", - "MetricBulkTagConfigDeleteRequest", - "MetricBulkTagConfigEmailList", - "MetricBulkTagConfigResponse", - "MetricBulkTagConfigStatus", - "MetricBulkTagConfigStatusAttributes", - "MetricBulkTagConfigTagNameList", "MetricContentEncoding", "MetricCustomAggregation", "MetricCustomAggregations", diff --git a/tests/generated-test/test-runner-data/manifest.json b/tests/generated-test/test-runner-data/manifest.json index e760ee710f..545e7d237c 100644 --- a/tests/generated-test/test-runner-data/manifest.json +++ b/tests/generated-test/test-runner-data/manifest.json @@ -7483,13 +7483,6 @@ "scenario": "List roles for a restriction query returns \"OK\" response", "version": "v2" }, - { - "feature": "Metrics", - "feature_file": "../../v2/features/metrics.feature", - "file": "v2/metrics/configure-tags-for-multiple-metrics-returns-accepted-response.json", - "scenario": "Configure tags for multiple metrics returns \"Accepted\" response", - "version": "v2" - }, { "feature": "Metrics", "feature_file": "../../v2/features/metrics.feature", diff --git a/tests/generated-test/test-runner-data/v2/metrics/configure-tags-for-multiple-metrics-returns-accepted-response.json b/tests/generated-test/test-runner-data/v2/metrics/configure-tags-for-multiple-metrics-returns-accepted-response.json deleted file mode 100644 index b35d60b6a5..0000000000 --- a/tests/generated-test/test-runner-data/v2/metrics/configure-tags-for-multiple-metrics-returns-accepted-response.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "api": "Metrics", - "expected_status": 202, - "feature": "Metrics", - "id": "v2/Metrics/Configure tags for multiple metrics returns \"Accepted\" response", - "operation_id": "CreateBulkTagsMetricsConfiguration", - "request": { - "body": { - "schema": { - "format": null, - "ref": "MetricBulkTagConfigCreateRequest", - "type": "object" - }, - "source": "inline", - "value": { - "data": { - "attributes": { - "emails": [ - "{{ user.data.attributes.email }}" - ], - "tags": [ - "test", - "{{ unique_lower_alnum }}" - ] - }, - "id": "system.load.1", - "type": "metric_bulk_configure_tags" - } - } - }, - "content_type": "application/json", - "method": "POST", - "pagination": false, - "parameters": [], - "path": "/api/v2/metrics/config/bulk-tags" - }, - "scenario": "Configure tags for multiple metrics returns \"Accepted\" response", - "schema_version": 1, - "version": "v2" -} diff --git a/tests/generated-test/test-server-data/v2/metrics.json b/tests/generated-test/test-server-data/v2/metrics.json index 2b790b3682..173fcac09c 100644 --- a/tests/generated-test/test-server-data/v2/metrics.json +++ b/tests/generated-test/test-server-data/v2/metrics.json @@ -1,136 +1,6 @@ { "feature": "Metrics", "recordings": [ - { - "feature": "Metrics", - "frozen_at": "2026-06-04T17:13:08.947Z", - "interactions": [ - { - "request": { - "body": { - "type": "json", - "value": { - "data": { - "attributes": { - "email": "Test-Configure_tags_for_multiple_metrics_returns_Accepted_response-1780593188@datadoghq.com", - "title": "user title" - }, - "type": "users" - } - } - }, - "content_type": "application/json", - "method": "POST", - "path": "/api/v2/users", - "query": [] - }, - "response": { - "body": { - "encoding": "text", - "value": "{\"data\":{\"type\":\"users\",\"id\":\"bbd25c81-fae3-46b3-99b3-4251859017c4\",\"attributes\":{\"uuid\":\"bbd25c81-fae3-46b3-99b3-4251859017c4\",\"name\":null,\"handle\":\"test-configure_tags_for_multiple_metrics_returns_accepted_response-1780593188@datadoghq.com\",\"created_at\":\"2026-06-04T17:13:10.281475+00:00\",\"modified_at\":\"2026-06-04T17:13:10.281475+00:00\",\"email\":\"test-configure_tags_for_multiple_metrics_returns_accepted_response-1780593188@datadoghq.com\",\"icon\":\"https://secure.gravatar.com/avatar/f08cc2909ca7eae455a0969e3664ec09?s=48&d=retro\",\"title\":\"user title\",\"verified\":false,\"service_account\":false,\"disabled\":false,\"allowed_login_methods\":[],\"status\":\"Pending\",\"last_login_time\":null},\"relationships\":{\"roles\":{\"data\":[]},\"org\":{\"data\":{\"type\":\"orgs\",\"id\":\"4dee724d-00cc-11ea-a77b-570c9d03c6c5\"}}}}}\n" - }, - "headers": { - "content-type": "application/json" - }, - "reason": "Created", - "status": 201 - } - }, - { - "request": { - "body": { - "type": "json", - "value": { - "data": { - "attributes": { - "emails": [ - "test-configure_tags_for_multiple_metrics_returns_accepted_response-1780593188@datadoghq.com" - ], - "tags": [ - "test", - "testconfiguretagsformultiplemetricsreturnsacceptedresponse1780593188" - ] - }, - "id": "system.load.1", - "type": "metric_bulk_configure_tags" - } - } - }, - "content_type": "application/json", - "method": "POST", - "path": "/api/v2/metrics/config/bulk-tags", - "query": [] - }, - "response": { - "body": { - "encoding": "text", - "value": "{\"data\":{\"type\":\"metric_bulk_configure_tags\",\"id\":\"system.load.1\",\"attributes\":{\"tags\":[\"test\",\"testconfiguretagsformultiplemetricsreturnsacceptedresponse1780593188\"],\"emails\":[\"test-configure_tags_for_multiple_metrics_returns_accepted_response-1780593188@datadoghq.com\"],\"status\":\"Accepted\",\"exclude_tags_mode\":null,\"override_existing_configurations\":true,\"include_actively_queried_tags_window\":null}}}\n" - }, - "headers": { - "content-type": "application/json" - }, - "reason": "Accepted", - "status": 202 - } - }, - { - "request": { - "body": { - "type": "json", - "value": { - "data": { - "attributes": { - "emails": [ - "test-configure_tags_for_multiple_metrics_returns_accepted_response-1780593188@datadoghq.com" - ] - }, - "id": "system.load.1", - "type": "metric_bulk_configure_tags" - } - } - }, - "content_type": "application/json", - "method": "DELETE", - "path": "/api/v2/metrics/config/bulk-tags", - "query": [] - }, - "response": { - "body": { - "encoding": "text", - "value": "{\"data\":{\"type\":\"metric_bulk_configure_tags\",\"id\":\"system.load.1\",\"attributes\":{\"emails\":[\"test-configure_tags_for_multiple_metrics_returns_accepted_response-1780593188@datadoghq.com\"],\"status\":\"Accepted\",\"override_existing_configurations\":true}}}\n" - }, - "headers": { - "content-type": "application/json" - }, - "reason": "Accepted", - "status": 202 - } - }, - { - "request": { - "body": { - "type": "empty", - "value": null - }, - "content_type": "", - "method": "DELETE", - "path": "/api/v2/users/bbd25c81-fae3-46b3-99b3-4251859017c4", - "query": [] - }, - "response": { - "body": { - "encoding": "text", - "value": "" - }, - "headers": {}, - "reason": "No Content", - "status": 204 - } - } - ], - "scenario": "Configure tags for multiple metrics returns \"Accepted\" response", - "version": "v2" - }, { "feature": "Metrics", "frozen_at": "2026-10-13T19:38:42.783Z", diff --git a/tests/v2/features/metrics.feature b/tests/v2/features/metrics.feature index 765d383d9d..c8810c750a 100644 --- a/tests/v2/features/metrics.feature +++ b/tests/v2/features/metrics.feature @@ -15,31 +15,6 @@ Feature: Metrics Given a valid "apiKeyAuth" key in the system And an instance of "Metrics" API - @skip-typescript @team:ddoghq/metrics-experience - Scenario: Configure tags for multiple metrics returns "Accepted" response - Given a valid "appKeyAuth" key in the system - And there is a valid "user" in the system - And new "CreateBulkTagsMetricsConfiguration" request - And body with value {"data": {"attributes": {"emails": ["{{ user.data.attributes.email }}"], "tags": ["test", "{{ unique_lower_alnum }}"]}, "id": "system.load.1", "type": "metric_bulk_configure_tags"}} - When the request is sent - Then the response status is 202 Accepted - - @generated @skip @team:ddoghq/metrics-experience - Scenario: Configure tags for multiple metrics returns "Bad Request" response - Given a valid "appKeyAuth" key in the system - And new "CreateBulkTagsMetricsConfiguration" request - And body with value {"data": {"attributes": {"emails": ["sue@example.com", "bob@example.com"], "tags": ["host", "pod_name", "is_shadow"]}, "id": "kafka.lag", "type": "metric_bulk_configure_tags"}} - When the request is sent - Then the response status is 400 Bad Request - - @generated @skip @team:ddoghq/metrics-experience - Scenario: Configure tags for multiple metrics returns "Not Found" response - Given a valid "appKeyAuth" key in the system - And new "CreateBulkTagsMetricsConfiguration" request - And body with value {"data": {"attributes": {"emails": ["sue@example.com", "bob@example.com"], "tags": ["host", "pod_name", "is_shadow"]}, "id": "kafka.lag", "type": "metric_bulk_configure_tags"}} - When the request is sent - Then the response status is 404 Not Found - @team:ddoghq/metrics-experience Scenario: Create a derived metric returns "Bad Request" response Given a valid "appKeyAuth" key in the system @@ -263,30 +238,6 @@ Feature: Metrics When the request is sent Then the response status is 204 No Content - @generated @skip @team:ddoghq/metrics-experience - Scenario: Delete tags for multiple metrics returns "Accepted" response - Given a valid "appKeyAuth" key in the system - And new "DeleteBulkTagsMetricsConfiguration" request - And body with value {"data": {"attributes": {"emails": ["sue@example.com", "bob@example.com"]}, "id": "kafka.lag", "type": "metric_bulk_configure_tags"}} - When the request is sent - Then the response status is 202 Accepted - - @generated @skip @team:ddoghq/metrics-experience - Scenario: Delete tags for multiple metrics returns "Bad Request" response - Given a valid "appKeyAuth" key in the system - And new "DeleteBulkTagsMetricsConfiguration" request - And body with value {"data": {"attributes": {"emails": ["sue@example.com", "bob@example.com"]}, "id": "kafka.lag", "type": "metric_bulk_configure_tags"}} - When the request is sent - Then the response status is 400 Bad Request - - @generated @skip @team:ddoghq/metrics-experience - Scenario: Delete tags for multiple metrics returns "Not Found" response - Given a valid "appKeyAuth" key in the system - And new "DeleteBulkTagsMetricsConfiguration" request - And body with value {"data": {"attributes": {"emails": ["sue@example.com", "bob@example.com"]}, "id": "kafka.lag", "type": "metric_bulk_configure_tags"}} - When the request is sent - Then the response status is 404 Not Found - @generated @skip @team:ddoghq/metrics-experience Scenario: Enable historical metrics ingestion returns "Bad Request" response Given a valid "appKeyAuth" key in the system diff --git a/tests/v2/features/undo.json b/tests/v2/features/undo.json index f786876791..61ce613fba 100644 --- a/tests/v2/features/undo.json +++ b/tests/v2/features/undo.json @@ -6059,25 +6059,6 @@ "type": "safe" } }, - "DeleteBulkTagsMetricsConfiguration": { - "tag": "Metrics", - "undo": { - "type": "idempotent" - } - }, - "CreateBulkTagsMetricsConfiguration": { - "tag": "Metrics", - "undo": { - "operationId": "DeleteBulkTagsMetricsConfiguration", - "parameters": [ - { - "name": "body", - "template": "{\n \"data\": {\n \"id\":\"{{ data.id }}\",\n \"type\":\"metric_bulk_configure_tags\",\n \"attributes\": {\n \"emails\": [\"{{ data.attributes.emails[0] }}\"]\n }\n }\n}" - } - ], - "type": "unsafe" - } - }, "CreateDerivedMetric": { "tag": "Metrics", "undo": {