Cloudflare/alerting
@swamp/cloudflare/alertingv2026.05.29.1
01README
Cloudflare alerting infrastructure models
02Release Notes
- Updated: webhooks
- Updated: policies
03Models
@swamp/cloudflare/alerting/policiesv2026.05.29.1policies.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| account_id | string | Cloudflare account ID |
| alert_interval? | string | Optional specification of how often to re-alert from the same incident, not support on all alert types. |
| alert_type | enum | Refers 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? | string | Optional description for the Notification policy. |
| enabled | boolean | Whether or not the Notification policy is enabled. |
| filters? | object | Optional 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. |
| mechanisms | object | List of IDs that will be used when dispatching a notification. IDs for email type will be the email address. |
| name | string | Name of the policy. |
| apiToken? | string | Cloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| apiKey? | string | Cloudflare 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? | string | Cloudflare 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
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Policies |
fn update()
Update Policies attributes
fn delete(id: string)
Delete the Policies
| Argument | Type | Description |
|---|---|---|
| id | string | The 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
| Argument | Type | Description |
|---|---|---|
| account_id | string | Cloudflare account ID |
| name | string | The name of the webhook destination. This will be included in the request body when you receive a webhook notification. |
| secret? | string | Optional 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. |
| url | string | The POST endpoint to call when dispatching a notification. |
| apiToken? | string | Cloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| apiKey? | string | Cloudflare 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? | string | Cloudflare 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
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Webhooks |
fn update()
Update Webhooks attributes
fn delete(id: string)
Delete the Webhooks
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Webhooks |
fn sync()
Sync Webhooks state from Cloudflare
Resources
state(infinite)— Webhooks resource state
04Previous Versions
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