@@ -399,6 +399,40 @@ def __init__(self, api_client=None):
399399 "attribute" : "metric_name" ,
400400 "location" : "path" ,
401401 },
402+ "window_seconds" : {
403+ "openapi_types" : (int ,),
404+ "attribute" : "window[seconds]" ,
405+ "location" : "query" ,
406+ },
407+ "filter_tags" : {
408+ "openapi_types" : (str ,),
409+ "attribute" : "filter[tags]" ,
410+ "location" : "query" ,
411+ },
412+ "filter_match" : {
413+ "openapi_types" : (str ,),
414+ "attribute" : "filter[match]" ,
415+ "location" : "query" ,
416+ },
417+ "filter_include_tag_values" : {
418+ "openapi_types" : (bool ,),
419+ "attribute" : "filter[include_tag_values]" ,
420+ "location" : "query" ,
421+ },
422+ "filter_allow_partial" : {
423+ "openapi_types" : (bool ,),
424+ "attribute" : "filter[allow_partial]" ,
425+ "location" : "query" ,
426+ },
427+ "page_limit" : {
428+ "validation" : {
429+ "inclusive_maximum" : 1000000 ,
430+ "inclusive_minimum" : 1 ,
431+ },
432+ "openapi_types" : (int ,),
433+ "attribute" : "page[limit]" ,
434+ "location" : "query" ,
435+ },
402436 },
403437 headers_map = {
404438 "accept" : ["application/json" ],
@@ -903,18 +937,61 @@ def list_tag_configurations_with_pagination(
903937 def list_tags_by_metric_name (
904938 self ,
905939 metric_name : str ,
940+ * ,
941+ window_seconds : Union [int , UnsetType ] = unset ,
942+ filter_tags : Union [str , UnsetType ] = unset ,
943+ filter_match : Union [str , UnsetType ] = unset ,
944+ filter_include_tag_values : Union [bool , UnsetType ] = unset ,
945+ filter_allow_partial : Union [bool , UnsetType ] = unset ,
946+ page_limit : Union [int , UnsetType ] = unset ,
906947 ) -> MetricAllTagsResponse :
907948 """List tags by metric name.
908949
909- View indexed tag key-value pairs for a given metric name over the previous hour.
950+ View indexed and ingested tags for a given metric name.
951+ Results are filtered by the ``window[seconds]`` parameter, which defaults to 14400 (4 hours).
910952
911953 :param metric_name: The name of the metric.
912954 :type metric_name: str
955+ :param window_seconds: The number of seconds of look back (from now) to query for tag data.
956+ Default value is 14400 (4 hours), minimum value is 14400 (4 hours).
957+ :type window_seconds: int, optional
958+ :param filter_tags: Filter results to tags from data points that have the specified tags.
959+ For example, ``filter[tags]=env:staging,host:123`` returns tags only from data points with both ``env:staging`` and ``host:123``.
960+ :type filter_tags: str, optional
961+ :param filter_match: Filter returned tags to those matching a substring.
962+ For example, ``filter[match]=env`` returns tags like ``env:prod`` , ``environment:staging`` , etc.
963+ :type filter_match: str, optional
964+ :param filter_include_tag_values: Whether to include tag values in the response.
965+ Defaults to true.
966+ :type filter_include_tag_values: bool, optional
967+ :param filter_allow_partial: Whether to allow partial results.
968+ Defaults to false.
969+ :type filter_allow_partial: bool, optional
970+ :param page_limit: Maximum number of results to return.
971+ :type page_limit: int, optional
913972 :rtype: MetricAllTagsResponse
914973 """
915974 kwargs : Dict [str , Any ] = {}
916975 kwargs ["metric_name" ] = metric_name
917976
977+ if window_seconds is not unset :
978+ kwargs ["window_seconds" ] = window_seconds
979+
980+ if filter_tags is not unset :
981+ kwargs ["filter_tags" ] = filter_tags
982+
983+ if filter_match is not unset :
984+ kwargs ["filter_match" ] = filter_match
985+
986+ if filter_include_tag_values is not unset :
987+ kwargs ["filter_include_tag_values" ] = filter_include_tag_values
988+
989+ if filter_allow_partial is not unset :
990+ kwargs ["filter_allow_partial" ] = filter_allow_partial
991+
992+ if page_limit is not unset :
993+ kwargs ["page_limit" ] = page_limit
994+
918995 return self ._list_tags_by_metric_name_endpoint .call_with_http_info (** kwargs )
919996
920997 def list_volumes_by_metric_name (
0 commit comments