definition
Query available metrics for an API type
Returns a list of available metrics for a specific API type, including their supported measures, facets, and filters.
get/environments/{envId}/analytics/definition/apis/{apiName}/metrics
Path parameters
envIdstring required
The unique ID of your environment
apiName'HTTP_PROXY' | 'MESSAGE' | 'LLM' | 'MCP' | 'A2A' | 'NATIVE' | 'EDGE' required
Available API names for analytics queries
Example:HTTP_PROXY
The API type identifier for which to retrieve metrics
Response
The response contains a list of available metrics for the specified API type, with their configurations including measures, facets, and filters.
Example response
{
"data": [
{
"name": "HTTP_REQUESTS",
"label": "HTTP Requests",
"apis": [
"HTTP_PROXY",
"LLM"
],
"measures": [
"COUNT"
],
"facets": [
"API",
"APPLICATION",
"GATEWAY"
],
"filters": [
"API",
"APPLICATION",
"HTTP_STATUS"
]
},
{
"name": "HTTP_GATEWAY_RESPONSE_TIME",
"label": "Gateway response time",
"apis": [
"HTTP_PROXY",
"LLM"
],
"unit": "MILLISECONDS",
"measures": [
"AVG",
"MIN",
"MAX",
"P50",
"P90",
"P95",
"P99"
],
"facets": [
"API",
"APPLICATION",
"GATEWAY"
],
"filters": [
"API",
"APPLICATION",
"HTTP_STATUS"
]
}
]
}