doctl monitoring alert create

Go to Navigation

Usage

doctl monitoring alert create [flags]

Description

Use this command to create a new alert policy.

Flags

OptionDescription
--compareThe comparator of the alert policy. Either GreaterThan or LessThan
--descriptionA description of the alert policy.
--emailsEmails to send alerts to.
--enabledWhether the alert policy is enabled.
Default: true
--entitiesEntities to apply the alert against. (e.g. a droplet ID for a droplet alert policy)
--help, -hHelp for this command
--slack-channelsSlack channels to send alerts to.
--slack-urlsSlack URLs to send alerts to.
--tagsTags to apply the alert against.
--typeThe type of alert policy.
--valueThe value of the alert policy to compare against.
Default: 0
--windowThe window to apply the alert policy conditions against.
Default: 5m
CommandDescription
doctl monitoring alertDisplay commands for managing alert policies

Global Flags

OptionDescription
--access-token, -tAPI V2 access token
--api-url, -uOverride default API endpoint
--config, -cSpecify a custom config file
Default:
  • macOS: ${HOME}/Library/Application Support/doctl/config.yaml
  • Linux: ${XDG_CONFIG_HOME}/doctl/config.yaml
  • Windows: %APPDATA%\doctl\config.yaml
--contextSpecify a custom authentication context name
--output, -oDesired output format [text|json]
Default: text
--traceShow a log of network activity while performing a command
Default: false
--verbose, -vEnable verbose output
Default: false