API reference · Recorder
List alert rules
GET/api/alertsSigned in session
Answer 200
Your rules, and the unit each metric is measured in.
| Field | Type | What it is |
|---|---|---|
| rules | array of AlertRule | |
| rules[] | integer | |
| rules[] | string | |
| rules[] | string | One of "spend", "error_rate", "ttft_p95". |
| rules[] | integer | Micro USD, basis points, or milliseconds, by metric. |
| rules[] | integer | |
| rules[] | integer | How many requests the window needs before the number is believed. |
| rules[] | string or null | |
| rules[] | integer or null | |
| rules[] | boolean | |
| rules[] | string | One of "ok", "firing". |
| rules[] | integer or null | Null when the last check found nothing to measure. |
| rules[] | integer or null | |
| rules[] | integer or null | |
| rules[] | integer | |
| rules[] | integer | |
| units | object |
Errors
- 401OpenAI shaped error.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.