@@ -661,6 +661,12 @@ export class MetricsApiRequestFactory extends BaseAPIRequestFactory {
661661
662662 public async listTagsByMetricName (
663663 metricName : string ,
664+ windowSeconds ?: number ,
665+ filterTags ?: string ,
666+ filterMatch ?: string ,
667+ filterIncludeTagValues ?: boolean ,
668+ filterAllowPartial ?: boolean ,
669+ pageLimit ?: number ,
664670 _options ?: Configuration ,
665671 ) : Promise < RequestContext > {
666672 const _config = _options || this . configuration ;
@@ -694,6 +700,50 @@ export class MetricsApiRequestFactory extends BaseAPIRequestFactory {
694700 requestContext . setHeaderParam ( "User-Agent" , this . userAgent ) ;
695701 }
696702
703+ // Query Params
704+ if ( windowSeconds !== undefined ) {
705+ requestContext . setQueryParam (
706+ "window[seconds]" ,
707+ serialize ( windowSeconds , TypingInfo , "number" , "int64" ) ,
708+ "" ,
709+ ) ;
710+ }
711+ if ( filterTags !== undefined ) {
712+ requestContext . setQueryParam (
713+ "filter[tags]" ,
714+ serialize ( filterTags , TypingInfo , "string" , "" ) ,
715+ "" ,
716+ ) ;
717+ }
718+ if ( filterMatch !== undefined ) {
719+ requestContext . setQueryParam (
720+ "filter[match]" ,
721+ serialize ( filterMatch , TypingInfo , "string" , "" ) ,
722+ "" ,
723+ ) ;
724+ }
725+ if ( filterIncludeTagValues !== undefined ) {
726+ requestContext . setQueryParam (
727+ "filter[include_tag_values]" ,
728+ serialize ( filterIncludeTagValues , TypingInfo , "boolean" , "" ) ,
729+ "" ,
730+ ) ;
731+ }
732+ if ( filterAllowPartial !== undefined ) {
733+ requestContext . setQueryParam (
734+ "filter[allow_partial]" ,
735+ serialize ( filterAllowPartial , TypingInfo , "boolean" , "" ) ,
736+ "" ,
737+ ) ;
738+ }
739+ if ( pageLimit !== undefined ) {
740+ requestContext . setQueryParam (
741+ "page[limit]" ,
742+ serialize ( pageLimit , TypingInfo , "number" , "int32" ) ,
743+ "" ,
744+ ) ;
745+ }
746+
697747 // Apply auth methods
698748 applySecurityAuthentication ( _config , requestContext , [
699749 "apiKeyAuth" ,
@@ -2103,6 +2153,41 @@ export interface MetricsApiListTagsByMetricNameRequest {
21032153 * @type string
21042154 */
21052155 metricName : string ;
2156+ /**
2157+ * The number of seconds of look back (from now) to query for tag data.
2158+ * Default value is 14400 (4 hours), minimum value is 14400 (4 hours).
2159+ * @type number
2160+ */
2161+ windowSeconds ?: number ;
2162+ /**
2163+ * Filter results to tags from data points that have the specified tags.
2164+ * For example, `filter[tags]=env:staging,host:123` returns tags only from data points with both `env:staging` and `host:123`.
2165+ * @type string
2166+ */
2167+ filterTags ?: string ;
2168+ /**
2169+ * Filter returned tags to those matching a substring.
2170+ * For example, `filter[match]=env` returns tags like `env:prod`, `environment:staging`, etc.
2171+ * @type string
2172+ */
2173+ filterMatch ?: string ;
2174+ /**
2175+ * Whether to include tag values in the response.
2176+ * Defaults to true.
2177+ * @type boolean
2178+ */
2179+ filterIncludeTagValues ?: boolean ;
2180+ /**
2181+ * Whether to allow partial results.
2182+ * Defaults to false.
2183+ * @type boolean
2184+ */
2185+ filterAllowPartial ?: boolean ;
2186+ /**
2187+ * Maximum number of results to return.
2188+ * @type number
2189+ */
2190+ pageLimit ?: number ;
21062191}
21072192
21082193export interface MetricsApiListVolumesByMetricNameRequest {
@@ -2488,7 +2573,8 @@ export class MetricsApi {
24882573 }
24892574
24902575 /**
2491- * View indexed tag key-value pairs for a given metric name over the previous hour.
2576+ * View indexed and ingested tags for a given metric name.
2577+ * Results are filtered by the `window[seconds]` parameter, which defaults to 14400 (4 hours).
24922578 * @param param The request object
24932579 */
24942580 public listTagsByMetricName (
@@ -2497,6 +2583,12 @@ export class MetricsApi {
24972583 ) : Promise < MetricAllTagsResponse > {
24982584 const requestContextPromise = this . requestFactory . listTagsByMetricName (
24992585 param . metricName ,
2586+ param . windowSeconds ,
2587+ param . filterTags ,
2588+ param . filterMatch ,
2589+ param . filterIncludeTagValues ,
2590+ param . filterAllowPartial ,
2591+ param . pageLimit ,
25002592 options ,
25012593 ) ;
25022594 return requestContextPromise . then ( ( requestContext ) => {
0 commit comments