55
66import collections
77from typing import Any , Dict , Union
8+ import warnings
89
910from datadog_api_client .api_client import ApiClient , Endpoint as _Endpoint
1011from datadog_api_client .configuration import Configuration
@@ -822,7 +823,9 @@ def create_bulk_tags_metrics_configuration(
822823 self ,
823824 body : MetricBulkTagConfigCreateRequest ,
824825 ) -> MetricBulkTagConfigResponse :
825- """Configure tags for multiple metrics.
826+ """Configure tags for multiple metrics. **Deprecated**.
827+
828+ **Note** : This endpoint is deprecated. Use the ``/api/v2/metrics/{metric_name}/tags`` endpoint instead.
826829
827830 Create and define a list of queryable tag keys for a set of existing count, gauge, rate, and distribution metrics.
828831 Metrics are selected by passing a metric name prefix. Use the Delete method of this API path to remove tag configurations.
@@ -838,6 +841,7 @@ def create_bulk_tags_metrics_configuration(
838841 kwargs : Dict [str , Any ] = {}
839842 kwargs ["body" ] = body
840843
844+ warnings .warn ("create_bulk_tags_metrics_configuration is deprecated" , DeprecationWarning , stacklevel = 2 )
841845 return self ._create_bulk_tags_metrics_configuration_endpoint .call_with_http_info (** kwargs )
842846
843847 def create_tag_configuration (
@@ -909,7 +913,9 @@ def delete_bulk_tags_metrics_configuration(
909913 self ,
910914 body : MetricBulkTagConfigDeleteRequest ,
911915 ) -> MetricBulkTagConfigResponse :
912- """Delete tags for multiple metrics.
916+ """Delete tags for multiple metrics. **Deprecated**.
917+
918+ **Note** : This endpoint is deprecated. Use the ``/api/v2/metrics/{metric_name}/tags`` endpoint instead.
913919
914920 Delete all custom lists of queryable tag keys for a set of existing count, gauge, rate, and distribution metrics.
915921 Metrics are selected by passing a metric name prefix.
@@ -922,6 +928,7 @@ def delete_bulk_tags_metrics_configuration(
922928 kwargs : Dict [str , Any ] = {}
923929 kwargs ["body" ] = body
924930
931+ warnings .warn ("delete_bulk_tags_metrics_configuration is deprecated" , DeprecationWarning , stacklevel = 2 )
925932 return self ._delete_bulk_tags_metrics_configuration_endpoint .call_with_http_info (** kwargs )
926933
927934 def delete_tag_configuration (
0 commit comments