For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

Retrieve custom metrics data points

get

Lists all custom metrics data points for an entity

Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Path parameters
customMetricKeystringRequired

Key for the custom metric filter

tagOrIdstringRequired

Entity identifier - can be a tag or CID

Query parameters
startDatestring · date-timeOptional

Start date for the filter (inclusive). Default: 6 months

endDatestring · date-timeOptional

End date for the filter (inclusive)

pageSizeinteger · int32Required

Number of results to return per page, between 1 and 1000. Default 250.

Default: 250
pageinteger · int32Required

Page number to return, 0-indexed. Default 0.

Default: 0
Responses
200

Successfully retrieved custom metrics data points

application/json
pageinteger · int32Required

Current page number, 0-indexed

totalinteger · int32Required

Total number of results

totalPagesinteger · int32Required

Total number of pages

get/api/v1/eng-intel/custom-metrics/{customMetricKey}/entity/{tagOrId}
GET /api/v1/eng-intel/custom-metrics/{customMetricKey}/entity/{tagOrId}?pageSize=250&page=0 HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": [
    {
      "timestamp": "2026-01-01T00:00:00.000Z",
      "value": 1
    }
  ],
  "page": 1,
  "total": 1,
  "totalPages": 1
}

Add custom metrics data point

post

Adds a single custom metric data point for entity.

Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Path parameters
customMetricKeystringRequired

Key for the custom metric filter

tagOrIdstringRequired

Entity identifier - can be a tag or CID

Body

Data point to be added

timestampstring · date-timeOptional

Timestamp for the data point in ISO 8601 format. Accepts timezone offsets (e.g., '2024-08-14T11:00:00Z' or '2024-08-14T11:00:00+00:00'). Note: It can't be earlier than 2 years

valuenumber · doubleRequired

Value for the data point

Responses
200

Successfully added data point

No content

post/api/v1/eng-intel/custom-metrics/{customMetricKey}/entity/{tagOrId}
POST /api/v1/eng-intel/custom-metrics/{customMetricKey}/entity/{tagOrId} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 50

{
  "timestamp": "2026-01-01T00:00:00.000Z",
  "value": 1
}

No content

Add custom metrics data points in bulk

post

Adds multiple custom metric data points for entity.

Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Path parameters
customMetricKeystringRequired

Key for the custom metric filter

tagOrIdstringRequired

Entity identifier - can be a tag or CID

Body

Data points to be added

Responses
200

Successfully added data points

No content

post/api/v1/eng-intel/custom-metrics/{customMetricKey}/entity/{tagOrId}/bulk
POST /api/v1/eng-intel/custom-metrics/{customMetricKey}/entity/{tagOrId}/bulk HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 63

{
  "series": [
    {
      "timestamp": "2026-01-01T00:00:00.000Z",
      "value": 1
    }
  ]
}

No content

Delete custom metrics data points

delete

Deletes custom metric data points for entity.

Authorizations
AuthorizationstringRequired

All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.

Path parameters
customMetricKeystringRequired

Key for the custom metric filter

tagOrIdstringRequired

Entity identifier - can be a tag or CID

Query parameters
startDatestring · date-timeRequired

Start date for the deletion (inclusive)

endDatestring · date-timeRequired

End date for the deletion (inclusive)

Responses
204

Successfully deleted data points

No content

delete/api/v1/eng-intel/custom-metrics/{customMetricKey}/entity/{tagOrId}
DELETE /api/v1/eng-intel/custom-metrics/{customMetricKey}/entity/{tagOrId}?startDate=2026-01-01T00%3A00%3A00.000Z&endDate=2026-01-01T00%3A00%3A00.000Z HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Last updated

Was this helpful?