list-alerts
dci list-alerts [flags]
Returns a list of alerts that your account has access to. Alerts are listed in reverse chronological order by default.
CLI default view
dci list-alerts presents a curated table by default:
- Columns:
name,owner,last alerted (UTC)(fromlastAlerted; blank when the alert never fired), andupdated (UTC). - In interactive tables,
last alerted (UTC)andupdated (UTC)render in your local timezone (titled(local)); machine formats, agent mode, and--utckeep UTC — see Timestamps and timezones. - Rows are sorted by last update, newest first.
--output jsonand explicit-C/--fieldsselections return the raw fields documented below.
Examples
# Your alerts, newest update first.
dci list-alerts
# Alerts owned by one person, most recently fired first.
# Alerts whose name contains a word (ANDs with --filter).
dci list-alerts --name-contains "S3"
# Every page as JSON, for scripts.
dci list-alerts --all --output json
Flags
| Flag | Type | Default | Example | Description |
|---|---|---|---|---|
--sort-by | string | A field by which the results will be sorted. One of: "name", "createTime", "updateTime", "lastAlerted". | ||
--sort-order | string | Specifies the sort direction; accepts asc for ascending (lowest to highest) or desc for descending (highest to lowest). One of: "asc", "desc". | ||
--max-results | integer (int64) | 50 | The maximum number of results to return in a single page. Use the page tokens to iterate through the entire collection. | |
--page-token | string | Page token, returned by a previous call, to request the next page of results | ||
--filter | string | name:test | An expression for filtering the results. The syntax is key:[<value>]. Multiple filters can be connected using a pipe |. See Filters. Available filter keys: owner, name | |
--name-contains | string | monthly spend | Case-insensitive substring match against the resource name. Combined with the "filter" parameter using AND semantics. |
Every command also accepts the CLI-wide flags for output shaping — see Output formats and Table output options.