Skip to main content

get

get alerts

🚨 Retrieve an alert by its ID.

Usage​

csph alerts get [flags]

Aliases​

alerts get, alerts show, alert get, alert show

Options​

Command Specific​

--account <string>
account ID

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 session to get an alert
> csph alert get

# get an alert by its ID
> csph alert get <alert-id>

# get an alert by its ID and account ID, output as JSON
> csph alert get <alert-id> --account <account-id> --output json

See also​