egulu CLI reference / egulu alert-rules

egulu alert-rules create

POST /v1/projects/{project}/locations/{location}/alertRules

egulu alert-rules create <NAME> [options]

API operation

AlertRules_create: POST /v1/projects/{project}/locations/{location}/alertRules (observability module)

Arguments

NameRequiredDescription
NAMEyesthe alertRuleId

Options

OptionTakesRequiredDescription
--cooldown-secondsvaluenocooldownSeconds
--display-namevaluenodisplayName
--for-duration-secondsvaluenoforDurationSeconds
--locationvalueyeslocation
--metricvaluenometric
--notification-channelsvaluenonotificationChannels: comma-separated, or @file with one item a line
--projectvalueyesproject
--validate-onlyvaluenovalidateOnly

The global options apply too.