Eng Intel: 2-Metrics

Execute point-in-time engineering metrics queries

Changed on

Query current metric values with optional period comparisons and flexible grouping. Supports batch queries for multiple metrics efficiently.

post/api/v1/eng-intel/metrics/point-in-time

Request

  • Base URL
    https://api.getcortexapp.com
  • URL
    https://api.getcortexapp.com/api/v1/eng-intel/metrics/point-in-time
  • Auth
    HTTP bearer

Request body

daysOfWeekinteger[]

Optional day-of-week restriction (ISO: Monday=1..Sunday=7). When set, the query filters out rows whose time-attribute does not fall on one of these weekdays. Use {1,2,3,4,5} to exclude weekends. Empty set matches nothing.

endTimestring date-time required

End time for the query period

groupBystring[] required

Fields to group results by

limitinteger required

Maximum number of results to return

nextPagestring

Pagination token for next page of results

startTimestring date-time required

Start time for the query period

timeAttributestring

Deprecated: use timeAttributes instead. Single time attribute override as a fully-qualified path (e.g. 'pull_requests.date_closed').

timeAttributesstring[]

Time attributes to use for queries. Each entry is a fully-qualified attribute path (e.g. 'pull_requests.date_closed'). The source is inferred from the prefix. For single-source queries, provide one entry. For multi-source, provide one per source to override.

Response

Successfully executed metrics query

Example response

{
  "rows": [
    [
      "platform-team",
      12.5,
      30
    ],
    [
      "payments-team",
      8,
      17
    ]
  ]
}

Changes