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
| Name | Required | Description |
|---|---|---|
NAME | yes | the alertRuleId |
Options
| Option | Takes | Required | Description |
|---|---|---|---|
--cooldown-seconds | value | no | cooldownSeconds |
--display-name | value | no | displayName |
--for-duration-seconds | value | no | forDurationSeconds |
--location | value | yes | location |
--metric | value | no | metric |
--notification-channels | value | no | notificationChannels: comma-separated, or @file with one item a line |
--project | value | yes | project |
--validate-only | value | no | validateOnly |
The global options apply too.