tdx alerts#
Read and mark spend alerts in your inbox.
Bearer reads of the spend-alert inbox: list, unread count and mark read. The routes require budgets.read, and the gateway further filters rows to what this credential may see. Alert settings and delivery histories are session-only and unavailable to this bearer-only CLI; use the dashboard.
Every command also takes the global flags and reads the environment variables that the command reference lists once.
Commands#
| Command | Description | Type |
|---|---|---|
| tdx alerts list | List spend alerts the gateway lets this credential see. | Read |
| tdx alerts unread-count | Count unread spend alerts. | Read |
| tdx alerts mark-read | Mark spend alerts read. | Write |
| tdx alerts settings | Read alert settings (dashboard only). | Dashboard only |
| tdx alerts deliveries | Read an alert's delivery history (dashboard only). | Dashboard only |
tdx alerts list#
List spend alerts the gateway lets this credential see.
Reads
Read one gateway page of the spend alerts the gateway's alert visibility rules let this credential see, newest first. The route requires budgets.read, and the gateway further filters rows. An alert older than thirty days, or whose budget does not notify this reader, reads as read. Only the supplied --filter, --limit, --workspace-id and --cursor are sent. nextCursor, passed back as --cursor=<nextCursor>, continues the same walk; the gateway refuses a cursor issued for another filter, workspace or reader. No automatic paging. Read state is per reader and unchanged by reads. Budget targets and other unvalidated fields are withheld. --dry-run still performs this read. See Alert output and Checked request values.
# GET /control/v1/alerts
tdx alerts list [flags]Optional flags
| Flag | Type | Default | Description |
|---|---|---|---|
--filter | one of all, unread | All or unread; omitted uses the gateway default. | |
--limit | integer | Page size; omitted uses the gateway default; the gateway enforces its range. | |
--workspace-id | string | Only alerts raised in this public workspace id. | |
--cursor | string | Opaque nextCursor from a previous page with the same --filter and --workspace-id; pass it as --cursor=<nextCursor>. |
Output fields (inside data)
| Field | Type | Description |
|---|---|---|
alerts | public-alert[] | Id, times, read state, thresholds, percent, spent, period, budget summary, affected scope and dashboard links. |
nextCursor | string|null | Gateway continuation cursor; null on the final page. |
tdx alerts unread-count#
Count unread spend alerts.
Reads
Read how many alerts the gateway lets this credential see are unread (the route requires budgets.read, and the gateway further filters rows); an alert older than thirty days, or whose budget does not notify this reader, is not counted. capped is true when the count is only a floor. Does not change read state. --dry-run still performs this read. See Alert output and Checked request values.
# GET /control/v1/alerts/unread-count
tdx alerts unread-count [flags]Optional flags
| Flag | Type | Default | Description |
|---|---|---|---|
--workspace-id | string | Only alerts raised in this public workspace id. |
Output fields (inside data)
| Field | Type | Description |
|---|---|---|
count | integer | Unread alerts this credential may see. |
capped | boolean | Whether there may be more than count. |
tdx alerts mark-read#
Mark spend alerts read.
Writes
Mark the named alerts, or with --all every unread alert the gateway lets this credential see, read for this reader only. The route requires budgets.read, and the gateway further filters rows. Alerts the reader cannot see and unknown ids are ignored alike, and an alert older than thirty days, or whose budget does not notify this reader, already reads as read and is not marked; marked counts newly marked alerts. One request per call: when more is true, repeat with --all --cursor=<nextCursor> yourself; nothing is repeated automatically. Dry-run reads no profile or credential, sends no request and creates no files; the gateway has not checked its preview. See Alert output and Checked request values.
# POST /control/v1/alerts/read
tdx alerts mark-read [flags]Optional flags
| Flag | Type | Default | Description |
|---|---|---|---|
--id | string | Public alert id; repeat for several; never a credential. Repeatable. | |
--all | boolean | false | Mark every unread alert the gateway lets this credential see. |
--workspace-id | string | With --all: only alerts raised in this public workspace id. | |
--cursor | string | With --all: nextCursor from a previous mark-read --all reply with the same --workspace-id; pass it as --cursor=<nextCursor>. |
Constraints
- Exactly one of
--id,--all --workspace-idrequires--all--cursorrequires--all
Output fields (inside data)
| Field | Type | Description |
|---|---|---|
marked | integer | Alerts newly marked read. |
more | boolean | With --all: unread alerts may remain past this call. |
nextCursor | string|null | With --all: cursor for the next call; null when none. |
preview | write-preview|null | Requested change, unchecked by the gateway; null after execution. |
tdx alerts settings#
Read alert settings (dashboard only).
Dashboard only. The gateway serves this only to a signed-in dashboard session, so the CLI refuses it with SESSION_REQUIRED.
Unavailable to this bearer-only CLI: GET /control/v1/alert-settings is session-only: the gateway serves it only to an interactive dashboard sign-in holding install-wide settings.manage, spend.read and budgets.read, and most changes also need a recent sign-in (step-up). Use the gateway dashboard. --dry-run also refuses: there is no reachable change to preview. No request is sent and no credential, profile or file is read. Destinations and Slack secrets are never accepted as command input.
# GET /control/v1/alert-settings
tdx alerts settings [flags]tdx alerts deliveries#
Read an alert's delivery history (dashboard only).
Dashboard only. The gateway serves this only to a signed-in dashboard session, so the CLI refuses it with SESSION_REQUIRED.
Unavailable to this bearer-only CLI: GET /control/v1/alerts/:alertId/deliveries is session-only: the gateway serves it only to an interactive dashboard sign-in holding install-wide settings.manage, spend.read and budgets.read, and most changes also need a recent sign-in (step-up). Use the gateway dashboard. --dry-run also refuses: there is no reachable change to preview. No request is sent and no credential, profile or file is read. Destinations and Slack secrets are never accepted as command input.
# GET /control/v1/alerts/:alertId/deliveries
tdx alerts deliveries --id <string> [flags]Required flags
| Flag | Type | Default | Description |
|---|---|---|---|
--id | string | Public resource id; never a credential. |