Metric
List metric definitions
Fetch all metric definitions available in the project, including both system-generated and custom metrics.
GET
JavaScript
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
All metric definitions available in the project
data
(LLM judge metric · object | Provider metric · object | Threshold metric · object | Formula metric · object | Pattern metric · object)[]
required
Metrics response payload
Metric definition data. The variant is selected by calculationType.
- LLM judge metric
- Provider metric
- Threshold metric
- Formula metric
- Pattern metric
Previous
Create custom metric definitionCreate a new metric definition. The `calculationType` field selects the variant: LLM_JUDGE (LLM-evaluated), FORMULA (computed from a math expression over other metrics), or PATTERN (detects a trigger→outcome pattern within a window). To create a threshold on top of an existing metric, use `POST /metric/definitions/{idOrSlug}/thresholds` instead.
Next
JavaScript