Overview
Cloudflare Alerting sends notifications when events occur on your Cloudflare account or zones. Manage alert policies, notification destinations, and view alert history.Initialize the client
Policies
Manage alert policies.Create a policy
Create a new alert policy.Account identifier
Policy name
Type of alert (e.g.,
universal_ssl_event_type, dos_attack_l7, health_check_status_notification)Whether the policy is active
Notification mechanisms (email, webhook, PagerDuty, etc.)
Conditions that trigger the alert
Policy identifier
Policy name
When the policy was created
When the policy was last modified
Update a policy
Update an existing alert policy.List policies
List all alert policies.Get a policy
Get details of a specific alert policy.Delete a policy
Delete an alert policy.Destinations
Manage notification destinations.History
View alert history.List alert history
Retrieve a history of triggered alerts.Account identifier
Filter alerts since this timestamp
Filter alerts before this timestamp
Alert history identifier
Alert name
Type of alert
When the alert was triggered
Silences
Manage alert silences (temporarily disable alerts).Create a silence
Create a new alert silence.Account identifier
Silence description
Start time (ISO 8601 format)
End time (ISO 8601 format)
Update a silence
List silences
Get a silence
Delete a silence
Available alerts
Get information about available alert types.List available alerts
Alert type identifier
Human-readable alert name
Alert description
Types
Mechanism
Notification delivery mechanism.Email addresses to notify
Webhook URLs to call
PagerDuty integration keys
PolicyFilter
Conditions for triggering alerts.Zone IDs to monitor
Health check identifier (for health check alerts)