CLI reference

norcube monitor monitors alerts set

Set where and when a monitor alerts

Not verified yet

Replaces the monitor's alerting. --defaults returns it to the organization's defaults. Otherwise give its routes, each a channel (id or exact name) and the events it gets (down, warning, expiring, expired, recovered), or --mute for no alerts; settings you leave out keep their current values. Channels themselves are managed with "monitor channels".

Usage

norcube monitor monitors alerts set <monitor> [flags]

Examples

norcube monitor monitors alerts set "Shop" --route "On-call webhook=down,recovered" --route ops-email=down
norcube monitor monitors alerts set "Shop" --confirm-failures 3 --reminder 30m
norcube monitor monitors alerts set "Shop" --mute
norcube monitor monitors alerts set "Shop" --defaults

Flags

FlagDefaultDescription
--confirm-failuresFailed checks in a row before an incident opens, 1 to 10
--confirm-successesGood checks in a row before it resolves, 1 to 10
--defaultsFollow the organization's default channels again
--from-fileRead the API's alert settings body as JSON from this file (- for standard input)
--muteSend no alerts for this monitor
--reminder0sRemind about an unacknowledged critical incident this often, e.g. 1h (0 for no reminders)
--routeA route "<channel>=<event>,<event>" (channel id or exact name; events down, warning, expiring, expired, recovered); repeatable, replaces the routes

Every command also takes the global flags: --profile, --org, -o, --query, --debug and more.

See also

On this page