Metric
List Metric
Endpoint to list all Metric items
post/metrics/get-list
Request
- Base URLhttps://oneuptime.com/api
- AuthAPI key in header APIKey
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"query": {
"time": {
"_type": "GreaterThan",
"value": "2026-01-01T00:00:00.000Z"
}
},
"select": {
"projectId": true,
"primaryEntityId": true,
"primaryEntityType": true
},
"sort": {
"time": "DESC"
},
"groupBy": {
"projectId": true
}
}Response
Successful response
Example response
{
"data": [
{
"projectId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"primaryEntityId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"primaryEntityType": "Example text value",
"name": "Example text value",
"aggregationTemporality": "Example text value",
"metricPointType": "Example text value",
"time": "example_value",
"startTime": "example_value",
"timeUnixNano": "example_value",
"startTimeUnixNano": "example_value",
"attributes": "example_value",
"attributeKeys": [
"item1",
"item2",
"item3"
],
"entityKeys": [
"item1",
"item2",
"item3"
],
"serviceEntityKey": "Example text value",
"hostEntityKey": "Example text value",
"k8sPodEntityKey": "Example text value",
"k8sNodeEntityKey": "Example text value",
"k8sClusterEntityKey": "Example text value",
"containerEntityKey": "Example text value",
"isMonotonic": true,
"count": "example_value",
"sum": 123.45,
"value": 123.45,
"min": 123.45,
"max": 123.45,
"bucketCounts": "example_value",
"explicitBounds": "example_value",
"scale": 42,
"zeroCount": "example_value",
"positiveOffset": 42,
"positiveBucketCounts": "example_value",
"negativeOffset": 42,
"negativeBucketCounts": "example_value",
"summaryQuantiles": "example_value",
"summaryValues": "example_value",
"traceId": "Example text value",
"spanId": "Example text value"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.