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#

CommandDescriptionType
tdx alerts listList spend alerts the gateway lets this credential see.Read
tdx alerts unread-countCount unread spend alerts.Read
tdx alerts mark-readMark spend alerts read.Write
tdx alerts settingsRead alert settings (dashboard only).Dashboard only
tdx alerts deliveriesRead 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.

Shell
# GET /control/v1/alerts
tdx alerts list [flags]

Optional flags

FlagTypeDefaultDescription
--filterone of all, unreadAll or unread; omitted uses the gateway default.
--limitintegerPage size; omitted uses the gateway default; the gateway enforces its range.
--workspace-idstringOnly alerts raised in this public workspace id.
--cursorstringOpaque nextCursor from a previous page with the same --filter and --workspace-id; pass it as --cursor=<nextCursor>.

Output fields (inside data)

FieldTypeDescription
alertspublic-alert[]Id, times, read state, thresholds, percent, spent, period, budget summary, affected scope and dashboard links.
nextCursorstring|nullGateway 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.

Shell
# GET /control/v1/alerts/unread-count
tdx alerts unread-count [flags]

Optional flags

FlagTypeDefaultDescription
--workspace-idstringOnly alerts raised in this public workspace id.

Output fields (inside data)

FieldTypeDescription
countintegerUnread alerts this credential may see.
cappedbooleanWhether 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.

Shell
# POST /control/v1/alerts/read
tdx alerts mark-read [flags]

Optional flags

FlagTypeDefaultDescription
--idstringPublic alert id; repeat for several; never a credential. Repeatable.
--allbooleanfalseMark every unread alert the gateway lets this credential see.
--workspace-idstringWith --all: only alerts raised in this public workspace id.
--cursorstringWith --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-id requires --all
  • --cursor requires --all

Output fields (inside data)

FieldTypeDescription
markedintegerAlerts newly marked read.
morebooleanWith --all: unread alerts may remain past this call.
nextCursorstring|nullWith --all: cursor for the next call; null when none.
previewwrite-preview|nullRequested 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.

Shell
# 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.

Shell
# GET /control/v1/alerts/:alertId/deliveries
tdx alerts deliveries --id <string> [flags]

Required flags

FlagTypeDefaultDescription
--idstringPublic resource id; never a credential.