Skip to main content

Cloudflare/alerting

@swamp/cloudflare/alertingv2026.05.29.1· 5d agoMODELS
01README

Cloudflare alerting infrastructure models

02Release Notes
  • Updated: webhooks
  • Updated: policies
03Models2
@swamp/cloudflare/alerting/policiesv2026.05.29.1policies.ts

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
alert_interval?stringOptional specification of how often to re-alert from the same incident, not support on all alert types.
alert_typeenumRefers to which event will trigger a Notification dispatch. You can use the endpoint to get available alert types which then will give you a list of possible values.
description?stringOptional description for the Notification policy.
enabledbooleanWhether or not the Notification policy is enabled.
filters?objectOptional filters that allow you to be alerted only on a subset of events for that alert type based on some criteria. This is only available for select alert types. See alert type documentation for more details.
mechanismsobjectList of IDs that will be used when dispatching a notification. IDs for email type will be the email address.
namestringName of the policy.
apiToken?stringCloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
apiKey?stringCloudflare API key for the legacy key+email auth path; overrides the CLOUDFLARE_API_KEY environment variable. Wire with a vault.get(...) expression. Requires email.
email?stringCloudflare account email for the legacy key+email auth path; overrides the CLOUDFLARE_EMAIL environment variable. Requires apiKey.
fn create()
Create a Policies
fn get(id: string)
Get a Policies
ArgumentTypeDescription
idstringThe ID of the Policies
fn update()
Update Policies attributes
fn delete(id: string)
Delete the Policies
ArgumentTypeDescription
idstringThe ID of the Policies
fn sync()
Sync Policies state from Cloudflare

Resources

state(infinite)— Policies resource state
@swamp/cloudflare/alerting/webhooksv2026.05.29.1webhooks.ts

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
namestringThe name of the webhook destination. This will be included in the request body when you receive a webhook notification.
secret?stringOptional secret that will be passed in the `cf-webhook-auth` header when dispatching generic webhook notifications or formatted for supported destinations. Secrets are not returned in any API response body.
urlstringThe POST endpoint to call when dispatching a notification.
apiToken?stringCloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
apiKey?stringCloudflare API key for the legacy key+email auth path; overrides the CLOUDFLARE_API_KEY environment variable. Wire with a vault.get(...) expression. Requires email.
email?stringCloudflare account email for the legacy key+email auth path; overrides the CLOUDFLARE_EMAIL environment variable. Requires apiKey.
fn create()
Create a Webhooks
fn get(id: string)
Get a Webhooks
ArgumentTypeDescription
idstringThe ID of the Webhooks
fn update()
Update Webhooks attributes
fn delete(id: string)
Delete the Webhooks
ArgumentTypeDescription
idstringThe ID of the Webhooks
fn sync()
Sync Webhooks state from Cloudflare

Resources

state(infinite)— Webhooks resource state
04Previous Versions1
2026.05.22.1May 22, 2026
  • Added: webhooks
  • Added: policies
05Stats
A
100 / 100
Downloads
0
Archive size
15.9 KB
Verified by Swamp
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
06Platforms
07Labels