post
https://api.linode.com//monitor/services//alert-definitions
Beta Create a new alert definition for a specific service type. Akamai refers to these as user alerts. You need read_only access to the OAuth scope for the selected serviceType.
This operation is beta. Call it using the
v4betapath in its URL.
Permissions and scopes
To call this operation, you need permissions, based on the model you're using:
-
OAuth scopes. Your user needs these scopes assigned. Learn more.
- Scopes:
monitor:read_write
- Scopes:
CLI
linode-cli alerts definition-create \
--channel_ids 546 \
--label CPU usage threshold maximum \
--rule_criteria.metric cpu_usage \
--rule_criteria.operator gt \
--rule_criteria.threshold 80 \
--severity 2
--trigger_conditions.evaluation_period_seconds 300 \
--trigger_conditions.polling_interval_seconds 300 \
--trigger_conditions.trigger_occurrences 3 \