Skip to main content

update

update alerts

🚨 Update an alert.

Usage​

csph alerts update [flags]

Aliases​

alerts update, alerts edit, alert update, alert edit

Options​

Command Specific​

--account <string>
account ID

--active (default true)

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

--evaluation-period <int> (default 0)

evaluation period (required)
--severity <string>
severity: [low|medium|high] (required)

--threshold <int> (default 0)

threshold (required)

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 update an alert
> csph alert update

# start an interactive prompt to update an alert with the given ID
> csph alert update <alert-id>

# update an alert non-interactively
> csph alert update <alert-id> \
--environment <environment-id> \
--alert-type disk \
--severity high \
--evaluation-period 60 \
--threshold 90

See also​