---
title: Policies
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

[Alerting](https://developers.cloudflare.com/api/go/resources/alerting)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Policies

##### [List Notification policies](https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/list)

client.Alerting.Policies.List(ctx, query) (\*SinglePage\[[Policy](<https://developers.cloudflare.com/api/go/resources/alerting#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/alerting/v3/policies

##### [Get a Notification policy](https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/get)

client.Alerting.Policies.Get(ctx, policyID, query) (\*[Policy](<https://developers.cloudflare.com/api/go/resources/alerting#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/alerting/v3/policies/{policy\_id}

##### [Create a Notification policy](https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/create)

client.Alerting.Policies.New(ctx, params) (\*[PolicyNewResponse](<https://developers.cloudflare.com/api/go/resources/alerting#(resource)%20alerting.policies%20%3E%20(model)%20PolicyNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/alerting/v3/policies

##### [Update a Notification policy](https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/update)

client.Alerting.Policies.Update(ctx, policyID, params) (\*[PolicyUpdateResponse](<https://developers.cloudflare.com/api/go/resources/alerting#(resource)%20alerting.policies%20%3E%20(model)%20PolicyUpdateResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/alerting/v3/policies/{policy\_id}

##### [Delete a Notification policy](https://developers.cloudflare.com/api/go/resources/alerting/subresources/policies/methods/delete)

client.Alerting.Policies.Delete(ctx, policyID, body) (\*[PolicyDeleteResponse](<https://developers.cloudflare.com/api/go/resources/alerting#(resource)%20alerting.policies%20%3E%20(model)%20PolicyDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/alerting/v3/policies/{policy\_id}

##### ModelsExpand Collapse

<details>

<summary>

type Mechanism struct{…}

List of IDs that will be used when dispatching a notification. IDs for email type will be the email address.

</summary>

<details>

<summary>

Email \[]MechanismEmailOptional

</summary>

ID stringOptional

The email address

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20mechanism%20%3E%20(schema)%20%3E%20(property)%20email%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

</details>

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20mechanism%20%3E%20(schema)%20%3E%20(property)%20email">Link to this property</a>

<details>

<summary>

Pagerduty \[]MechanismPagerdutyOptional

</summary>

ID stringOptional

UUID

maxLength32

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20mechanism%20%3E%20(schema)%20%3E%20(property)%20pagerduty%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

</details>

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20mechanism%20%3E%20(schema)%20%3E%20(property)%20pagerduty">Link to this property</a>

<details>

<summary>

Webhooks \[]MechanismWebhookOptional

</summary>

ID stringOptional

UUID

maxLength32

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20mechanism%20%3E%20(schema)%20%3E%20(property)%20webhooks%20%3E%20(items)%20%3E%20(property)%20id">Link to this property</a>

</details>

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20mechanism%20%3E%20(schema)%20%3E%20(property)%20webhooks">Link to this property</a>

</details>

[Link to this property](<#(resource)%20alerting.policies%20%3E%20(model)%20mechanism%20%3E%20(schema)>)

<details>

<summary>

type Policy struct{…}

</summary>

ID stringOptional

The unique identifier of a notification policy

maxLength32

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

AlertInterval stringOptional

Optional specification of how often to re-alert from the same incident, not support on all alert types.

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_interval">Link to this property</a>

<details>

<summary>

AlertType PolicyAlertTypeOptional

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.

</summary>

One of the following:

const PolicyAlertTypeAbuseReportAlert PolicyAlertType = "abuse\_report\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%200">Link to this property</a>

const PolicyAlertTypeAccessCustomCertificateExpirationType PolicyAlertType = "access\_custom\_certificate\_expiration\_type"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%201">Link to this property</a>

const PolicyAlertTypeAdvancedDDoSAttackL4Alert PolicyAlertType = "advanced\_ddos\_attack\_l4\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%202">Link to this property</a>

const PolicyAlertTypeAdvancedDDoSAttackL7Alert PolicyAlertType = "advanced\_ddos\_attack\_l7\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%203">Link to this property</a>

const PolicyAlertTypeAdvancedHTTPAlertError PolicyAlertType = "advanced\_http\_alert\_error"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%204">Link to this property</a>

const PolicyAlertTypeBGPHijackNotification PolicyAlertType = "bgp\_hijack\_notification"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%205">Link to this property</a>

const PolicyAlertTypeBillingUsageAlert PolicyAlertType = "billing\_usage\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%206">Link to this property</a>

const PolicyAlertTypeBlockNotificationBlockRemoved PolicyAlertType = "block\_notification\_block\_removed"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%207">Link to this property</a>

const PolicyAlertTypeBlockNotificationNewBlock PolicyAlertType = "block\_notification\_new\_block"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%208">Link to this property</a>

const PolicyAlertTypeBlockNotificationReviewRejected PolicyAlertType = "block\_notification\_review\_rejected"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%209">Link to this property</a>

const PolicyAlertTypeBotTrafficBasicAlert PolicyAlertType = "bot\_traffic\_basic\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2010">Link to this property</a>

const PolicyAlertTypeBrandProtectionAlert PolicyAlertType = "brand\_protection\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2011">Link to this property</a>

const PolicyAlertTypeBrandProtectionDigest PolicyAlertType = "brand\_protection\_digest"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2012">Link to this property</a>

const PolicyAlertTypeClickhouseAlertFwAnomaly PolicyAlertType = "clickhouse\_alert\_fw\_anomaly"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2013">Link to this property</a>

const PolicyAlertTypeClickhouseAlertFwEntAnomaly PolicyAlertType = "clickhouse\_alert\_fw\_ent\_anomaly"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2014">Link to this property</a>

const PolicyAlertTypeCloudforceOneRequestNotification PolicyAlertType = "cloudforce\_one\_request\_notification"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2015">Link to this property</a>

const PolicyAlertTypeCNIMaintenanceNotification PolicyAlertType = "cni\_maintenance\_notification"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2016">Link to this property</a>

const PolicyAlertTypeCustomAnalytics PolicyAlertType = "custom\_analytics"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2017">Link to this property</a>

const PolicyAlertTypeCustomBotDetectionAlert PolicyAlertType = "custom\_bot\_detection\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2018">Link to this property</a>

const PolicyAlertTypeCustomSSLCertificateEventType PolicyAlertType = "custom\_ssl\_certificate\_event\_type"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2019">Link to this property</a>

const PolicyAlertTypeDedicatedSSLCertificateEventType PolicyAlertType = "dedicated\_ssl\_certificate\_event\_type"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2020">Link to this property</a>

const PolicyAlertTypeDeviceConnectivityAnomalyAlert PolicyAlertType = "device\_connectivity\_anomaly\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2021">Link to this property</a>

const PolicyAlertTypeDosAttackL4 PolicyAlertType = "dos\_attack\_l4"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2022">Link to this property</a>

const PolicyAlertTypeDosAttackL7 PolicyAlertType = "dos\_attack\_l7"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2023">Link to this property</a>

const PolicyAlertTypeExpiringServiceTokenAlert PolicyAlertType = "expiring\_service\_token\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2024">Link to this property</a>

const PolicyAlertTypeFailingLogpushJobDisabledAlert PolicyAlertType = "failing\_logpush\_job\_disabled\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2025">Link to this property</a>

const PolicyAlertTypeFbmAutoAdvertisement PolicyAlertType = "fbm\_auto\_advertisement"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2026">Link to this property</a>

const PolicyAlertTypeFbmDosdAttack PolicyAlertType = "fbm\_dosd\_attack"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2027">Link to this property</a>

const PolicyAlertTypeFbmVolumetricAttack PolicyAlertType = "fbm\_volumetric\_attack"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2028">Link to this property</a>

const PolicyAlertTypeHealthCheckStatusNotification PolicyAlertType = "health\_check\_status\_notification"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2029">Link to this property</a>

const PolicyAlertTypeHostnameAopCustomCertificateExpirationType PolicyAlertType = "hostname\_aop\_custom\_certificate\_expiration\_type"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2030">Link to this property</a>

const PolicyAlertTypeHTTPAlertEdgeError PolicyAlertType = "http\_alert\_edge\_error"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2031">Link to this property</a>

const PolicyAlertTypeHTTPAlertOriginError PolicyAlertType = "http\_alert\_origin\_error"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2032">Link to this property</a>

const PolicyAlertTypeImageNotification PolicyAlertType = "image\_notification"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2033">Link to this property</a>

const PolicyAlertTypeImageResizingNotification PolicyAlertType = "image\_resizing\_notification"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2034">Link to this property</a>

const PolicyAlertTypeIncidentAlert PolicyAlertType = "incident\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2035">Link to this property</a>

const PolicyAlertTypeLoadBalancingHealthAlert PolicyAlertType = "load\_balancing\_health\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2036">Link to this property</a>

const PolicyAlertTypeLoadBalancingPoolEnablementAlert PolicyAlertType = "load\_balancing\_pool\_enablement\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2037">Link to this property</a>

const PolicyAlertTypeLogoMatchAlert PolicyAlertType = "logo\_match\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2038">Link to this property</a>

const PolicyAlertTypeMagicTunnelHealthCheckEvent PolicyAlertType = "magic\_tunnel\_health\_check\_event"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2039">Link to this property</a>

const PolicyAlertTypeMagicWANTunnelHealth PolicyAlertType = "magic\_wan\_tunnel\_health"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2040">Link to this property</a>

const PolicyAlertTypeMaintenanceEventNotification PolicyAlertType = "maintenance\_event\_notification"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2041">Link to this property</a>

const PolicyAlertTypeMTLSCertificateStoreCertificateExpirationType PolicyAlertType = "mtls\_certificate\_store\_certificate\_expiration\_type"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2042">Link to this property</a>

const PolicyAlertTypePagesEventAlert PolicyAlertType = "pages\_event\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2043">Link to this property</a>

const PolicyAlertTypeRadarNotification PolicyAlertType = "radar\_notification"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2044">Link to this property</a>

const PolicyAlertTypeRealOriginMonitoring PolicyAlertType = "real\_origin\_monitoring"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2045">Link to this property</a>

const PolicyAlertTypeScriptmonitorAlertNewCodeChangeDetections PolicyAlertType = "scriptmonitor\_alert\_new\_code\_change\_detections"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2046">Link to this property</a>

const PolicyAlertTypeScriptmonitorAlertNewHosts PolicyAlertType = "scriptmonitor\_alert\_new\_hosts"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2047">Link to this property</a>

const PolicyAlertTypeScriptmonitorAlertNewMaliciousHosts PolicyAlertType = "scriptmonitor\_alert\_new\_malicious\_hosts"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2048">Link to this property</a>

const PolicyAlertTypeScriptmonitorAlertNewMaliciousScripts PolicyAlertType = "scriptmonitor\_alert\_new\_malicious\_scripts"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2049">Link to this property</a>

const PolicyAlertTypeScriptmonitorAlertNewMaliciousURL PolicyAlertType = "scriptmonitor\_alert\_new\_malicious\_url"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2050">Link to this property</a>

const PolicyAlertTypeScriptmonitorAlertNewMaxLengthResourceURL PolicyAlertType = "scriptmonitor\_alert\_new\_max\_length\_resource\_url"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2051">Link to this property</a>

const PolicyAlertTypeScriptmonitorAlertNewResources PolicyAlertType = "scriptmonitor\_alert\_new\_resources"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2052">Link to this property</a>

const PolicyAlertTypeSecondaryDNSAllPrimariesFailing PolicyAlertType = "secondary\_dns\_all\_primaries\_failing"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2053">Link to this property</a>

const PolicyAlertTypeSecondaryDNSPrimariesFailing PolicyAlertType = "secondary\_dns\_primaries\_failing"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2054">Link to this property</a>

const PolicyAlertTypeSecondaryDNSWarning PolicyAlertType = "secondary\_dns\_warning"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2055">Link to this property</a>

const PolicyAlertTypeSecondaryDNSZoneSuccessfullyUpdated PolicyAlertType = "secondary\_dns\_zone\_successfully\_updated"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2056">Link to this property</a>

const PolicyAlertTypeSecondaryDNSZoneValidationWarning PolicyAlertType = "secondary\_dns\_zone\_validation\_warning"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2057">Link to this property</a>

const PolicyAlertTypeSecurityInsightsAlert PolicyAlertType = "security\_insights\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2058">Link to this property</a>

const PolicyAlertTypeSentinelAlert PolicyAlertType = "sentinel\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2059">Link to this property</a>

const PolicyAlertTypeStreamLiveNotifications PolicyAlertType = "stream\_live\_notifications"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2060">Link to this property</a>

const PolicyAlertTypeSyntheticTestLatencyAlert PolicyAlertType = "synthetic\_test\_latency\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2061">Link to this property</a>

const PolicyAlertTypeSyntheticTestLowAvailabilityAlert PolicyAlertType = "synthetic\_test\_low\_availability\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2062">Link to this property</a>

const PolicyAlertTypeTrafficAnomaliesAlert PolicyAlertType = "traffic\_anomalies\_alert"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2063">Link to this property</a>

const PolicyAlertTypeTunnelHealthEvent PolicyAlertType = "tunnel\_health\_event"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2064">Link to this property</a>

const PolicyAlertTypeTunnelUpdateEvent PolicyAlertType = "tunnel\_update\_event"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2065">Link to this property</a>

const PolicyAlertTypeUniversalSSLEventType PolicyAlertType = "universal\_ssl\_event\_type"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2066">Link to this property</a>

const PolicyAlertTypeWebAnalyticsMetricsUpdate PolicyAlertType = "web\_analytics\_metrics\_update"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2067">Link to this property</a>

const PolicyAlertTypeZoneAopCustomCertificateExpirationType PolicyAlertType = "zone\_aop\_custom\_certificate\_expiration\_type"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type%20%3E%20(member)%2068">Link to this property</a>

</details>

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20alert_type">Link to this property</a>

Created TimeOptional

formatdate-time

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20created">Link to this property</a>

Description stringOptional

Optional description for the Notification policy.

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

Enabled boolOptional

Whether or not the Notification policy is enabled.

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

Filters <a href="https://developers.cloudflare.com/api/go/resources/alerting#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)">PolicyFilter</a>Optional

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.

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20filters">Link to this property</a>

Mechanisms <a href="https://developers.cloudflare.com/api/go/resources/alerting#(resource)%20alerting.policies%20%3E%20(model)%20mechanism%20%3E%20(schema)">Mechanism</a>Optional

List of IDs that will be used when dispatching a notification. IDs for email type will be the email address.

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20mechanisms">Link to this property</a>

Modified TimeOptional

formatdate-time

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20modified">Link to this property</a>

Name stringOptional

Name of the policy.

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

</details>

[Link to this property](<#(resource)%20alerting.policies%20%3E%20(model)%20policy%20%3E%20(schema)>)

<details>

<summary>

type PolicyFilter struct{…}

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.

</summary>

Actions \[]stringOptional

Usage depends on specific alert type

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20actions">Link to this property</a>

AffectedASNs \[]stringOptional

Used for configuring radar\_notification

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20affected_asns">Link to this property</a>

AffectedComponents \[]stringOptional

Used for configuring incident\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20affected_components">Link to this property</a>

AffectedLocations \[]stringOptional

Used for configuring radar\_notification

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20affected_locations">Link to this property</a>

AirportCode \[]stringOptional

Used for configuring maintenance\_event\_notification

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20airport_code">Link to this property</a>

AlertTriggerPreferences \[]stringOptional

Usage depends on specific alert type

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20alert_trigger_preferences">Link to this property</a>

AlertTriggerPreferencesValue \[]stringOptional

Usage depends on specific alert type

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20alert_trigger_preferences_value">Link to this property</a>

Enabled \[]stringOptional

Used for configuring load\_balancing\_pool\_enablement\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20enabled">Link to this property</a>

Environment \[]stringOptional

Used for configuring pages\_event\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20environment">Link to this property</a>

Event \[]stringOptional

Used for configuring pages\_event\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20event">Link to this property</a>

EventSource \[]stringOptional

Used for configuring load\_balancing\_health\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20event_source">Link to this property</a>

EventType \[]stringOptional

Usage depends on specific alert type

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20event_type">Link to this property</a>

GroupBy \[]stringOptional

Usage depends on specific alert type

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20group_by">Link to this property</a>

HealthCheckID \[]stringOptional

Used for configuring health\_check\_status\_notification

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20health_check_id">Link to this property</a>

<details>

<summary>

IncidentImpact \[]PolicyFilterIncidentImpactOptional

Used for configuring incident\_alert

</summary>

One of the following:

const PolicyFilterIncidentImpactIncidentImpactNone PolicyFilterIncidentImpact = "INCIDENT\_IMPACT\_NONE"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20incident_impact%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

const PolicyFilterIncidentImpactIncidentImpactMinor PolicyFilterIncidentImpact = "INCIDENT\_IMPACT\_MINOR"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20incident_impact%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

const PolicyFilterIncidentImpactIncidentImpactMajor PolicyFilterIncidentImpact = "INCIDENT\_IMPACT\_MAJOR"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20incident_impact%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

const PolicyFilterIncidentImpactIncidentImpactCritical PolicyFilterIncidentImpact = "INCIDENT\_IMPACT\_CRITICAL"

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20incident_impact%20%3E%20(items)%20%3E%20(member)%203">Link to this property</a>

</details>

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20incident_impact">Link to this property</a>

InputID \[]stringOptional

Used for configuring stream\_live\_notifications

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20input_id">Link to this property</a>

InsightClass \[]stringOptional

Used for configuring security\_insights\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20insight_class">Link to this property</a>

Limit \[]stringOptional

Used for configuring billing\_usage\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20limit">Link to this property</a>

LogoTag \[]stringOptional

Used for configuring logo\_match\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20logo_tag">Link to this property</a>

MegabitsPerSecond \[]stringOptional

Used for configuring advanced\_ddos\_attack\_l4\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20megabits_per_second">Link to this property</a>

NewHealth \[]stringOptional

Used for configuring load\_balancing\_health\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20new_health">Link to this property</a>

NewStatus \[]stringOptional

Used for configuring tunnel\_health\_event

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20new_status">Link to this property</a>

PacketsPerSecond \[]stringOptional

Used for configuring advanced\_ddos\_attack\_l4\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20packets_per_second">Link to this property</a>

PoolID \[]stringOptional

Usage depends on specific alert type

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20pool_id">Link to this property</a>

POPNames \[]stringOptional

Usage depends on specific alert type

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20pop_names">Link to this property</a>

Product \[]stringOptional

Used for configuring billing\_usage\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20product">Link to this property</a>

ProjectID \[]stringOptional

Used for configuring pages\_event\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20project_id">Link to this property</a>

Protocol \[]stringOptional

Used for configuring advanced\_ddos\_attack\_l4\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20protocol">Link to this property</a>

QueryTag \[]stringOptional

Usage depends on specific alert type

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20query_tag">Link to this property</a>

RequestsPerSecond \[]stringOptional

Used for configuring advanced\_ddos\_attack\_l7\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20requests_per_second">Link to this property</a>

Selectors \[]stringOptional

Usage depends on specific alert type

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20selectors">Link to this property</a>

Services \[]stringOptional

Used for configuring clickhouse\_alert\_fw\_ent\_anomaly

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20services">Link to this property</a>

Slo \[]stringOptional

Usage depends on specific alert type

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20slo">Link to this property</a>

Status \[]stringOptional

Used for configuring health\_check\_status\_notification

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

TargetHostname \[]stringOptional

Used for configuring advanced\_ddos\_attack\_l7\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20target_hostname">Link to this property</a>

TargetIP \[]stringOptional

Used for configuring advanced\_ddos\_attack\_l4\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20target_ip">Link to this property</a>

TargetZoneName \[]stringOptional

Used for configuring advanced\_ddos\_attack\_l7\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20target_zone_name">Link to this property</a>

TokenID \[]stringOptional

Access service token IDs to include for expiring\_service\_token\_alert. Omit this property to include all current and future service tokens.

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20token_id">Link to this property</a>

TrafficExclusions \[]PolicyFilterTrafficExclusionOptional

Used for configuring traffic\_anomalies\_alert

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20traffic_exclusions">Link to this property</a>

TunnelID \[]stringOptional

Used for configuring tunnel\_health\_event

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20tunnel_id">Link to this property</a>

TunnelName \[]stringOptional

Usage depends on specific alert type

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20tunnel_name">Link to this property</a>

Type \[]stringOptional

Usage depends on specific alert type

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

Where \[]stringOptional

Usage depends on specific alert type

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20where">Link to this property</a>

Zones \[]stringOptional

Usage depends on specific alert type

<a href="#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)%20%3E%20(property)%20zones">Link to this property</a>

</details>

[Link to this property](<#(resource)%20alerting.policies%20%3E%20(model)%20policy_filter%20%3E%20(schema)>)