diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index e694506b53cd..06cfae28edcf 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -143143,7 +143143,10 @@ paths: - 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. @@ -143214,8 +143217,12 @@ paths: operator: OR permissions: - metric_tags_write + x-sunset: "2027-01-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. @@ -143294,6 +143301,7 @@ paths: operator: OR permissions: - metric_tags_write + x-sunset: "2027-01-01" /api/v2/metrics/tag-indexing-rules: get: description: List tag indexing rules for an org, sorted by `rule_order`, with offset/limit pagination. diff --git a/lib/datadog_api_client/v2/api/metrics_api.rb b/lib/datadog_api_client/v2/api/metrics_api.rb index 9ba4035fcf97..7195d0e3ee11 100644 --- a/lib/datadog_api_client/v2/api/metrics_api.rb +++ b/lib/datadog_api_client/v2/api/metrics_api.rb @@ -33,6 +33,8 @@ def create_bulk_tags_metrics_configuration(body, opts = {}) # Configure tags for multiple metrics. # + # **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. @@ -41,10 +43,13 @@ def create_bulk_tags_metrics_configuration(body, opts = {}) # 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. # + # @deprecated This API is deprecated. + # # @param body [MetricBulkTagConfigCreateRequest] # @param opts [Hash] the optional parameters # @return [Array<(MetricBulkTagConfigResponse, Integer, Hash)>] MetricBulkTagConfigResponse data, response status code and response headers def create_bulk_tags_metrics_configuration_with_http_info(body, opts = {}) + warn "[DEPRECATION] `CreateBulkTagsMetricsConfiguration` is deprecated." if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MetricsAPI.create_bulk_tags_metrics_configuration ...' @@ -324,15 +329,20 @@ def delete_bulk_tags_metrics_configuration(body, opts = {}) # Delete tags for multiple metrics. # + # **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. # + # @deprecated This API is deprecated. + # # @param body [MetricBulkTagConfigDeleteRequest] # @param opts [Hash] the optional parameters # @return [Array<(MetricBulkTagConfigResponse, Integer, Hash)>] MetricBulkTagConfigResponse data, response status code and response headers def delete_bulk_tags_metrics_configuration_with_http_info(body, opts = {}) + warn "[DEPRECATION] `DeleteBulkTagsMetricsConfiguration` is deprecated." if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MetricsAPI.delete_bulk_tags_metrics_configuration ...'