Custom Metrics
Use these operations to interact with custom metrics in Cortex Eng Intelligence.
Required permissions
Your API key must have the Configure Eng Intelligence custom metrics
permission.
Operations
Lists all custom metrics data points for an entity
Key for the custom metric filter
The tag (x-cortex-tag
) or unique, auto-generated identifier for the entity.
Start date for the filter (inclusive). Default: 6 months
End date for the filter (inclusive)
Number of results to return per page, between 1 and 1000. Default 250.
250
Page number to return, 0-indexed. Default 0.
0
GET /api/v1/eng-intel/custom-metrics/{customMetricKey}/entity/{tagOrId} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
{
"data": [
{
"timestamp": "2025-06-28T19:22:11.337Z",
"value": 1
}
],
"page": 1,
"total": 1,
"totalPages": 1
}
Adds a single custom metric data point for entity.
Key for the custom metric filter
The tag (x-cortex-tag
) or unique, auto-generated identifier for the entity.
Data point to be added
Timestamp for the data point. Note: It can't be earlier than 6 months
Value for the data point
POST /api/v1/eng-intel/custom-metrics/{customMetricKey}/entity/{tagOrId} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 50
{
"timestamp": "2025-06-28T19:22:11.337Z",
"value": 1
}
No content
Adds multiple custom metric data points for entity.
Key for the custom metric filter
The tag (x-cortex-tag
) or unique, auto-generated identifier for the entity.
Data points to be added
POST /api/v1/eng-intel/custom-metrics/{customMetricKey}/entity/{tagOrId}/bulk HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 63
{
"series": [
{
"timestamp": "2025-06-28T19:22:11.337Z",
"value": 1
}
]
}
No content
Deletes custom metric data points for entity.
Key for the custom metric filter
The tag (x-cortex-tag
) or unique, auto-generated identifier for the entity.
Start date for the deletion (inclusive)
End date for the deletion (inclusive)
DELETE /api/v1/eng-intel/custom-metrics/{customMetricKey}/entity/{tagOrId} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
No content
Last updated
Was this helpful?