@@ -23189,6 +23189,61 @@ components:
2318923189 type: string
2319023190 type: array
2319123191 type: object
23192+ MetricTagCardinalitiesData:
23193+ description: A list of tag cardinalities associated with the given metric.
23194+ items:
23195+ $ref: '#/components/schemas/MetricTagCardinality'
23196+ type: array
23197+ MetricTagCardinalitiesMeta:
23198+ description: Response metadata object.
23199+ properties:
23200+ metric_name:
23201+ description: 'The name of metric for which the tag cardinalities are returned.
23202+
23203+ This matches the metric name provided in the request.
23204+
23205+ '
23206+ type: string
23207+ type: object
23208+ MetricTagCardinalitiesResponse:
23209+ description: 'Response object that includes an array of objects representing
23210+ the cardinality details of a metric''s tags.
23211+
23212+ '
23213+ properties:
23214+ data:
23215+ $ref: '#/components/schemas/MetricTagCardinalitiesData'
23216+ meta:
23217+ $ref: '#/components/schemas/MetricTagCardinalitiesMeta'
23218+ readOnly: true
23219+ type: object
23220+ MetricTagCardinality:
23221+ description: Object containing metadata and attributes related to a specific
23222+ tag key associated with the metric.
23223+ example:
23224+ attributes:
23225+ cardinality_delta: 25
23226+ id: http.request.latency
23227+ type: tag_cardinality
23228+ properties:
23229+ attributes:
23230+ $ref: '#/components/schemas/MetricTagCardinalityAttributes'
23231+ id:
23232+ description: The name of the tag key.
23233+ type: string
23234+ type:
23235+ default: tag_cardinality
23236+ description: This describes the endpoint action.
23237+ type: string
23238+ type: object
23239+ MetricTagCardinalityAttributes:
23240+ description: An object containing properties related to the tag key
23241+ properties:
23242+ cardinality_delta:
23243+ description: This describes the recent change in the tag keys cardinality
23244+ format: int64
23245+ type: integer
23246+ type: object
2319223247 MetricTagConfiguration:
2319323248 description: Object for a single metric tag configuration.
2319423249 example:
@@ -53610,6 +53665,50 @@ paths:
5361053665 x-permission:
5361153666 operator: OPEN
5361253667 permissions: []
53668+ /api/v2/metrics/{metric_name}/tag-cardinalities:
53669+ get:
53670+ description: Returns the cardinality details of tags for a specific metric.
53671+ operationId: GetMetricTagCardinalityDetails
53672+ parameters:
53673+ - $ref: '#/components/parameters/MetricName'
53674+ responses:
53675+ '200':
53676+ content:
53677+ application/json:
53678+ schema:
53679+ $ref: '#/components/schemas/MetricTagCardinalitiesResponse'
53680+ description: Success
53681+ '400':
53682+ content:
53683+ application/json:
53684+ schema:
53685+ $ref: '#/components/schemas/APIErrorResponse'
53686+ description: Bad Request
53687+ '403':
53688+ content:
53689+ application/json:
53690+ schema:
53691+ $ref: '#/components/schemas/APIErrorResponse'
53692+ description: Forbidden
53693+ '404':
53694+ content:
53695+ application/json:
53696+ schema:
53697+ $ref: '#/components/schemas/APIErrorResponse'
53698+ description: Not Found
53699+ '429':
53700+ content:
53701+ application/json:
53702+ schema:
53703+ $ref: '#/components/schemas/APIErrorResponse'
53704+ description: Too Many Requests
53705+ summary: Get tag key cardinality details
53706+ tags:
53707+ - Metrics
53708+ x-permission:
53709+ operator: OR
53710+ permissions:
53711+ - metrics_read
5361353712 /api/v2/metrics/{metric_name}/tags:
5361453713 delete:
5361553714 description: 'Deletes a metric''s tag configuration. Can only be used with application
0 commit comments