List analytics metrics
GET
/analytics/metrics
The analytics metric catalog: every metric with its unit, kind, granularities, the dimensions it can be grouped or filtered by, and the dimensions it can be broken down by. Also lists the API-call categories.
Session-only (browser session cookie): API tokens receive 403.
Response Body
categoriesobject[]
idstring
Example:
unified_apilabelstring
dimensionsobject[]
idstring
labelstring
metricsobject[]
breakdownsstring[]
descriptionstring
dimensionsstring[]
granularitiesstring[]
Possible values:
dayhour
idstring
Example:
api_callskindstring
Possible values:
sumratiolatency
labelstring
unitstring
Possible values:
countratioms
Errors
| Status | Description |
|---|---|
400 | A query parameter the route does not take |
403 | Forbidden if the caller uses an integrated-account or tenant token |
curl -X GET 'https://api.truto.one/analytics/metrics' \
-H 'Authorization: Bearer <your_api_token>' \
-H 'Content-Type: application/json'const response = await fetch('https://api.truto.one/analytics/metrics', {
method: 'GET',
headers: {
'Authorization': 'Bearer <your_api_token>',
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);import requests
url = "https://api.truto.one/analytics/metrics"
headers = {
"Authorization": "Bearer <your_api_token>",
"Content-Type": "application/json",
}
params = {
}
response = requests.get(url, headers=headers, params=params)
print(response.json())