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.string
required
Account identifier
string
required
Policy name
string
required
Type of alert (e.g.,
universal_ssl_event_type, dos_attack_l7, health_check_status_notification)boolean
required
Whether the policy is active
object
required
Notification mechanisms (email, webhook, PagerDuty, etc.)
object
Conditions that trigger the alert
string
Policy identifier
string
Policy name
string
When the policy was created
string
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.string
required
Account identifier
string
Filter alerts since this timestamp
string
Filter alerts before this timestamp
string
Alert history identifier
string
Alert name
string
Type of alert
string
When the alert was triggered
Silences
Manage alert silences (temporarily disable alerts).Create a silence
Create a new alert silence.string
required
Account identifier
string
required
Silence description
string
required
Start time (ISO 8601 format)
string
required
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
string
Alert type identifier
string
Human-readable alert name
string
Alert description
Types
Mechanism
Notification delivery mechanism.array
Email addresses to notify
array
Webhook URLs to call
array
PagerDuty integration keys
PolicyFilter
Conditions for triggering alerts.string[]
Zone IDs to monitor
string
Health check identifier (for health check alerts)