diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml
index f5dd9090d39..5ea08de286e 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.java b/examples/v2/metrics/CreateBulkTagsMetricsConfiguration.java
deleted file mode 100644
index 600b2ad0842..00000000000
--- a/examples/v2/metrics/CreateBulkTagsMetricsConfiguration.java
+++ /dev/null
@@ -1,45 +0,0 @@
-// Configure tags for multiple metrics returns "Accepted" response
-
-import com.datadog.api.client.ApiClient;
-import com.datadog.api.client.ApiException;
-import com.datadog.api.client.v2.api.MetricsApi;
-import com.datadog.api.client.v2.model.MetricBulkConfigureTagsType;
-import com.datadog.api.client.v2.model.MetricBulkTagConfigCreate;
-import com.datadog.api.client.v2.model.MetricBulkTagConfigCreateAttributes;
-import com.datadog.api.client.v2.model.MetricBulkTagConfigCreateRequest;
-import com.datadog.api.client.v2.model.MetricBulkTagConfigResponse;
-import java.util.Arrays;
-import java.util.Collections;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = ApiClient.getDefaultApiClient();
- defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN"));
- MetricsApi apiInstance = new MetricsApi(defaultClient);
-
- // there is a valid "user" in the system
- String USER_DATA_ATTRIBUTES_EMAIL = System.getenv("USER_DATA_ATTRIBUTES_EMAIL");
-
- MetricBulkTagConfigCreateRequest body =
- new MetricBulkTagConfigCreateRequest()
- .data(
- new MetricBulkTagConfigCreate()
- .attributes(
- new MetricBulkTagConfigCreateAttributes()
- .emails(Collections.singletonList(USER_DATA_ATTRIBUTES_EMAIL))
- .tags(Arrays.asList("test", "examplemetric")))
- .id("system.load.1")
- .type(MetricBulkConfigureTagsType.BULK_MANAGE_TAGS));
-
- try {
- MetricBulkTagConfigResponse result = apiInstance.createBulkTagsMetricsConfiguration(body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling MetricsApi#createBulkTagsMetricsConfiguration");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
diff --git a/examples/v2/metrics/DeleteBulkTagsMetricsConfiguration.java b/examples/v2/metrics/DeleteBulkTagsMetricsConfiguration.java
deleted file mode 100644
index 4aa3c82967c..00000000000
--- a/examples/v2/metrics/DeleteBulkTagsMetricsConfiguration.java
+++ /dev/null
@@ -1,40 +0,0 @@
-// Delete tags for multiple metrics returns "Accepted" response
-
-import com.datadog.api.client.ApiClient;
-import com.datadog.api.client.ApiException;
-import com.datadog.api.client.v2.api.MetricsApi;
-import com.datadog.api.client.v2.model.MetricBulkConfigureTagsType;
-import com.datadog.api.client.v2.model.MetricBulkTagConfigDelete;
-import com.datadog.api.client.v2.model.MetricBulkTagConfigDeleteAttributes;
-import com.datadog.api.client.v2.model.MetricBulkTagConfigDeleteRequest;
-import com.datadog.api.client.v2.model.MetricBulkTagConfigResponse;
-import java.util.Arrays;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = ApiClient.getDefaultApiClient();
- defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN"));
- MetricsApi apiInstance = new MetricsApi(defaultClient);
-
- MetricBulkTagConfigDeleteRequest body =
- new MetricBulkTagConfigDeleteRequest()
- .data(
- new MetricBulkTagConfigDelete()
- .attributes(
- new MetricBulkTagConfigDeleteAttributes()
- .emails(Arrays.asList("sue@example.com", "bob@example.com")))
- .id("kafka.lag")
- .type(MetricBulkConfigureTagsType.BULK_MANAGE_TAGS));
-
- try {
- MetricBulkTagConfigResponse result = apiInstance.deleteBulkTagsMetricsConfiguration(body);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling MetricsApi#deleteBulkTagsMetricsConfiguration");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
diff --git a/src/main/java/com/datadog/api/client/v2/api/MetricsApi.java b/src/main/java/com/datadog/api/client/v2/api/MetricsApi.java
index deca12a23df..641afd8f10d 100644
--- a/src/main/java/com/datadog/api/client/v2/api/MetricsApi.java
+++ b/src/main/java/com/datadog/api/client/v2/api/MetricsApi.java
@@ -12,9 +12,6 @@
import com.datadog.api.client.v2.model.IntakePayloadAccepted;
import com.datadog.api.client.v2.model.MetricAllTagsResponse;
import com.datadog.api.client.v2.model.MetricAssetsResponse;
-import com.datadog.api.client.v2.model.MetricBulkTagConfigCreateRequest;
-import com.datadog.api.client.v2.model.MetricBulkTagConfigDeleteRequest;
-import com.datadog.api.client.v2.model.MetricBulkTagConfigResponse;
import com.datadog.api.client.v2.model.MetricContentEncoding;
import com.datadog.api.client.v2.model.MetricEstimateResponse;
import com.datadog.api.client.v2.model.MetricPayload;
@@ -83,166 +80,6 @@ public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
- /**
- * Configure tags for multiple metrics.
- *
- *
See {@link #createBulkTagsMetricsConfigurationWithHttpInfo}.
- *
- * @param body (required)
- * @return MetricBulkTagConfigResponse
- * @throws ApiException if fails to make API call
- * @deprecated
- */
- @Deprecated
- public MetricBulkTagConfigResponse createBulkTagsMetricsConfiguration(
- MetricBulkTagConfigCreateRequest body) throws ApiException {
- return createBulkTagsMetricsConfigurationWithHttpInfo(body).getData();
- }
-
- /**
- * Configure tags for multiple metrics.
- *
- *
See {@link #createBulkTagsMetricsConfigurationWithHttpInfoAsync}.
- *
- * @param body (required)
- * @return CompletableFuture<MetricBulkTagConfigResponse>
- * @deprecated
- */
- @Deprecated
- public CompletableFuture createBulkTagsMetricsConfigurationAsync(
- MetricBulkTagConfigCreateRequest body) {
- return createBulkTagsMetricsConfigurationWithHttpInfoAsync(body)
- .thenApply(
- response -> {
- return response.getData();
- });
- }
-
- /**
- * 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.
- *
- * @param body (required)
- * @return ApiResponse<MetricBulkTagConfigResponse>
- * @throws ApiException if fails to make API call
- * @http.response.details
- *
- * Response details
- * | Status Code | Description | Response Headers |
- * | 202 | Accepted | - |
- * | 400 | Bad Request | - |
- * | 403 | Forbidden | - |
- * | 404 | Not Found | - |
- * | 429 | Too Many Requests | - |
- *
- *
- * @deprecated
- */
- @Deprecated
- public ApiResponse createBulkTagsMetricsConfigurationWithHttpInfo(
- MetricBulkTagConfigCreateRequest body) throws ApiException {
- Object localVarPostBody = body;
-
- // verify the required parameter 'body' is set
- if (body == null) {
- throw new ApiException(
- 400,
- "Missing the required parameter 'body' when calling createBulkTagsMetricsConfiguration");
- }
- // create path and map variables
- String localVarPath = "/api/v2/metrics/config/bulk-tags";
-
- Map localVarHeaderParams = new HashMap();
-
- Invocation.Builder builder =
- apiClient.createBuilder(
- "v2.MetricsApi.createBulkTagsMetricsConfiguration",
- localVarPath,
- new ArrayList(),
- localVarHeaderParams,
- new HashMap(),
- new String[] {"application/json"},
- new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
- return apiClient.invokeAPI(
- "POST",
- builder,
- localVarHeaderParams,
- new String[] {"application/json"},
- localVarPostBody,
- new HashMap(),
- false,
- new GenericType() {});
- }
-
- /**
- * Configure tags for multiple metrics.
- *
- * See {@link #createBulkTagsMetricsConfigurationWithHttpInfo}.
- *
- * @param body (required)
- * @return CompletableFuture<ApiResponse<MetricBulkTagConfigResponse>>
- * @deprecated
- */
- @Deprecated
- public CompletableFuture>
- createBulkTagsMetricsConfigurationWithHttpInfoAsync(MetricBulkTagConfigCreateRequest body) {
- Object localVarPostBody = body;
-
- // verify the required parameter 'body' is set
- if (body == null) {
- CompletableFuture> result =
- new CompletableFuture<>();
- result.completeExceptionally(
- new ApiException(
- 400,
- "Missing the required parameter 'body' when calling"
- + " createBulkTagsMetricsConfiguration"));
- return result;
- }
- // create path and map variables
- String localVarPath = "/api/v2/metrics/config/bulk-tags";
-
- Map localVarHeaderParams = new HashMap();
-
- Invocation.Builder builder;
- try {
- builder =
- apiClient.createBuilder(
- "v2.MetricsApi.createBulkTagsMetricsConfiguration",
- localVarPath,
- new ArrayList(),
- localVarHeaderParams,
- new HashMap(),
- new String[] {"application/json"},
- new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
- } catch (ApiException ex) {
- CompletableFuture> result =
- new CompletableFuture<>();
- result.completeExceptionally(ex);
- return result;
- }
- return apiClient.invokeAPIAsync(
- "POST",
- builder,
- localVarHeaderParams,
- new String[] {"application/json"},
- localVarPostBody,
- new HashMap(),
- false,
- new GenericType() {});
- }
-
/**
* Create a derived metric.
*
@@ -1048,162 +885,6 @@ public ApiResponse createTagIndexingRuleExempt
new GenericType() {});
}
- /**
- * Delete tags for multiple metrics.
- *
- * See {@link #deleteBulkTagsMetricsConfigurationWithHttpInfo}.
- *
- * @param body (required)
- * @return MetricBulkTagConfigResponse
- * @throws ApiException if fails to make API call
- * @deprecated
- */
- @Deprecated
- public MetricBulkTagConfigResponse deleteBulkTagsMetricsConfiguration(
- MetricBulkTagConfigDeleteRequest body) throws ApiException {
- return deleteBulkTagsMetricsConfigurationWithHttpInfo(body).getData();
- }
-
- /**
- * Delete tags for multiple metrics.
- *
- *
See {@link #deleteBulkTagsMetricsConfigurationWithHttpInfoAsync}.
- *
- * @param body (required)
- * @return CompletableFuture<MetricBulkTagConfigResponse>
- * @deprecated
- */
- @Deprecated
- public CompletableFuture deleteBulkTagsMetricsConfigurationAsync(
- MetricBulkTagConfigDeleteRequest body) {
- return deleteBulkTagsMetricsConfigurationWithHttpInfoAsync(body)
- .thenApply(
- response -> {
- return response.getData();
- });
- }
-
- /**
- * 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.
- *
- * @param body (required)
- * @return ApiResponse<MetricBulkTagConfigResponse>
- * @throws ApiException if fails to make API call
- * @http.response.details
- *
- * Response details
- * | Status Code | Description | Response Headers |
- * | 202 | Accepted | - |
- * | 400 | Bad Request | - |
- * | 403 | Forbidden | - |
- * | 404 | Not Found | - |
- * | 429 | Too Many Requests | - |
- *
- *
- * @deprecated
- */
- @Deprecated
- public ApiResponse deleteBulkTagsMetricsConfigurationWithHttpInfo(
- MetricBulkTagConfigDeleteRequest body) throws ApiException {
- Object localVarPostBody = body;
-
- // verify the required parameter 'body' is set
- if (body == null) {
- throw new ApiException(
- 400,
- "Missing the required parameter 'body' when calling deleteBulkTagsMetricsConfiguration");
- }
- // create path and map variables
- String localVarPath = "/api/v2/metrics/config/bulk-tags";
-
- Map localVarHeaderParams = new HashMap();
-
- Invocation.Builder builder =
- apiClient.createBuilder(
- "v2.MetricsApi.deleteBulkTagsMetricsConfiguration",
- localVarPath,
- new ArrayList(),
- localVarHeaderParams,
- new HashMap(),
- new String[] {"application/json"},
- new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
- return apiClient.invokeAPI(
- "DELETE",
- builder,
- localVarHeaderParams,
- new String[] {"application/json"},
- localVarPostBody,
- new HashMap(),
- false,
- new GenericType() {});
- }
-
- /**
- * Delete tags for multiple metrics.
- *
- * See {@link #deleteBulkTagsMetricsConfigurationWithHttpInfo}.
- *
- * @param body (required)
- * @return CompletableFuture<ApiResponse<MetricBulkTagConfigResponse>>
- * @deprecated
- */
- @Deprecated
- public CompletableFuture>
- deleteBulkTagsMetricsConfigurationWithHttpInfoAsync(MetricBulkTagConfigDeleteRequest body) {
- Object localVarPostBody = body;
-
- // verify the required parameter 'body' is set
- if (body == null) {
- CompletableFuture> result =
- new CompletableFuture<>();
- result.completeExceptionally(
- new ApiException(
- 400,
- "Missing the required parameter 'body' when calling"
- + " deleteBulkTagsMetricsConfiguration"));
- return result;
- }
- // create path and map variables
- String localVarPath = "/api/v2/metrics/config/bulk-tags";
-
- Map localVarHeaderParams = new HashMap();
-
- Invocation.Builder builder;
- try {
- builder =
- apiClient.createBuilder(
- "v2.MetricsApi.deleteBulkTagsMetricsConfiguration",
- localVarPath,
- new ArrayList(),
- localVarHeaderParams,
- new HashMap(),
- new String[] {"application/json"},
- new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
- } catch (ApiException ex) {
- CompletableFuture> result =
- new CompletableFuture<>();
- result.completeExceptionally(ex);
- return result;
- }
- return apiClient.invokeAPIAsync(
- "DELETE",
- builder,
- localVarHeaderParams,
- new String[] {"application/json"},
- localVarPostBody,
- new HashMap(),
- false,
- new GenericType() {});
- }
-
/**
* Delete a derived metric.
*
diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricBulkConfigureTagsType.java b/src/main/java/com/datadog/api/client/v2/model/MetricBulkConfigureTagsType.java
deleted file mode 100644
index 060e390fed7..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/MetricBulkConfigureTagsType.java
+++ /dev/null
@@ -1,57 +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.
- */
-
-package com.datadog.api.client.v2.model;
-
-import com.datadog.api.client.ModelEnum;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.core.JsonGenerator;
-import com.fasterxml.jackson.core.JsonProcessingException;
-import com.fasterxml.jackson.databind.SerializerProvider;
-import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import com.fasterxml.jackson.databind.ser.std.StdSerializer;
-import java.io.IOException;
-import java.util.Arrays;
-import java.util.HashSet;
-import java.util.Set;
-
-/** The metric bulk configure tags resource. */
-@JsonSerialize(using = MetricBulkConfigureTagsType.MetricBulkConfigureTagsTypeSerializer.class)
-public class MetricBulkConfigureTagsType extends ModelEnum {
-
- private static final Set allowedValues =
- new HashSet(Arrays.asList("metric_bulk_configure_tags"));
-
- public static final MetricBulkConfigureTagsType BULK_MANAGE_TAGS =
- new MetricBulkConfigureTagsType("metric_bulk_configure_tags");
-
- MetricBulkConfigureTagsType(String value) {
- super(value, allowedValues);
- }
-
- public static class MetricBulkConfigureTagsTypeSerializer
- extends StdSerializer {
- public MetricBulkConfigureTagsTypeSerializer(Class t) {
- super(t);
- }
-
- public MetricBulkConfigureTagsTypeSerializer() {
- this(null);
- }
-
- @Override
- public void serialize(
- MetricBulkConfigureTagsType value, JsonGenerator jgen, SerializerProvider provider)
- throws IOException, JsonProcessingException {
- jgen.writeObject(value.value);
- }
- }
-
- @JsonCreator
- public static MetricBulkConfigureTagsType fromValue(String value) {
- return new MetricBulkConfigureTagsType(value);
- }
-}
diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigCreate.java b/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigCreate.java
deleted file mode 100644
index 806e5caf8bb..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigCreate.java
+++ /dev/null
@@ -1,210 +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.
- */
-
-package com.datadog.api.client.v2.model;
-
-import com.fasterxml.jackson.annotation.JsonAnyGetter;
-import com.fasterxml.jackson.annotation.JsonAnySetter;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Objects;
-
-/** Request object to bulk configure tags for metrics matching the given prefix. */
-@JsonPropertyOrder({
- MetricBulkTagConfigCreate.JSON_PROPERTY_ATTRIBUTES,
- MetricBulkTagConfigCreate.JSON_PROPERTY_ID,
- MetricBulkTagConfigCreate.JSON_PROPERTY_TYPE
-})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class MetricBulkTagConfigCreate {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_ATTRIBUTES = "attributes";
- private MetricBulkTagConfigCreateAttributes attributes;
-
- public static final String JSON_PROPERTY_ID = "id";
- private String id;
-
- public static final String JSON_PROPERTY_TYPE = "type";
- private MetricBulkConfigureTagsType type = MetricBulkConfigureTagsType.BULK_MANAGE_TAGS;
-
- public MetricBulkTagConfigCreate() {}
-
- @JsonCreator
- public MetricBulkTagConfigCreate(
- @JsonProperty(required = true, value = JSON_PROPERTY_ID) String id,
- @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) MetricBulkConfigureTagsType type) {
- this.id = id;
- this.type = type;
- this.unparsed |= !type.isValid();
- }
-
- public MetricBulkTagConfigCreate attributes(MetricBulkTagConfigCreateAttributes attributes) {
- this.attributes = attributes;
- this.unparsed |= attributes.unparsed;
- return this;
- }
-
- /**
- * Optional parameters for bulk creating metric tag configurations.
- *
- * @return attributes
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_ATTRIBUTES)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public MetricBulkTagConfigCreateAttributes getAttributes() {
- return attributes;
- }
-
- public void setAttributes(MetricBulkTagConfigCreateAttributes attributes) {
- this.attributes = attributes;
- if (attributes != null) {
- this.unparsed |= attributes.unparsed;
- }
- }
-
- public MetricBulkTagConfigCreate id(String id) {
- this.id = id;
- return this;
- }
-
- /**
- * A text prefix to match against metric names.
- *
- * @return id
- */
- @JsonProperty(JSON_PROPERTY_ID)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
-
- public MetricBulkTagConfigCreate type(MetricBulkConfigureTagsType type) {
- this.type = type;
- this.unparsed |= !type.isValid();
- return this;
- }
-
- /**
- * The metric bulk configure tags resource.
- *
- * @return type
- */
- @JsonProperty(JSON_PROPERTY_TYPE)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public MetricBulkConfigureTagsType getType() {
- return type;
- }
-
- public void setType(MetricBulkConfigureTagsType type) {
- if (!type.isValid()) {
- this.unparsed = true;
- }
- this.type = type;
- }
-
- /**
- * A container for additional, undeclared properties. This is a holder for any undeclared
- * properties as specified with the 'additionalProperties' keyword in the OAS document.
- */
- private Map additionalProperties;
-
- /**
- * Set the additional (undeclared) property with the specified name and value. If the property
- * does not already exist, create it otherwise replace it.
- *
- * @param key The arbitrary key to set
- * @param value The associated value
- * @return MetricBulkTagConfigCreate
- */
- @JsonAnySetter
- public MetricBulkTagConfigCreate putAdditionalProperty(String key, Object value) {
- if (this.additionalProperties == null) {
- this.additionalProperties = new HashMap();
- }
- this.additionalProperties.put(key, value);
- return this;
- }
-
- /**
- * Return the additional (undeclared) property.
- *
- * @return The additional properties
- */
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return additionalProperties;
- }
-
- /**
- * Return the additional (undeclared) property with the specified name.
- *
- * @param key The arbitrary key to get
- * @return The specific additional property for the given key
- */
- public Object getAdditionalProperty(String key) {
- if (this.additionalProperties == null) {
- return null;
- }
- return this.additionalProperties.get(key);
- }
-
- /** Return true if this MetricBulkTagConfigCreate object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- MetricBulkTagConfigCreate metricBulkTagConfigCreate = (MetricBulkTagConfigCreate) o;
- return Objects.equals(this.attributes, metricBulkTagConfigCreate.attributes)
- && Objects.equals(this.id, metricBulkTagConfigCreate.id)
- && Objects.equals(this.type, metricBulkTagConfigCreate.type)
- && Objects.equals(
- this.additionalProperties, metricBulkTagConfigCreate.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(attributes, id, type, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class MetricBulkTagConfigCreate {\n");
- sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
- sb.append(" id: ").append(toIndentedString(id)).append("\n");
- sb.append(" type: ").append(toIndentedString(type)).append("\n");
- sb.append(" additionalProperties: ")
- .append(toIndentedString(additionalProperties))
- .append("\n");
- sb.append('}');
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-}
diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigCreateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigCreateAttributes.java
deleted file mode 100644
index cb7fd4653af..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigCreateAttributes.java
+++ /dev/null
@@ -1,289 +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.
- */
-
-package com.datadog.api.client.v2.model;
-
-import com.fasterxml.jackson.annotation.JsonAnyGetter;
-import com.fasterxml.jackson.annotation.JsonAnySetter;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Objects;
-
-/** Optional parameters for bulk creating metric tag configurations. */
-@JsonPropertyOrder({
- MetricBulkTagConfigCreateAttributes.JSON_PROPERTY_EMAILS,
- MetricBulkTagConfigCreateAttributes.JSON_PROPERTY_EXCLUDE_TAGS_MODE,
- MetricBulkTagConfigCreateAttributes.JSON_PROPERTY_INCLUDE_ACTIVELY_QUERIED_TAGS_WINDOW,
- MetricBulkTagConfigCreateAttributes.JSON_PROPERTY_OVERRIDE_EXISTING_CONFIGURATIONS,
- MetricBulkTagConfigCreateAttributes.JSON_PROPERTY_TAGS
-})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class MetricBulkTagConfigCreateAttributes {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_EMAILS = "emails";
- private List emails = null;
-
- public static final String JSON_PROPERTY_EXCLUDE_TAGS_MODE = "exclude_tags_mode";
- private Boolean excludeTagsMode;
-
- public static final String JSON_PROPERTY_INCLUDE_ACTIVELY_QUERIED_TAGS_WINDOW =
- "include_actively_queried_tags_window";
- private Double includeActivelyQueriedTagsWindow;
-
- public static final String JSON_PROPERTY_OVERRIDE_EXISTING_CONFIGURATIONS =
- "override_existing_configurations";
- private Boolean overrideExistingConfigurations;
-
- public static final String JSON_PROPERTY_TAGS = "tags";
- private List tags = null;
-
- public MetricBulkTagConfigCreateAttributes emails(List emails) {
- this.emails = emails;
- return this;
- }
-
- public MetricBulkTagConfigCreateAttributes addEmailsItem(String emailsItem) {
- if (this.emails == null) {
- this.emails = new ArrayList<>();
- }
- this.emails.add(emailsItem);
- return this;
- }
-
- /**
- * A list of account emails to notify when the configuration is applied.
- *
- * @return emails
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_EMAILS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public List getEmails() {
- return emails;
- }
-
- public void setEmails(List emails) {
- this.emails = emails;
- }
-
- public MetricBulkTagConfigCreateAttributes excludeTagsMode(Boolean excludeTagsMode) {
- this.excludeTagsMode = excludeTagsMode;
- return this;
- }
-
- /**
- * 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.
- *
- * @return excludeTagsMode
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_EXCLUDE_TAGS_MODE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public Boolean getExcludeTagsMode() {
- return excludeTagsMode;
- }
-
- public void setExcludeTagsMode(Boolean excludeTagsMode) {
- this.excludeTagsMode = excludeTagsMode;
- }
-
- public MetricBulkTagConfigCreateAttributes includeActivelyQueriedTagsWindow(
- Double includeActivelyQueriedTagsWindow) {
- this.includeActivelyQueriedTagsWindow = includeActivelyQueriedTagsWindow;
- return this;
- }
-
- /**
- * 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). minimum: 1 maximum: 7776000
- *
- * @return includeActivelyQueriedTagsWindow
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_INCLUDE_ACTIVELY_QUERIED_TAGS_WINDOW)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public Double getIncludeActivelyQueriedTagsWindow() {
- return includeActivelyQueriedTagsWindow;
- }
-
- public void setIncludeActivelyQueriedTagsWindow(Double includeActivelyQueriedTagsWindow) {
- this.includeActivelyQueriedTagsWindow = includeActivelyQueriedTagsWindow;
- }
-
- public MetricBulkTagConfigCreateAttributes overrideExistingConfigurations(
- Boolean overrideExistingConfigurations) {
- this.overrideExistingConfigurations = overrideExistingConfigurations;
- return this;
- }
-
- /**
- * 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.
- *
- * @return overrideExistingConfigurations
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_OVERRIDE_EXISTING_CONFIGURATIONS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public Boolean getOverrideExistingConfigurations() {
- return overrideExistingConfigurations;
- }
-
- public void setOverrideExistingConfigurations(Boolean overrideExistingConfigurations) {
- this.overrideExistingConfigurations = overrideExistingConfigurations;
- }
-
- public MetricBulkTagConfigCreateAttributes tags(List tags) {
- this.tags = tags;
- return this;
- }
-
- public MetricBulkTagConfigCreateAttributes addTagsItem(String tagsItem) {
- if (this.tags == null) {
- this.tags = new ArrayList<>();
- }
- this.tags.add(tagsItem);
- return this;
- }
-
- /**
- * A list of tag names to apply to the configuration.
- *
- * @return tags
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_TAGS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public List getTags() {
- return tags;
- }
-
- public void setTags(List tags) {
- this.tags = tags;
- }
-
- /**
- * A container for additional, undeclared properties. This is a holder for any undeclared
- * properties as specified with the 'additionalProperties' keyword in the OAS document.
- */
- private Map additionalProperties;
-
- /**
- * Set the additional (undeclared) property with the specified name and value. If the property
- * does not already exist, create it otherwise replace it.
- *
- * @param key The arbitrary key to set
- * @param value The associated value
- * @return MetricBulkTagConfigCreateAttributes
- */
- @JsonAnySetter
- public MetricBulkTagConfigCreateAttributes putAdditionalProperty(String key, Object value) {
- if (this.additionalProperties == null) {
- this.additionalProperties = new HashMap();
- }
- this.additionalProperties.put(key, value);
- return this;
- }
-
- /**
- * Return the additional (undeclared) property.
- *
- * @return The additional properties
- */
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return additionalProperties;
- }
-
- /**
- * Return the additional (undeclared) property with the specified name.
- *
- * @param key The arbitrary key to get
- * @return The specific additional property for the given key
- */
- public Object getAdditionalProperty(String key) {
- if (this.additionalProperties == null) {
- return null;
- }
- return this.additionalProperties.get(key);
- }
-
- /** Return true if this MetricBulkTagConfigCreateAttributes object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- MetricBulkTagConfigCreateAttributes metricBulkTagConfigCreateAttributes =
- (MetricBulkTagConfigCreateAttributes) o;
- return Objects.equals(this.emails, metricBulkTagConfigCreateAttributes.emails)
- && Objects.equals(this.excludeTagsMode, metricBulkTagConfigCreateAttributes.excludeTagsMode)
- && Objects.equals(
- this.includeActivelyQueriedTagsWindow,
- metricBulkTagConfigCreateAttributes.includeActivelyQueriedTagsWindow)
- && Objects.equals(
- this.overrideExistingConfigurations,
- metricBulkTagConfigCreateAttributes.overrideExistingConfigurations)
- && Objects.equals(this.tags, metricBulkTagConfigCreateAttributes.tags)
- && Objects.equals(
- this.additionalProperties, metricBulkTagConfigCreateAttributes.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(
- emails,
- excludeTagsMode,
- includeActivelyQueriedTagsWindow,
- overrideExistingConfigurations,
- tags,
- additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class MetricBulkTagConfigCreateAttributes {\n");
- sb.append(" emails: ").append(toIndentedString(emails)).append("\n");
- sb.append(" excludeTagsMode: ").append(toIndentedString(excludeTagsMode)).append("\n");
- sb.append(" includeActivelyQueriedTagsWindow: ")
- .append(toIndentedString(includeActivelyQueriedTagsWindow))
- .append("\n");
- sb.append(" overrideExistingConfigurations: ")
- .append(toIndentedString(overrideExistingConfigurations))
- .append("\n");
- sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
- sb.append(" additionalProperties: ")
- .append(toIndentedString(additionalProperties))
- .append("\n");
- sb.append('}');
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-}
diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigCreateRequest.java b/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigCreateRequest.java
deleted file mode 100644
index dd433bb72e5..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigCreateRequest.java
+++ /dev/null
@@ -1,150 +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.
- */
-
-package com.datadog.api.client.v2.model;
-
-import com.fasterxml.jackson.annotation.JsonAnyGetter;
-import com.fasterxml.jackson.annotation.JsonAnySetter;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Objects;
-
-/** Wrapper object for a single bulk tag configuration request. */
-@JsonPropertyOrder({MetricBulkTagConfigCreateRequest.JSON_PROPERTY_DATA})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class MetricBulkTagConfigCreateRequest {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_DATA = "data";
- private MetricBulkTagConfigCreate data;
-
- public MetricBulkTagConfigCreateRequest() {}
-
- @JsonCreator
- public MetricBulkTagConfigCreateRequest(
- @JsonProperty(required = true, value = JSON_PROPERTY_DATA) MetricBulkTagConfigCreate data) {
- this.data = data;
- this.unparsed |= data.unparsed;
- }
-
- public MetricBulkTagConfigCreateRequest data(MetricBulkTagConfigCreate data) {
- this.data = data;
- this.unparsed |= data.unparsed;
- return this;
- }
-
- /**
- * Request object to bulk configure tags for metrics matching the given prefix.
- *
- * @return data
- */
- @JsonProperty(JSON_PROPERTY_DATA)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public MetricBulkTagConfigCreate getData() {
- return data;
- }
-
- public void setData(MetricBulkTagConfigCreate data) {
- this.data = data;
- if (data != null) {
- this.unparsed |= data.unparsed;
- }
- }
-
- /**
- * A container for additional, undeclared properties. This is a holder for any undeclared
- * properties as specified with the 'additionalProperties' keyword in the OAS document.
- */
- private Map additionalProperties;
-
- /**
- * Set the additional (undeclared) property with the specified name and value. If the property
- * does not already exist, create it otherwise replace it.
- *
- * @param key The arbitrary key to set
- * @param value The associated value
- * @return MetricBulkTagConfigCreateRequest
- */
- @JsonAnySetter
- public MetricBulkTagConfigCreateRequest putAdditionalProperty(String key, Object value) {
- if (this.additionalProperties == null) {
- this.additionalProperties = new HashMap();
- }
- this.additionalProperties.put(key, value);
- return this;
- }
-
- /**
- * Return the additional (undeclared) property.
- *
- * @return The additional properties
- */
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return additionalProperties;
- }
-
- /**
- * Return the additional (undeclared) property with the specified name.
- *
- * @param key The arbitrary key to get
- * @return The specific additional property for the given key
- */
- public Object getAdditionalProperty(String key) {
- if (this.additionalProperties == null) {
- return null;
- }
- return this.additionalProperties.get(key);
- }
-
- /** Return true if this MetricBulkTagConfigCreateRequest object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- MetricBulkTagConfigCreateRequest metricBulkTagConfigCreateRequest =
- (MetricBulkTagConfigCreateRequest) o;
- return Objects.equals(this.data, metricBulkTagConfigCreateRequest.data)
- && Objects.equals(
- this.additionalProperties, metricBulkTagConfigCreateRequest.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(data, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class MetricBulkTagConfigCreateRequest {\n");
- sb.append(" data: ").append(toIndentedString(data)).append("\n");
- sb.append(" additionalProperties: ")
- .append(toIndentedString(additionalProperties))
- .append("\n");
- sb.append('}');
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-}
diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigDelete.java b/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigDelete.java
deleted file mode 100644
index f75f77dd310..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigDelete.java
+++ /dev/null
@@ -1,210 +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.
- */
-
-package com.datadog.api.client.v2.model;
-
-import com.fasterxml.jackson.annotation.JsonAnyGetter;
-import com.fasterxml.jackson.annotation.JsonAnySetter;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Objects;
-
-/** Request object to bulk delete all tag configurations for metrics matching the given prefix. */
-@JsonPropertyOrder({
- MetricBulkTagConfigDelete.JSON_PROPERTY_ATTRIBUTES,
- MetricBulkTagConfigDelete.JSON_PROPERTY_ID,
- MetricBulkTagConfigDelete.JSON_PROPERTY_TYPE
-})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class MetricBulkTagConfigDelete {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_ATTRIBUTES = "attributes";
- private MetricBulkTagConfigDeleteAttributes attributes;
-
- public static final String JSON_PROPERTY_ID = "id";
- private String id;
-
- public static final String JSON_PROPERTY_TYPE = "type";
- private MetricBulkConfigureTagsType type = MetricBulkConfigureTagsType.BULK_MANAGE_TAGS;
-
- public MetricBulkTagConfigDelete() {}
-
- @JsonCreator
- public MetricBulkTagConfigDelete(
- @JsonProperty(required = true, value = JSON_PROPERTY_ID) String id,
- @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) MetricBulkConfigureTagsType type) {
- this.id = id;
- this.type = type;
- this.unparsed |= !type.isValid();
- }
-
- public MetricBulkTagConfigDelete attributes(MetricBulkTagConfigDeleteAttributes attributes) {
- this.attributes = attributes;
- this.unparsed |= attributes.unparsed;
- return this;
- }
-
- /**
- * Optional parameters for bulk deleting metric tag configurations.
- *
- * @return attributes
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_ATTRIBUTES)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public MetricBulkTagConfigDeleteAttributes getAttributes() {
- return attributes;
- }
-
- public void setAttributes(MetricBulkTagConfigDeleteAttributes attributes) {
- this.attributes = attributes;
- if (attributes != null) {
- this.unparsed |= attributes.unparsed;
- }
- }
-
- public MetricBulkTagConfigDelete id(String id) {
- this.id = id;
- return this;
- }
-
- /**
- * A text prefix to match against metric names.
- *
- * @return id
- */
- @JsonProperty(JSON_PROPERTY_ID)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
-
- public MetricBulkTagConfigDelete type(MetricBulkConfigureTagsType type) {
- this.type = type;
- this.unparsed |= !type.isValid();
- return this;
- }
-
- /**
- * The metric bulk configure tags resource.
- *
- * @return type
- */
- @JsonProperty(JSON_PROPERTY_TYPE)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public MetricBulkConfigureTagsType getType() {
- return type;
- }
-
- public void setType(MetricBulkConfigureTagsType type) {
- if (!type.isValid()) {
- this.unparsed = true;
- }
- this.type = type;
- }
-
- /**
- * A container for additional, undeclared properties. This is a holder for any undeclared
- * properties as specified with the 'additionalProperties' keyword in the OAS document.
- */
- private Map additionalProperties;
-
- /**
- * Set the additional (undeclared) property with the specified name and value. If the property
- * does not already exist, create it otherwise replace it.
- *
- * @param key The arbitrary key to set
- * @param value The associated value
- * @return MetricBulkTagConfigDelete
- */
- @JsonAnySetter
- public MetricBulkTagConfigDelete putAdditionalProperty(String key, Object value) {
- if (this.additionalProperties == null) {
- this.additionalProperties = new HashMap();
- }
- this.additionalProperties.put(key, value);
- return this;
- }
-
- /**
- * Return the additional (undeclared) property.
- *
- * @return The additional properties
- */
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return additionalProperties;
- }
-
- /**
- * Return the additional (undeclared) property with the specified name.
- *
- * @param key The arbitrary key to get
- * @return The specific additional property for the given key
- */
- public Object getAdditionalProperty(String key) {
- if (this.additionalProperties == null) {
- return null;
- }
- return this.additionalProperties.get(key);
- }
-
- /** Return true if this MetricBulkTagConfigDelete object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- MetricBulkTagConfigDelete metricBulkTagConfigDelete = (MetricBulkTagConfigDelete) o;
- return Objects.equals(this.attributes, metricBulkTagConfigDelete.attributes)
- && Objects.equals(this.id, metricBulkTagConfigDelete.id)
- && Objects.equals(this.type, metricBulkTagConfigDelete.type)
- && Objects.equals(
- this.additionalProperties, metricBulkTagConfigDelete.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(attributes, id, type, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class MetricBulkTagConfigDelete {\n");
- sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
- sb.append(" id: ").append(toIndentedString(id)).append("\n");
- sb.append(" type: ").append(toIndentedString(type)).append("\n");
- sb.append(" additionalProperties: ")
- .append(toIndentedString(additionalProperties))
- .append("\n");
- sb.append('}');
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-}
diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigDeleteAttributes.java b/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigDeleteAttributes.java
deleted file mode 100644
index 7a5c7740995..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigDeleteAttributes.java
+++ /dev/null
@@ -1,147 +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.
- */
-
-package com.datadog.api.client.v2.model;
-
-import com.fasterxml.jackson.annotation.JsonAnyGetter;
-import com.fasterxml.jackson.annotation.JsonAnySetter;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Objects;
-
-/** Optional parameters for bulk deleting metric tag configurations. */
-@JsonPropertyOrder({MetricBulkTagConfigDeleteAttributes.JSON_PROPERTY_EMAILS})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class MetricBulkTagConfigDeleteAttributes {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_EMAILS = "emails";
- private List emails = null;
-
- public MetricBulkTagConfigDeleteAttributes emails(List emails) {
- this.emails = emails;
- return this;
- }
-
- public MetricBulkTagConfigDeleteAttributes addEmailsItem(String emailsItem) {
- if (this.emails == null) {
- this.emails = new ArrayList<>();
- }
- this.emails.add(emailsItem);
- return this;
- }
-
- /**
- * A list of account emails to notify when the configuration is applied.
- *
- * @return emails
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_EMAILS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public List getEmails() {
- return emails;
- }
-
- public void setEmails(List emails) {
- this.emails = emails;
- }
-
- /**
- * A container for additional, undeclared properties. This is a holder for any undeclared
- * properties as specified with the 'additionalProperties' keyword in the OAS document.
- */
- private Map additionalProperties;
-
- /**
- * Set the additional (undeclared) property with the specified name and value. If the property
- * does not already exist, create it otherwise replace it.
- *
- * @param key The arbitrary key to set
- * @param value The associated value
- * @return MetricBulkTagConfigDeleteAttributes
- */
- @JsonAnySetter
- public MetricBulkTagConfigDeleteAttributes putAdditionalProperty(String key, Object value) {
- if (this.additionalProperties == null) {
- this.additionalProperties = new HashMap();
- }
- this.additionalProperties.put(key, value);
- return this;
- }
-
- /**
- * Return the additional (undeclared) property.
- *
- * @return The additional properties
- */
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return additionalProperties;
- }
-
- /**
- * Return the additional (undeclared) property with the specified name.
- *
- * @param key The arbitrary key to get
- * @return The specific additional property for the given key
- */
- public Object getAdditionalProperty(String key) {
- if (this.additionalProperties == null) {
- return null;
- }
- return this.additionalProperties.get(key);
- }
-
- /** Return true if this MetricBulkTagConfigDeleteAttributes object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- MetricBulkTagConfigDeleteAttributes metricBulkTagConfigDeleteAttributes =
- (MetricBulkTagConfigDeleteAttributes) o;
- return Objects.equals(this.emails, metricBulkTagConfigDeleteAttributes.emails)
- && Objects.equals(
- this.additionalProperties, metricBulkTagConfigDeleteAttributes.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(emails, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class MetricBulkTagConfigDeleteAttributes {\n");
- sb.append(" emails: ").append(toIndentedString(emails)).append("\n");
- sb.append(" additionalProperties: ")
- .append(toIndentedString(additionalProperties))
- .append("\n");
- sb.append('}');
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-}
diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigDeleteRequest.java b/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigDeleteRequest.java
deleted file mode 100644
index 29cff84e974..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigDeleteRequest.java
+++ /dev/null
@@ -1,150 +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.
- */
-
-package com.datadog.api.client.v2.model;
-
-import com.fasterxml.jackson.annotation.JsonAnyGetter;
-import com.fasterxml.jackson.annotation.JsonAnySetter;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Objects;
-
-/** Wrapper object for a single bulk tag deletion request. */
-@JsonPropertyOrder({MetricBulkTagConfigDeleteRequest.JSON_PROPERTY_DATA})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class MetricBulkTagConfigDeleteRequest {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_DATA = "data";
- private MetricBulkTagConfigDelete data;
-
- public MetricBulkTagConfigDeleteRequest() {}
-
- @JsonCreator
- public MetricBulkTagConfigDeleteRequest(
- @JsonProperty(required = true, value = JSON_PROPERTY_DATA) MetricBulkTagConfigDelete data) {
- this.data = data;
- this.unparsed |= data.unparsed;
- }
-
- public MetricBulkTagConfigDeleteRequest data(MetricBulkTagConfigDelete data) {
- this.data = data;
- this.unparsed |= data.unparsed;
- return this;
- }
-
- /**
- * Request object to bulk delete all tag configurations for metrics matching the given prefix.
- *
- * @return data
- */
- @JsonProperty(JSON_PROPERTY_DATA)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public MetricBulkTagConfigDelete getData() {
- return data;
- }
-
- public void setData(MetricBulkTagConfigDelete data) {
- this.data = data;
- if (data != null) {
- this.unparsed |= data.unparsed;
- }
- }
-
- /**
- * A container for additional, undeclared properties. This is a holder for any undeclared
- * properties as specified with the 'additionalProperties' keyword in the OAS document.
- */
- private Map additionalProperties;
-
- /**
- * Set the additional (undeclared) property with the specified name and value. If the property
- * does not already exist, create it otherwise replace it.
- *
- * @param key The arbitrary key to set
- * @param value The associated value
- * @return MetricBulkTagConfigDeleteRequest
- */
- @JsonAnySetter
- public MetricBulkTagConfigDeleteRequest putAdditionalProperty(String key, Object value) {
- if (this.additionalProperties == null) {
- this.additionalProperties = new HashMap();
- }
- this.additionalProperties.put(key, value);
- return this;
- }
-
- /**
- * Return the additional (undeclared) property.
- *
- * @return The additional properties
- */
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return additionalProperties;
- }
-
- /**
- * Return the additional (undeclared) property with the specified name.
- *
- * @param key The arbitrary key to get
- * @return The specific additional property for the given key
- */
- public Object getAdditionalProperty(String key) {
- if (this.additionalProperties == null) {
- return null;
- }
- return this.additionalProperties.get(key);
- }
-
- /** Return true if this MetricBulkTagConfigDeleteRequest object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- MetricBulkTagConfigDeleteRequest metricBulkTagConfigDeleteRequest =
- (MetricBulkTagConfigDeleteRequest) o;
- return Objects.equals(this.data, metricBulkTagConfigDeleteRequest.data)
- && Objects.equals(
- this.additionalProperties, metricBulkTagConfigDeleteRequest.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(data, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class MetricBulkTagConfigDeleteRequest {\n");
- sb.append(" data: ").append(toIndentedString(data)).append("\n");
- sb.append(" additionalProperties: ")
- .append(toIndentedString(additionalProperties))
- .append("\n");
- sb.append('}');
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-}
diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigResponse.java b/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigResponse.java
deleted file mode 100644
index 55d7fc3a404..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigResponse.java
+++ /dev/null
@@ -1,141 +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.
- */
-
-package com.datadog.api.client.v2.model;
-
-import com.fasterxml.jackson.annotation.JsonAnyGetter;
-import com.fasterxml.jackson.annotation.JsonAnySetter;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Objects;
-
-/** Wrapper for a single bulk tag configuration status response. */
-@JsonPropertyOrder({MetricBulkTagConfigResponse.JSON_PROPERTY_DATA})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class MetricBulkTagConfigResponse {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_DATA = "data";
- private MetricBulkTagConfigStatus data;
-
- public MetricBulkTagConfigResponse data(MetricBulkTagConfigStatus data) {
- this.data = data;
- this.unparsed |= data.unparsed;
- return this;
- }
-
- /**
- * The status of a request to bulk configure metric tags. It contains the fields from the original
- * request for reference.
- *
- * @return data
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_DATA)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public MetricBulkTagConfigStatus getData() {
- return data;
- }
-
- public void setData(MetricBulkTagConfigStatus data) {
- this.data = data;
- if (data != null) {
- this.unparsed |= data.unparsed;
- }
- }
-
- /**
- * A container for additional, undeclared properties. This is a holder for any undeclared
- * properties as specified with the 'additionalProperties' keyword in the OAS document.
- */
- private Map additionalProperties;
-
- /**
- * Set the additional (undeclared) property with the specified name and value. If the property
- * does not already exist, create it otherwise replace it.
- *
- * @param key The arbitrary key to set
- * @param value The associated value
- * @return MetricBulkTagConfigResponse
- */
- @JsonAnySetter
- public MetricBulkTagConfigResponse putAdditionalProperty(String key, Object value) {
- if (this.additionalProperties == null) {
- this.additionalProperties = new HashMap();
- }
- this.additionalProperties.put(key, value);
- return this;
- }
-
- /**
- * Return the additional (undeclared) property.
- *
- * @return The additional properties
- */
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return additionalProperties;
- }
-
- /**
- * Return the additional (undeclared) property with the specified name.
- *
- * @param key The arbitrary key to get
- * @return The specific additional property for the given key
- */
- public Object getAdditionalProperty(String key) {
- if (this.additionalProperties == null) {
- return null;
- }
- return this.additionalProperties.get(key);
- }
-
- /** Return true if this MetricBulkTagConfigResponse object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- MetricBulkTagConfigResponse metricBulkTagConfigResponse = (MetricBulkTagConfigResponse) o;
- return Objects.equals(this.data, metricBulkTagConfigResponse.data)
- && Objects.equals(
- this.additionalProperties, metricBulkTagConfigResponse.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(data, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class MetricBulkTagConfigResponse {\n");
- sb.append(" data: ").append(toIndentedString(data)).append("\n");
- sb.append(" additionalProperties: ")
- .append(toIndentedString(additionalProperties))
- .append("\n");
- sb.append('}');
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-}
diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigStatus.java b/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigStatus.java
deleted file mode 100644
index aa69ac31039..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigStatus.java
+++ /dev/null
@@ -1,213 +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.
- */
-
-package com.datadog.api.client.v2.model;
-
-import com.fasterxml.jackson.annotation.JsonAnyGetter;
-import com.fasterxml.jackson.annotation.JsonAnySetter;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Objects;
-
-/**
- * The status of a request to bulk configure metric tags. It contains the fields from the original
- * request for reference.
- */
-@JsonPropertyOrder({
- MetricBulkTagConfigStatus.JSON_PROPERTY_ATTRIBUTES,
- MetricBulkTagConfigStatus.JSON_PROPERTY_ID,
- MetricBulkTagConfigStatus.JSON_PROPERTY_TYPE
-})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class MetricBulkTagConfigStatus {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_ATTRIBUTES = "attributes";
- private MetricBulkTagConfigStatusAttributes attributes;
-
- public static final String JSON_PROPERTY_ID = "id";
- private String id;
-
- public static final String JSON_PROPERTY_TYPE = "type";
- private MetricBulkConfigureTagsType type = MetricBulkConfigureTagsType.BULK_MANAGE_TAGS;
-
- public MetricBulkTagConfigStatus() {}
-
- @JsonCreator
- public MetricBulkTagConfigStatus(
- @JsonProperty(required = true, value = JSON_PROPERTY_ID) String id,
- @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) MetricBulkConfigureTagsType type) {
- this.id = id;
- this.type = type;
- this.unparsed |= !type.isValid();
- }
-
- public MetricBulkTagConfigStatus attributes(MetricBulkTagConfigStatusAttributes attributes) {
- this.attributes = attributes;
- this.unparsed |= attributes.unparsed;
- return this;
- }
-
- /**
- * Optional attributes for the status of a bulk tag configuration request.
- *
- * @return attributes
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_ATTRIBUTES)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public MetricBulkTagConfigStatusAttributes getAttributes() {
- return attributes;
- }
-
- public void setAttributes(MetricBulkTagConfigStatusAttributes attributes) {
- this.attributes = attributes;
- if (attributes != null) {
- this.unparsed |= attributes.unparsed;
- }
- }
-
- public MetricBulkTagConfigStatus id(String id) {
- this.id = id;
- return this;
- }
-
- /**
- * A text prefix to match against metric names.
- *
- * @return id
- */
- @JsonProperty(JSON_PROPERTY_ID)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
-
- public MetricBulkTagConfigStatus type(MetricBulkConfigureTagsType type) {
- this.type = type;
- this.unparsed |= !type.isValid();
- return this;
- }
-
- /**
- * The metric bulk configure tags resource.
- *
- * @return type
- */
- @JsonProperty(JSON_PROPERTY_TYPE)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public MetricBulkConfigureTagsType getType() {
- return type;
- }
-
- public void setType(MetricBulkConfigureTagsType type) {
- if (!type.isValid()) {
- this.unparsed = true;
- }
- this.type = type;
- }
-
- /**
- * A container for additional, undeclared properties. This is a holder for any undeclared
- * properties as specified with the 'additionalProperties' keyword in the OAS document.
- */
- private Map additionalProperties;
-
- /**
- * Set the additional (undeclared) property with the specified name and value. If the property
- * does not already exist, create it otherwise replace it.
- *
- * @param key The arbitrary key to set
- * @param value The associated value
- * @return MetricBulkTagConfigStatus
- */
- @JsonAnySetter
- public MetricBulkTagConfigStatus putAdditionalProperty(String key, Object value) {
- if (this.additionalProperties == null) {
- this.additionalProperties = new HashMap();
- }
- this.additionalProperties.put(key, value);
- return this;
- }
-
- /**
- * Return the additional (undeclared) property.
- *
- * @return The additional properties
- */
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return additionalProperties;
- }
-
- /**
- * Return the additional (undeclared) property with the specified name.
- *
- * @param key The arbitrary key to get
- * @return The specific additional property for the given key
- */
- public Object getAdditionalProperty(String key) {
- if (this.additionalProperties == null) {
- return null;
- }
- return this.additionalProperties.get(key);
- }
-
- /** Return true if this MetricBulkTagConfigStatus object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- MetricBulkTagConfigStatus metricBulkTagConfigStatus = (MetricBulkTagConfigStatus) o;
- return Objects.equals(this.attributes, metricBulkTagConfigStatus.attributes)
- && Objects.equals(this.id, metricBulkTagConfigStatus.id)
- && Objects.equals(this.type, metricBulkTagConfigStatus.type)
- && Objects.equals(
- this.additionalProperties, metricBulkTagConfigStatus.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(attributes, id, type, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class MetricBulkTagConfigStatus {\n");
- sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
- sb.append(" id: ").append(toIndentedString(id)).append("\n");
- sb.append(" type: ").append(toIndentedString(type)).append("\n");
- sb.append(" additionalProperties: ")
- .append(toIndentedString(additionalProperties))
- .append("\n");
- sb.append('}');
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-}
diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigStatusAttributes.java b/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigStatusAttributes.java
deleted file mode 100644
index 5b39527d154..00000000000
--- a/src/main/java/com/datadog/api/client/v2/model/MetricBulkTagConfigStatusAttributes.java
+++ /dev/null
@@ -1,240 +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.
- */
-
-package com.datadog.api.client.v2.model;
-
-import com.fasterxml.jackson.annotation.JsonAnyGetter;
-import com.fasterxml.jackson.annotation.JsonAnySetter;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Objects;
-
-/** Optional attributes for the status of a bulk tag configuration request. */
-@JsonPropertyOrder({
- MetricBulkTagConfigStatusAttributes.JSON_PROPERTY_EMAILS,
- MetricBulkTagConfigStatusAttributes.JSON_PROPERTY_EXCLUDE_TAGS_MODE,
- MetricBulkTagConfigStatusAttributes.JSON_PROPERTY_STATUS,
- MetricBulkTagConfigStatusAttributes.JSON_PROPERTY_TAGS
-})
-@jakarta.annotation.Generated(
- value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
-public class MetricBulkTagConfigStatusAttributes {
- @JsonIgnore public boolean unparsed = false;
- public static final String JSON_PROPERTY_EMAILS = "emails";
- private List emails = null;
-
- public static final String JSON_PROPERTY_EXCLUDE_TAGS_MODE = "exclude_tags_mode";
- private Boolean excludeTagsMode;
-
- public static final String JSON_PROPERTY_STATUS = "status";
- private String status;
-
- public static final String JSON_PROPERTY_TAGS = "tags";
- private List tags = null;
-
- public MetricBulkTagConfigStatusAttributes emails(List emails) {
- this.emails = emails;
- return this;
- }
-
- public MetricBulkTagConfigStatusAttributes addEmailsItem(String emailsItem) {
- if (this.emails == null) {
- this.emails = new ArrayList<>();
- }
- this.emails.add(emailsItem);
- return this;
- }
-
- /**
- * A list of account emails to notify when the configuration is applied.
- *
- * @return emails
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_EMAILS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public List getEmails() {
- return emails;
- }
-
- public void setEmails(List emails) {
- this.emails = emails;
- }
-
- public MetricBulkTagConfigStatusAttributes excludeTagsMode(Boolean excludeTagsMode) {
- this.excludeTagsMode = excludeTagsMode;
- return this;
- }
-
- /**
- * 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.
- *
- * @return excludeTagsMode
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_EXCLUDE_TAGS_MODE)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public Boolean getExcludeTagsMode() {
- return excludeTagsMode;
- }
-
- public void setExcludeTagsMode(Boolean excludeTagsMode) {
- this.excludeTagsMode = excludeTagsMode;
- }
-
- public MetricBulkTagConfigStatusAttributes status(String status) {
- this.status = status;
- return this;
- }
-
- /**
- * The status of the request.
- *
- * @return status
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_STATUS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getStatus() {
- return status;
- }
-
- public void setStatus(String status) {
- this.status = status;
- }
-
- public MetricBulkTagConfigStatusAttributes tags(List tags) {
- this.tags = tags;
- return this;
- }
-
- public MetricBulkTagConfigStatusAttributes addTagsItem(String tagsItem) {
- if (this.tags == null) {
- this.tags = new ArrayList<>();
- }
- this.tags.add(tagsItem);
- return this;
- }
-
- /**
- * A list of tag names to apply to the configuration.
- *
- * @return tags
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_TAGS)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public List getTags() {
- return tags;
- }
-
- public void setTags(List tags) {
- this.tags = tags;
- }
-
- /**
- * A container for additional, undeclared properties. This is a holder for any undeclared
- * properties as specified with the 'additionalProperties' keyword in the OAS document.
- */
- private Map additionalProperties;
-
- /**
- * Set the additional (undeclared) property with the specified name and value. If the property
- * does not already exist, create it otherwise replace it.
- *
- * @param key The arbitrary key to set
- * @param value The associated value
- * @return MetricBulkTagConfigStatusAttributes
- */
- @JsonAnySetter
- public MetricBulkTagConfigStatusAttributes putAdditionalProperty(String key, Object value) {
- if (this.additionalProperties == null) {
- this.additionalProperties = new HashMap();
- }
- this.additionalProperties.put(key, value);
- return this;
- }
-
- /**
- * Return the additional (undeclared) property.
- *
- * @return The additional properties
- */
- @JsonAnyGetter
- public Map getAdditionalProperties() {
- return additionalProperties;
- }
-
- /**
- * Return the additional (undeclared) property with the specified name.
- *
- * @param key The arbitrary key to get
- * @return The specific additional property for the given key
- */
- public Object getAdditionalProperty(String key) {
- if (this.additionalProperties == null) {
- return null;
- }
- return this.additionalProperties.get(key);
- }
-
- /** Return true if this MetricBulkTagConfigStatusAttributes object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- MetricBulkTagConfigStatusAttributes metricBulkTagConfigStatusAttributes =
- (MetricBulkTagConfigStatusAttributes) o;
- return Objects.equals(this.emails, metricBulkTagConfigStatusAttributes.emails)
- && Objects.equals(this.excludeTagsMode, metricBulkTagConfigStatusAttributes.excludeTagsMode)
- && Objects.equals(this.status, metricBulkTagConfigStatusAttributes.status)
- && Objects.equals(this.tags, metricBulkTagConfigStatusAttributes.tags)
- && Objects.equals(
- this.additionalProperties, metricBulkTagConfigStatusAttributes.additionalProperties);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(emails, excludeTagsMode, status, tags, additionalProperties);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class MetricBulkTagConfigStatusAttributes {\n");
- sb.append(" emails: ").append(toIndentedString(emails)).append("\n");
- sb.append(" excludeTagsMode: ").append(toIndentedString(excludeTagsMode)).append("\n");
- sb.append(" status: ").append(toIndentedString(status)).append("\n");
- sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
- sb.append(" additionalProperties: ")
- .append(toIndentedString(additionalProperties))
- .append("\n");
- sb.append('}');
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-}
diff --git a/src/test/resources/com/datadog/api/client/v2/api/metrics.feature b/src/test/resources/com/datadog/api/client/v2/api/metrics.feature
index 765d383d9d5..c8810c750a0 100644
--- a/src/test/resources/com/datadog/api/client/v2/api/metrics.feature
+++ b/src/test/resources/com/datadog/api/client/v2/api/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/src/test/resources/com/datadog/api/client/v2/api/undo.json b/src/test/resources/com/datadog/api/client/v2/api/undo.json
index f7868767918..61ce613fba6 100644
--- a/src/test/resources/com/datadog/api/client/v2/api/undo.json
+++ b/src/test/resources/com/datadog/api/client/v2/api/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": {
diff --git a/src/test/resources/generated-test/test-runner-data/manifest.json b/src/test/resources/generated-test/test-runner-data/manifest.json
index 8700639fa96..03e1eeeefc3 100644
--- a/src/test/resources/generated-test/test-runner-data/manifest.json
+++ b/src/test/resources/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": "../../com/datadog/api/client/v2/api/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": "../../com/datadog/api/client/v2/api/metrics.feature",
diff --git a/src/test/resources/generated-test/test-runner-data/v2/metrics/configure-tags-for-multiple-metrics-returns-accepted-response.json b/src/test/resources/generated-test/test-runner-data/v2/metrics/configure-tags-for-multiple-metrics-returns-accepted-response.json
deleted file mode 100644
index b35d60b6a5b..00000000000
--- a/src/test/resources/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/src/test/resources/generated-test/test-server-data/v2/metrics.json b/src/test/resources/generated-test/test-server-data/v2/metrics.json
index 2b790b36821..173fcac09c4 100644
--- a/src/test/resources/generated-test/test-server-data/v2/metrics.json
+++ b/src/test/resources/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",