Skip to main content

list

list alerts

🚨 View your alerts.

Usage​

csph alerts list [flags]

Aliases​

alerts list, alerts ls, alert list, alert ls

Options​

Command Specific​

--active (default true)

active [true|false]
--alert-type <string>
alert type: [cpu|memory|disk]
--environment <string>
environment ID

--order <string> (default "desc")

order to sort by: [asc|desc]
--project <string>
project ID (required)
--search <string>
search term
--severity <string>
severity: [low|medium|high]
--sort <string>
field to sort by

Formatting​

For more information about formatting options, see Formatting.

--fields <strings>
output JSON with the specified fields
--jq <string>
filter JSON output with jq expression

-o, --output <string>

output format: [table|plain|csv|json|yaml]
--template <string>
format JSON using a Go template

Available Fields​

active, alert_type, created_at, effective_evaluation_period, email_delivery, environment_id, evaluation_period, id, object, project_alert_enabled, project_id, severity_level, status, threshold

Inherited​

--config <string>
config file (default is $HOME/.config/computesphere/configuration.yaml)
--debug
enable debug logging

-h, --help

show this help message

-i, --interactive

run interactively (prompts, pickers, table browser)
--log-level <string>
log level: [trace|debug|info|warn|error|fatal|panic|disabled||api]
--no-color
disable color output
--no-input
disable interactive mode

Examples​

# start an interactive prompt to list alerts
> csph alert list

# list alerts for a specific project
> csph alert list --project <project-id>

# list alerts for a specific project and environment
> csph alert list --project <project-id> --environment <environment-id>

# list alerts for a specific project and environment, and filter by alert type
> csph alert list --project <project-id> --environment <environment-id> --alert-type cpu

# list alerts for a specific project and filter by severity
> csph alert list --project <project-id> --severity high

# list inactive alerts
> csph alert ls --project <project-id> --active=false

See also​