API Analytics
Get API metric for a request
Get API metric for a request
Get API metric for a request.
get/environments/{envId}/apis/{apiId}/analytics/{requestId}
Response
API metric for a particular request
Example response
{
"timestamp": "2023-05-18 12:40:46.184000+00:00",
"apiId": "00f8c9e7-78fc-4907-b8c9-e778fc790750",
"requestId": "1719d8d1-8d01-48f6-99d8-d18d0178f6d4",
"transactionId": "00f8c9e7-78fc-4907-b8c9-e778fc790750",
"host": "mycompany.example.com",
"plan": {
"id": "00f8c9e7-78fc-4907-b8c9-e778fc790750",
"name": "My Api plan",
"description": "I can use a hundred characters to describe this plan.",
"apiId": "6c530064-0b2c-4004-9300-640b2ce0047b",
"apiProductId": "6c530064-0b2c-4004-9300-640b2ce0047b",
"security": {
"type": "KEY_LESS"
},
"mode": "STANDARD"
},
"application": {
"id": "00f8c9e7-78fc-4907-b8c9-e778fc790750",
"name": "My App",
"description": "I can use a hundred characters to describe this App.",
"domain": "https://my-app.com",
"type": "iOS",
"primaryOwner": {
"id": "00f8c9e7-78fc-4907-b8c9-e778fc790750",
"displayName": "John Doe"
},
"apiKeyMode": "UNSPECIFIED"
},
"gateway": "00f8c9e7-78fc-4907-b8c9-e778fc790750",
"gatewayHostname": "gateway-1.example.com",
"gatewayIp": "192.168.1.100",
"uri": "/my-api",
"status": 200,
"requestContentLength": 42,
"responseContentLength": 42,
"gatewayLatency": 42,
"gatewayResponseTime": 42,
"endpointResponseTime": 42,
"method": "GET",
"endpoint": "https://my-api-example.com",
"message": "The timeout period of 1000ms has been exceeded",
"errorKey": "TIMEOUT_ERROR",
"errorComponentName": "security",
"errorComponentType": "ENDPOINT",
"warnings": [
{
"componentType": "POLICY",
"componentName": "transform-header",
"key": "TRANSFORM_HEADERS_FAILURE"
}
]
}