Policies
List Notification policies
client.Alerting.Policies.List(ctx, query) (*SinglePage[Policy], error)
GET/accounts/{account_id}/alerting/v3/policies
Get a Notification policy
client.Alerting.Policies.Get(ctx, policyID, query) (*Policy, error)
GET/accounts/{account_id}/alerting/v3/policies/{policy_id}
Create a Notification policy
client.Alerting.Policies.New(ctx, params) (*PolicyNewResponse, error)
POST/accounts/{account_id}/alerting/v3/policies
Update a Notification policy
client.Alerting.Policies.Update(ctx, policyID, params) (*PolicyUpdateResponse, error)
PUT/accounts/{account_id}/alerting/v3/policies/{policy_id}
Delete a Notification policy
client.Alerting.Policies.Delete(ctx, policyID, body) (*PolicyDeleteResponse, error)
DELETE/accounts/{account_id}/alerting/v3/policies/{policy_id}
ModelsExpand Collapse
type Policy struct{…}
type Policy struct{…}
AlertInterval stringoptional
Optional specification of how often to re-alert from the same incident, not support on all alert types.
AlertType PolicyAlertTypeoptionalRefers 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.
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.
One of the following:
const PolicyAlertTypeAccessCustomCertificateExpirationType PolicyAlertType = "access_custom_certificate_expiration_type"
const PolicyAlertTypeBlockNotificationBlockRemoved PolicyAlertType = "block_notification_block_removed"
const PolicyAlertTypeBlockNotificationReviewRejected PolicyAlertType = "block_notification_review_rejected"
const PolicyAlertTypeClickhouseAlertFwEntAnomaly PolicyAlertType = "clickhouse_alert_fw_ent_anomaly"
const PolicyAlertTypeCloudforceOneRequestNotification PolicyAlertType = "cloudforce_one_request_notification"
const PolicyAlertTypeCustomSSLCertificateEventType PolicyAlertType = "custom_ssl_certificate_event_type"
const PolicyAlertTypeDedicatedSSLCertificateEventType PolicyAlertType = "dedicated_ssl_certificate_event_type"
const PolicyAlertTypeDeviceConnectivityAnomalyAlert PolicyAlertType = "device_connectivity_anomaly_alert"
const PolicyAlertTypeFailingLogpushJobDisabledAlert PolicyAlertType = "failing_logpush_job_disabled_alert"
const PolicyAlertTypeHealthCheckStatusNotification PolicyAlertType = "health_check_status_notification"
const PolicyAlertTypeHostnameAopCustomCertificateExpirationType PolicyAlertType = "hostname_aop_custom_certificate_expiration_type"
const PolicyAlertTypeLoadBalancingPoolEnablementAlert PolicyAlertType = "load_balancing_pool_enablement_alert"
const PolicyAlertTypeMagicTunnelHealthCheckEvent PolicyAlertType = "magic_tunnel_health_check_event"
const PolicyAlertTypeMaintenanceEventNotification PolicyAlertType = "maintenance_event_notification"
const PolicyAlertTypeMTLSCertificateStoreCertificateExpirationType PolicyAlertType = "mtls_certificate_store_certificate_expiration_type"
const PolicyAlertTypeScriptmonitorAlertNewCodeChangeDetections PolicyAlertType = "scriptmonitor_alert_new_code_change_detections"
const PolicyAlertTypeScriptmonitorAlertNewMaliciousHosts PolicyAlertType = "scriptmonitor_alert_new_malicious_hosts"
const PolicyAlertTypeScriptmonitorAlertNewMaliciousScripts PolicyAlertType = "scriptmonitor_alert_new_malicious_scripts"
const PolicyAlertTypeScriptmonitorAlertNewMaliciousURL PolicyAlertType = "scriptmonitor_alert_new_malicious_url"
const PolicyAlertTypeScriptmonitorAlertNewMaxLengthResourceURL PolicyAlertType = "scriptmonitor_alert_new_max_length_resource_url"
const PolicyAlertTypeScriptmonitorAlertNewResources PolicyAlertType = "scriptmonitor_alert_new_resources"
const PolicyAlertTypeSecondaryDNSAllPrimariesFailing PolicyAlertType = "secondary_dns_all_primaries_failing"
const PolicyAlertTypeSecondaryDNSPrimariesFailing PolicyAlertType = "secondary_dns_primaries_failing"
const PolicyAlertTypeSecondaryDNSZoneSuccessfullyUpdated PolicyAlertType = "secondary_dns_zone_successfully_updated"
const PolicyAlertTypeSecondaryDNSZoneValidationWarning PolicyAlertType = "secondary_dns_zone_validation_warning"
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.
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.
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.
IncidentImpact []PolicyFilterIncidentImpactoptionalUsed for configuring incident_alert
IncidentImpact []PolicyFilterIncidentImpactoptional
Used for configuring incident_alert
One of the following:
const PolicyFilterIncidentImpactIncidentImpactNone PolicyFilterIncidentImpact = "INCIDENT_IMPACT_NONE"
const PolicyFilterIncidentImpactIncidentImpactMinor PolicyFilterIncidentImpact = "INCIDENT_IMPACT_MINOR"