alerting

package
v7.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2026 License: Apache-2.0 Imports: 15 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const AuditLogActorTypeAdmin = shared.AuditLogActorTypeAdmin

This is an alias to an internal value.

View Source
const AuditLogActorTypeCloudflare = shared.AuditLogActorTypeCloudflare

This is an alias to an internal value.

View Source
const AuditLogActorTypeUser = shared.AuditLogActorTypeUser

This is an alias to an internal value.

View Source
const CertificateCADigicert = shared.CertificateCADigicert

This is an alias to an internal value.

View Source
const CertificateCAGoogle = shared.CertificateCAGoogle

This is an alias to an internal value.

View Source
const CertificateCALetsEncrypt = shared.CertificateCALetsEncrypt

This is an alias to an internal value.

View Source
const CertificateCASSLCom = shared.CertificateCASSLCom

This is an alias to an internal value.

View Source
const CertificateRequestTypeKeylessCertificate = shared.CertificateRequestTypeKeylessCertificate

This is an alias to an internal value.

View Source
const CertificateRequestTypeOriginECC = shared.CertificateRequestTypeOriginECC

This is an alias to an internal value.

View Source
const CertificateRequestTypeOriginRSA = shared.CertificateRequestTypeOriginRSA

This is an alias to an internal value.

View Source
const CloudflareTunnelConfigSrcCloudflare = shared.CloudflareTunnelConfigSrcCloudflare

This is an alias to an internal value.

View Source
const CloudflareTunnelConfigSrcLocal = shared.CloudflareTunnelConfigSrcLocal

This is an alias to an internal value.

View Source
const CloudflareTunnelStatusDegraded = shared.CloudflareTunnelStatusDegraded

This is an alias to an internal value.

View Source
const CloudflareTunnelStatusDown = shared.CloudflareTunnelStatusDown

This is an alias to an internal value.

View Source
const CloudflareTunnelStatusHealthy = shared.CloudflareTunnelStatusHealthy

This is an alias to an internal value.

View Source
const CloudflareTunnelStatusInactive = shared.CloudflareTunnelStatusInactive

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeCNI = shared.CloudflareTunnelTunTypeCNI

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeCfdTunnel = shared.CloudflareTunnelTunTypeCfdTunnel

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeGRE = shared.CloudflareTunnelTunTypeGRE

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeIPSec = shared.CloudflareTunnelTunTypeIPSec

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeMagic = shared.CloudflareTunnelTunTypeMagic

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeWARP = shared.CloudflareTunnelTunTypeWARP

This is an alias to an internal value.

View Source
const CloudflareTunnelTunTypeWARPConnector = shared.CloudflareTunnelTunTypeWARPConnector

This is an alias to an internal value.

View Source
const MemberPoliciesAccessAllow = shared.MemberPoliciesAccessAllow

This is an alias to an internal value.

View Source
const MemberPoliciesAccessDeny = shared.MemberPoliciesAccessDeny

This is an alias to an internal value.

View Source
const MemberStatusAccepted = shared.MemberStatusAccepted

This is an alias to an internal value.

View Source
const MemberStatusPending = shared.MemberStatusPending

This is an alias to an internal value.

View Source
const RatePlanIDBusiness = shared.RatePlanIDBusiness

This is an alias to an internal value.

View Source
const RatePlanIDEnterprise = shared.RatePlanIDEnterprise

This is an alias to an internal value.

View Source
const RatePlanIDFree = shared.RatePlanIDFree

This is an alias to an internal value.

View Source
const RatePlanIDLite = shared.RatePlanIDLite

This is an alias to an internal value.

View Source
const RatePlanIDPartnersBusiness = shared.RatePlanIDPartnersBusiness

This is an alias to an internal value.

View Source
const RatePlanIDPartnersEnterprise = shared.RatePlanIDPartnersEnterprise

This is an alias to an internal value.

View Source
const RatePlanIDPartnersFree = shared.RatePlanIDPartnersFree

This is an alias to an internal value.

View Source
const RatePlanIDPartnersPro = shared.RatePlanIDPartnersPro

This is an alias to an internal value.

View Source
const RatePlanIDPro = shared.RatePlanIDPro

This is an alias to an internal value.

View Source
const RatePlanIDProPlus = shared.RatePlanIDProPlus

This is an alias to an internal value.

View Source
const SortDirectionAsc = shared.SortDirectionAsc

This is an alias to an internal value.

View Source
const SortDirectionDesc = shared.SortDirectionDesc

This is an alias to an internal value.

View Source
const SubscriptionFrequencyMonthly = shared.SubscriptionFrequencyMonthly

This is an alias to an internal value.

View Source
const SubscriptionFrequencyQuarterly = shared.SubscriptionFrequencyQuarterly

This is an alias to an internal value.

View Source
const SubscriptionFrequencyWeekly = shared.SubscriptionFrequencyWeekly

This is an alias to an internal value.

View Source
const SubscriptionFrequencyYearly = shared.SubscriptionFrequencyYearly

This is an alias to an internal value.

View Source
const SubscriptionStateAwaitingPayment = shared.SubscriptionStateAwaitingPayment

This is an alias to an internal value.

View Source
const SubscriptionStateCancelled = shared.SubscriptionStateCancelled

This is an alias to an internal value.

View Source
const SubscriptionStateExpired = shared.SubscriptionStateExpired

This is an alias to an internal value.

View Source
const SubscriptionStateFailed = shared.SubscriptionStateFailed

This is an alias to an internal value.

View Source
const SubscriptionStatePaid = shared.SubscriptionStatePaid

This is an alias to an internal value.

View Source
const SubscriptionStateProvisioned = shared.SubscriptionStateProvisioned

This is an alias to an internal value.

View Source
const SubscriptionStateTrial = shared.SubscriptionStateTrial

This is an alias to an internal value.

View Source
const TokenPolicyEffectAllow = shared.TokenPolicyEffectAllow

This is an alias to an internal value.

View Source
const TokenPolicyEffectDeny = shared.TokenPolicyEffectDeny

This is an alias to an internal value.

View Source
const TokenStatusActive = shared.TokenStatusActive

This is an alias to an internal value.

View Source
const TokenStatusDisabled = shared.TokenStatusDisabled

This is an alias to an internal value.

View Source
const TokenStatusExpired = shared.TokenStatusExpired

This is an alias to an internal value.

Variables

This section is empty.

Functions

This section is empty.

Types

type ASN

type ASN = shared.ASN

This is an alias to an internal type.

type ASNParam

type ASNParam = shared.ASNParam

This is an alias to an internal type.

type AlertingService

type AlertingService struct {
	Options         []option.RequestOption
	AvailableAlerts *AvailableAlertService
	Destinations    *DestinationService
	History         *HistoryService
	Policies        *PolicyService
	Silences        *SilenceService
}

AlertingService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAlertingService method instead.

func NewAlertingService

func NewAlertingService(opts ...option.RequestOption) (r *AlertingService)

NewAlertingService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

type AuditLog

type AuditLog = shared.AuditLog

This is an alias to an internal type.

type AuditLogAction

type AuditLogAction = shared.AuditLogAction

This is an alias to an internal type.

type AuditLogActor

type AuditLogActor = shared.AuditLogActor

This is an alias to an internal type.

type AuditLogActorType

type AuditLogActorType = shared.AuditLogActorType

The type of actor, whether a User, Cloudflare Admin, or an Automated System.

This is an alias to an internal type.

type AuditLogOwner

type AuditLogOwner = shared.AuditLogOwner

This is an alias to an internal type.

type AuditLogResource

type AuditLogResource = shared.AuditLogResource

This is an alias to an internal type.

type AvailableAlertListParams

type AvailableAlertListParams struct {
	// The account id
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type AvailableAlertListResponse

type AvailableAlertListResponse map[string][]AvailableAlertListResponseItem

type AvailableAlertListResponseEnvelope

type AvailableAlertListResponseEnvelope struct {
	Errors   []AvailableAlertListResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []AvailableAlertListResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful
	Success AvailableAlertListResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  AvailableAlertListResponse                `json:"result"`
	JSON    availableAlertListResponseEnvelopeJSON    `json:"-"`
}

func (*AvailableAlertListResponseEnvelope) UnmarshalJSON

func (r *AvailableAlertListResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type AvailableAlertListResponseEnvelopeErrors

type AvailableAlertListResponseEnvelopeErrors struct {
	Message string                                       `json:"message" api:"required"`
	Code    int64                                        `json:"code"`
	JSON    availableAlertListResponseEnvelopeErrorsJSON `json:"-"`
}

func (*AvailableAlertListResponseEnvelopeErrors) UnmarshalJSON

func (r *AvailableAlertListResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)

type AvailableAlertListResponseEnvelopeMessages

type AvailableAlertListResponseEnvelopeMessages struct {
	Message string                                         `json:"message" api:"required"`
	Code    int64                                          `json:"code"`
	JSON    availableAlertListResponseEnvelopeMessagesJSON `json:"-"`
}

func (*AvailableAlertListResponseEnvelopeMessages) UnmarshalJSON

func (r *AvailableAlertListResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)

type AvailableAlertListResponseEnvelopeSuccess

type AvailableAlertListResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	AvailableAlertListResponseEnvelopeSuccessTrue AvailableAlertListResponseEnvelopeSuccess = true
)

func (AvailableAlertListResponseEnvelopeSuccess) IsKnown

type AvailableAlertListResponseItem

type AvailableAlertListResponseItem struct {
	// Describes the alert type.
	Description string `json:"description"`
	// Alert type name.
	DisplayName string `json:"display_name"`
	// Format of additional configuration options (filters) for the alert type. Data
	// type of filters during policy creation: Array of strings.
	FilterOptions []interface{} `json:"filter_options"`
	// Use this value when creating and updating a notification policy.
	Type string                             `json:"type"`
	JSON availableAlertListResponseItemJSON `json:"-"`
}

func (*AvailableAlertListResponseItem) UnmarshalJSON

func (r *AvailableAlertListResponseItem) UnmarshalJSON(data []byte) (err error)

type AvailableAlertService

type AvailableAlertService struct {
	Options []option.RequestOption
}

AvailableAlertService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAvailableAlertService method instead.

func NewAvailableAlertService

func NewAvailableAlertService(opts ...option.RequestOption) (r *AvailableAlertService)

NewAvailableAlertService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*AvailableAlertService) List

Gets a list of all alert types for which an account is eligible.

type CertificateCA

type CertificateCA = shared.CertificateCA

The Certificate Authority that will issue the certificate.

This is an alias to an internal type.

type CertificateRequestType

type CertificateRequestType = shared.CertificateRequestType

Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers).

This is an alias to an internal type.

type CloudflareTunnel

type CloudflareTunnel = shared.CloudflareTunnel

A Cloudflare Tunnel that connects your origin to Cloudflare's edge.

This is an alias to an internal type.

type CloudflareTunnelConfigSrc

type CloudflareTunnelConfigSrc = shared.CloudflareTunnelConfigSrc

Indicates if this is a locally or remotely configured tunnel. If `local`, manage the tunnel using a YAML file on the origin machine. If `cloudflare`, manage the tunnel on the Zero Trust dashboard.

This is an alias to an internal type.

type CloudflareTunnelConnection

type CloudflareTunnelConnection = shared.CloudflareTunnelConnection

This is an alias to an internal type.

type CloudflareTunnelStatus

type CloudflareTunnelStatus = shared.CloudflareTunnelStatus

The status of the tunnel. Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy state), `healthy` (tunnel is active and able to serve traffic), or `down` (tunnel can not serve traffic as it has no connections to the Cloudflare Edge).

This is an alias to an internal type.

type CloudflareTunnelTunType

type CloudflareTunnelTunType = shared.CloudflareTunnelTunType

The type of tunnel.

This is an alias to an internal type.

type DestinationEligibleGetParams

type DestinationEligibleGetParams struct {
	// The account id
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type DestinationEligibleGetResponse

type DestinationEligibleGetResponse map[string][]DestinationEligibleGetResponseItem

type DestinationEligibleGetResponseEnvelope

type DestinationEligibleGetResponseEnvelope struct {
	Errors   []DestinationEligibleGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []DestinationEligibleGetResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful
	Success DestinationEligibleGetResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  DestinationEligibleGetResponse                `json:"result"`
	JSON    destinationEligibleGetResponseEnvelopeJSON    `json:"-"`
}

func (*DestinationEligibleGetResponseEnvelope) UnmarshalJSON

func (r *DestinationEligibleGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type DestinationEligibleGetResponseEnvelopeErrors

type DestinationEligibleGetResponseEnvelopeErrors struct {
	Message string                                           `json:"message" api:"required"`
	Code    int64                                            `json:"code"`
	JSON    destinationEligibleGetResponseEnvelopeErrorsJSON `json:"-"`
}

func (*DestinationEligibleGetResponseEnvelopeErrors) UnmarshalJSON

func (r *DestinationEligibleGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)

type DestinationEligibleGetResponseEnvelopeMessages

type DestinationEligibleGetResponseEnvelopeMessages struct {
	Message string                                             `json:"message" api:"required"`
	Code    int64                                              `json:"code"`
	JSON    destinationEligibleGetResponseEnvelopeMessagesJSON `json:"-"`
}

func (*DestinationEligibleGetResponseEnvelopeMessages) UnmarshalJSON

func (r *DestinationEligibleGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)

type DestinationEligibleGetResponseEnvelopeSuccess

type DestinationEligibleGetResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	DestinationEligibleGetResponseEnvelopeSuccessTrue DestinationEligibleGetResponseEnvelopeSuccess = true
)

func (DestinationEligibleGetResponseEnvelopeSuccess) IsKnown

type DestinationEligibleGetResponseItem

type DestinationEligibleGetResponseItem struct {
	// Determines whether or not the account is eligible for the delivery mechanism.
	Eligible bool `json:"eligible"`
	// Beta flag. Users can create a policy with a mechanism that is not ready, but we
	// cannot guarantee successful delivery of notifications.
	Ready bool `json:"ready"`
	// Determines type of delivery mechanism.
	Type DestinationEligibleGetResponseItemType `json:"type"`
	JSON destinationEligibleGetResponseItemJSON `json:"-"`
}

func (*DestinationEligibleGetResponseItem) UnmarshalJSON

func (r *DestinationEligibleGetResponseItem) UnmarshalJSON(data []byte) (err error)

type DestinationEligibleGetResponseItemType

type DestinationEligibleGetResponseItemType string

Determines type of delivery mechanism.

const (
	DestinationEligibleGetResponseItemTypeEmail     DestinationEligibleGetResponseItemType = "email"
	DestinationEligibleGetResponseItemTypePagerduty DestinationEligibleGetResponseItemType = "pagerduty"
	DestinationEligibleGetResponseItemTypeWebhook   DestinationEligibleGetResponseItemType = "webhook"
)

func (DestinationEligibleGetResponseItemType) IsKnown

type DestinationEligibleService

type DestinationEligibleService struct {
	Options []option.RequestOption
}

DestinationEligibleService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDestinationEligibleService method instead.

func NewDestinationEligibleService

func NewDestinationEligibleService(opts ...option.RequestOption) (r *DestinationEligibleService)

NewDestinationEligibleService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*DestinationEligibleService) Get

Get a list of all delivery mechanism types for which an account is eligible.

type DestinationPagerdutyDeleteParams

type DestinationPagerdutyDeleteParams struct {
	// The account id
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type DestinationPagerdutyDeleteResponse

type DestinationPagerdutyDeleteResponse struct {
	Errors   []DestinationPagerdutyDeleteResponseError   `json:"errors" api:"required"`
	Messages []DestinationPagerdutyDeleteResponseMessage `json:"messages" api:"required"`
	// Whether the API call was successful
	Success DestinationPagerdutyDeleteResponseSuccess `json:"success" api:"required"`
	JSON    destinationPagerdutyDeleteResponseJSON    `json:"-"`
}

func (*DestinationPagerdutyDeleteResponse) UnmarshalJSON

func (r *DestinationPagerdutyDeleteResponse) UnmarshalJSON(data []byte) (err error)

type DestinationPagerdutyDeleteResponseError

type DestinationPagerdutyDeleteResponseError struct {
	Message string                                      `json:"message" api:"required"`
	Code    int64                                       `json:"code"`
	JSON    destinationPagerdutyDeleteResponseErrorJSON `json:"-"`
}

func (*DestinationPagerdutyDeleteResponseError) UnmarshalJSON

func (r *DestinationPagerdutyDeleteResponseError) UnmarshalJSON(data []byte) (err error)

type DestinationPagerdutyDeleteResponseMessage

type DestinationPagerdutyDeleteResponseMessage struct {
	Message string                                        `json:"message" api:"required"`
	Code    int64                                         `json:"code"`
	JSON    destinationPagerdutyDeleteResponseMessageJSON `json:"-"`
}

func (*DestinationPagerdutyDeleteResponseMessage) UnmarshalJSON

func (r *DestinationPagerdutyDeleteResponseMessage) UnmarshalJSON(data []byte) (err error)

type DestinationPagerdutyDeleteResponseSuccess

type DestinationPagerdutyDeleteResponseSuccess bool

Whether the API call was successful

const (
	DestinationPagerdutyDeleteResponseSuccessTrue DestinationPagerdutyDeleteResponseSuccess = true
)

func (DestinationPagerdutyDeleteResponseSuccess) IsKnown

type DestinationPagerdutyGetParams

type DestinationPagerdutyGetParams struct {
	// The account id
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type DestinationPagerdutyLinkParams

type DestinationPagerdutyLinkParams struct {
	// The account id
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type DestinationPagerdutyLinkResponse

type DestinationPagerdutyLinkResponse struct {
	// UUID
	ID   string                               `json:"id"`
	JSON destinationPagerdutyLinkResponseJSON `json:"-"`
}

func (*DestinationPagerdutyLinkResponse) UnmarshalJSON

func (r *DestinationPagerdutyLinkResponse) UnmarshalJSON(data []byte) (err error)

type DestinationPagerdutyLinkResponseEnvelope

type DestinationPagerdutyLinkResponseEnvelope struct {
	Errors   []DestinationPagerdutyLinkResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []DestinationPagerdutyLinkResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful
	Success DestinationPagerdutyLinkResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  DestinationPagerdutyLinkResponse                `json:"result"`
	JSON    destinationPagerdutyLinkResponseEnvelopeJSON    `json:"-"`
}

func (*DestinationPagerdutyLinkResponseEnvelope) UnmarshalJSON

func (r *DestinationPagerdutyLinkResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type DestinationPagerdutyLinkResponseEnvelopeErrors

type DestinationPagerdutyLinkResponseEnvelopeErrors struct {
	Message string                                             `json:"message" api:"required"`
	Code    int64                                              `json:"code"`
	JSON    destinationPagerdutyLinkResponseEnvelopeErrorsJSON `json:"-"`
}

func (*DestinationPagerdutyLinkResponseEnvelopeErrors) UnmarshalJSON

func (r *DestinationPagerdutyLinkResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)

type DestinationPagerdutyLinkResponseEnvelopeMessages

type DestinationPagerdutyLinkResponseEnvelopeMessages struct {
	Message string                                               `json:"message" api:"required"`
	Code    int64                                                `json:"code"`
	JSON    destinationPagerdutyLinkResponseEnvelopeMessagesJSON `json:"-"`
}

func (*DestinationPagerdutyLinkResponseEnvelopeMessages) UnmarshalJSON

func (r *DestinationPagerdutyLinkResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)

type DestinationPagerdutyLinkResponseEnvelopeSuccess

type DestinationPagerdutyLinkResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	DestinationPagerdutyLinkResponseEnvelopeSuccessTrue DestinationPagerdutyLinkResponseEnvelopeSuccess = true
)

func (DestinationPagerdutyLinkResponseEnvelopeSuccess) IsKnown

type DestinationPagerdutyNewParams

type DestinationPagerdutyNewParams struct {
	// The account id
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type DestinationPagerdutyNewResponse

type DestinationPagerdutyNewResponse struct {
	// token in form of UUID
	ID   string                              `json:"id"`
	JSON destinationPagerdutyNewResponseJSON `json:"-"`
}

func (*DestinationPagerdutyNewResponse) UnmarshalJSON

func (r *DestinationPagerdutyNewResponse) UnmarshalJSON(data []byte) (err error)

type DestinationPagerdutyNewResponseEnvelope

type DestinationPagerdutyNewResponseEnvelope struct {
	Errors   []DestinationPagerdutyNewResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []DestinationPagerdutyNewResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful
	Success DestinationPagerdutyNewResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  DestinationPagerdutyNewResponse                `json:"result"`
	JSON    destinationPagerdutyNewResponseEnvelopeJSON    `json:"-"`
}

func (*DestinationPagerdutyNewResponseEnvelope) UnmarshalJSON

func (r *DestinationPagerdutyNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type DestinationPagerdutyNewResponseEnvelopeErrors

type DestinationPagerdutyNewResponseEnvelopeErrors struct {
	Message string                                            `json:"message" api:"required"`
	Code    int64                                             `json:"code"`
	JSON    destinationPagerdutyNewResponseEnvelopeErrorsJSON `json:"-"`
}

func (*DestinationPagerdutyNewResponseEnvelopeErrors) UnmarshalJSON

func (r *DestinationPagerdutyNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)

type DestinationPagerdutyNewResponseEnvelopeMessages

type DestinationPagerdutyNewResponseEnvelopeMessages struct {
	Message string                                              `json:"message" api:"required"`
	Code    int64                                               `json:"code"`
	JSON    destinationPagerdutyNewResponseEnvelopeMessagesJSON `json:"-"`
}

func (*DestinationPagerdutyNewResponseEnvelopeMessages) UnmarshalJSON

func (r *DestinationPagerdutyNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)

type DestinationPagerdutyNewResponseEnvelopeSuccess

type DestinationPagerdutyNewResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	DestinationPagerdutyNewResponseEnvelopeSuccessTrue DestinationPagerdutyNewResponseEnvelopeSuccess = true
)

func (DestinationPagerdutyNewResponseEnvelopeSuccess) IsKnown

type DestinationPagerdutyService

type DestinationPagerdutyService struct {
	Options []option.RequestOption
}

DestinationPagerdutyService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDestinationPagerdutyService method instead.

func NewDestinationPagerdutyService

func NewDestinationPagerdutyService(opts ...option.RequestOption) (r *DestinationPagerdutyService)

NewDestinationPagerdutyService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*DestinationPagerdutyService) Delete

Deletes all the PagerDuty Services connected to the account.

func (*DestinationPagerdutyService) Get

Get a list of all configured PagerDuty services.

func (*DestinationPagerdutyService) GetAutoPaging

Get a list of all configured PagerDuty services.

Links PagerDuty with the account using the integration token.

func (*DestinationPagerdutyService) New

Creates a new token for integrating with PagerDuty.

type DestinationService

type DestinationService struct {
	Options   []option.RequestOption
	Eligible  *DestinationEligibleService
	Pagerduty *DestinationPagerdutyService
	Webhooks  *DestinationWebhookService
}

DestinationService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDestinationService method instead.

func NewDestinationService

func NewDestinationService(opts ...option.RequestOption) (r *DestinationService)

NewDestinationService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

type DestinationWebhookDeleteParams

type DestinationWebhookDeleteParams struct {
	// The account id
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type DestinationWebhookDeleteResponse

type DestinationWebhookDeleteResponse struct {
	Errors   []DestinationWebhookDeleteResponseError   `json:"errors" api:"required"`
	Messages []DestinationWebhookDeleteResponseMessage `json:"messages" api:"required"`
	// Whether the API call was successful
	Success DestinationWebhookDeleteResponseSuccess `json:"success" api:"required"`
	JSON    destinationWebhookDeleteResponseJSON    `json:"-"`
}

func (*DestinationWebhookDeleteResponse) UnmarshalJSON

func (r *DestinationWebhookDeleteResponse) UnmarshalJSON(data []byte) (err error)

type DestinationWebhookDeleteResponseError

type DestinationWebhookDeleteResponseError struct {
	Message string                                    `json:"message" api:"required"`
	Code    int64                                     `json:"code"`
	JSON    destinationWebhookDeleteResponseErrorJSON `json:"-"`
}

func (*DestinationWebhookDeleteResponseError) UnmarshalJSON

func (r *DestinationWebhookDeleteResponseError) UnmarshalJSON(data []byte) (err error)

type DestinationWebhookDeleteResponseMessage

type DestinationWebhookDeleteResponseMessage struct {
	Message string                                      `json:"message" api:"required"`
	Code    int64                                       `json:"code"`
	JSON    destinationWebhookDeleteResponseMessageJSON `json:"-"`
}

func (*DestinationWebhookDeleteResponseMessage) UnmarshalJSON

func (r *DestinationWebhookDeleteResponseMessage) UnmarshalJSON(data []byte) (err error)

type DestinationWebhookDeleteResponseSuccess

type DestinationWebhookDeleteResponseSuccess bool

Whether the API call was successful

const (
	DestinationWebhookDeleteResponseSuccessTrue DestinationWebhookDeleteResponseSuccess = true
)

func (DestinationWebhookDeleteResponseSuccess) IsKnown

type DestinationWebhookGetParams

type DestinationWebhookGetParams struct {
	// The account id
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type DestinationWebhookGetResponseEnvelope

type DestinationWebhookGetResponseEnvelope struct {
	Errors   []DestinationWebhookGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []DestinationWebhookGetResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful
	Success DestinationWebhookGetResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  Webhooks                                     `json:"result"`
	JSON    destinationWebhookGetResponseEnvelopeJSON    `json:"-"`
}

func (*DestinationWebhookGetResponseEnvelope) UnmarshalJSON

func (r *DestinationWebhookGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type DestinationWebhookGetResponseEnvelopeErrors

type DestinationWebhookGetResponseEnvelopeErrors struct {
	Message string                                          `json:"message" api:"required"`
	Code    int64                                           `json:"code"`
	JSON    destinationWebhookGetResponseEnvelopeErrorsJSON `json:"-"`
}

func (*DestinationWebhookGetResponseEnvelopeErrors) UnmarshalJSON

func (r *DestinationWebhookGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)

type DestinationWebhookGetResponseEnvelopeMessages

type DestinationWebhookGetResponseEnvelopeMessages struct {
	Message string                                            `json:"message" api:"required"`
	Code    int64                                             `json:"code"`
	JSON    destinationWebhookGetResponseEnvelopeMessagesJSON `json:"-"`
}

func (*DestinationWebhookGetResponseEnvelopeMessages) UnmarshalJSON

func (r *DestinationWebhookGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)

type DestinationWebhookGetResponseEnvelopeSuccess

type DestinationWebhookGetResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	DestinationWebhookGetResponseEnvelopeSuccessTrue DestinationWebhookGetResponseEnvelopeSuccess = true
)

func (DestinationWebhookGetResponseEnvelopeSuccess) IsKnown

type DestinationWebhookListParams

type DestinationWebhookListParams struct {
	// The account id
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type DestinationWebhookNewParams

type DestinationWebhookNewParams struct {
	// The account id
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// The name of the webhook destination. This will be included in the request body
	// when you receive a webhook notification.
	Name param.Field[string] `json:"name" api:"required"`
	// The POST endpoint to call when dispatching a notification.
	URL param.Field[string] `json:"url" api:"required"`
	// 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.
	Secret param.Field[string] `json:"secret"`
}

func (DestinationWebhookNewParams) MarshalJSON

func (r DestinationWebhookNewParams) MarshalJSON() (data []byte, err error)

type DestinationWebhookNewResponse

type DestinationWebhookNewResponse struct {
	// UUID
	ID   string                            `json:"id"`
	JSON destinationWebhookNewResponseJSON `json:"-"`
}

func (*DestinationWebhookNewResponse) UnmarshalJSON

func (r *DestinationWebhookNewResponse) UnmarshalJSON(data []byte) (err error)

type DestinationWebhookNewResponseEnvelope

type DestinationWebhookNewResponseEnvelope struct {
	Errors   []DestinationWebhookNewResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []DestinationWebhookNewResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful
	Success DestinationWebhookNewResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  DestinationWebhookNewResponse                `json:"result"`
	JSON    destinationWebhookNewResponseEnvelopeJSON    `json:"-"`
}

func (*DestinationWebhookNewResponseEnvelope) UnmarshalJSON

func (r *DestinationWebhookNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type DestinationWebhookNewResponseEnvelopeErrors

type DestinationWebhookNewResponseEnvelopeErrors struct {
	Message string                                          `json:"message" api:"required"`
	Code    int64                                           `json:"code"`
	JSON    destinationWebhookNewResponseEnvelopeErrorsJSON `json:"-"`
}

func (*DestinationWebhookNewResponseEnvelopeErrors) UnmarshalJSON

func (r *DestinationWebhookNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)

type DestinationWebhookNewResponseEnvelopeMessages

type DestinationWebhookNewResponseEnvelopeMessages struct {
	Message string                                            `json:"message" api:"required"`
	Code    int64                                             `json:"code"`
	JSON    destinationWebhookNewResponseEnvelopeMessagesJSON `json:"-"`
}

func (*DestinationWebhookNewResponseEnvelopeMessages) UnmarshalJSON

func (r *DestinationWebhookNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)

type DestinationWebhookNewResponseEnvelopeSuccess

type DestinationWebhookNewResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	DestinationWebhookNewResponseEnvelopeSuccessTrue DestinationWebhookNewResponseEnvelopeSuccess = true
)

func (DestinationWebhookNewResponseEnvelopeSuccess) IsKnown

type DestinationWebhookService

type DestinationWebhookService struct {
	Options []option.RequestOption
}

DestinationWebhookService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDestinationWebhookService method instead.

func NewDestinationWebhookService

func NewDestinationWebhookService(opts ...option.RequestOption) (r *DestinationWebhookService)

NewDestinationWebhookService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*DestinationWebhookService) Delete

Delete a configured webhook destination.

func (*DestinationWebhookService) Get

Get details for a single webhooks destination.

func (*DestinationWebhookService) List

Gets a list of all configured webhook destinations.

func (*DestinationWebhookService) ListAutoPaging

Gets a list of all configured webhook destinations.

func (*DestinationWebhookService) New

Creates a new webhook destination.

func (*DestinationWebhookService) Update

Update a webhook destination. Only `name` can be updated. `url` and `secret` are immutable; to change them, delete the webhook and create a new one.

type DestinationWebhookUpdateParams

type DestinationWebhookUpdateParams struct {
	// The account id
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// The name of the webhook destination. This will be included in the request body
	// when you receive a webhook notification.
	Name param.Field[string] `json:"name" api:"required"`
}

func (DestinationWebhookUpdateParams) MarshalJSON

func (r DestinationWebhookUpdateParams) MarshalJSON() (data []byte, err error)

type DestinationWebhookUpdateResponse

type DestinationWebhookUpdateResponse struct {
	// UUID
	ID   string                               `json:"id"`
	JSON destinationWebhookUpdateResponseJSON `json:"-"`
}

func (*DestinationWebhookUpdateResponse) UnmarshalJSON

func (r *DestinationWebhookUpdateResponse) UnmarshalJSON(data []byte) (err error)

type DestinationWebhookUpdateResponseEnvelope

type DestinationWebhookUpdateResponseEnvelope struct {
	Errors   []DestinationWebhookUpdateResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []DestinationWebhookUpdateResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful
	Success DestinationWebhookUpdateResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  DestinationWebhookUpdateResponse                `json:"result"`
	JSON    destinationWebhookUpdateResponseEnvelopeJSON    `json:"-"`
}

func (*DestinationWebhookUpdateResponseEnvelope) UnmarshalJSON

func (r *DestinationWebhookUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type DestinationWebhookUpdateResponseEnvelopeErrors

type DestinationWebhookUpdateResponseEnvelopeErrors struct {
	Message string                                             `json:"message" api:"required"`
	Code    int64                                              `json:"code"`
	JSON    destinationWebhookUpdateResponseEnvelopeErrorsJSON `json:"-"`
}

func (*DestinationWebhookUpdateResponseEnvelopeErrors) UnmarshalJSON

func (r *DestinationWebhookUpdateResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)

type DestinationWebhookUpdateResponseEnvelopeMessages

type DestinationWebhookUpdateResponseEnvelopeMessages struct {
	Message string                                               `json:"message" api:"required"`
	Code    int64                                                `json:"code"`
	JSON    destinationWebhookUpdateResponseEnvelopeMessagesJSON `json:"-"`
}

func (*DestinationWebhookUpdateResponseEnvelopeMessages) UnmarshalJSON

func (r *DestinationWebhookUpdateResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)

type DestinationWebhookUpdateResponseEnvelopeSuccess

type DestinationWebhookUpdateResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	DestinationWebhookUpdateResponseEnvelopeSuccessTrue DestinationWebhookUpdateResponseEnvelopeSuccess = true
)

func (DestinationWebhookUpdateResponseEnvelopeSuccess) IsKnown

type Error

type Error = apierror.Error

type ErrorData

type ErrorData = shared.ErrorData

This is an alias to an internal type.

type ErrorDataSource

type ErrorDataSource = shared.ErrorDataSource

This is an alias to an internal type.

type History

type History struct {
	// UUID
	ID string `json:"id"`
	// Message body included in the notification sent.
	AlertBody string `json:"alert_body"`
	// Type of notification that has been dispatched.
	AlertType string `json:"alert_type"`
	// Description of the notification policy (if present).
	Description string `json:"description"`
	// The mechanism to which the notification has been dispatched.
	Mechanism string `json:"mechanism"`
	// The type of mechanism to which the notification has been dispatched. This can be
	// email/pagerduty/webhook based on the mechanism configured.
	MechanismType HistoryMechanismType `json:"mechanism_type"`
	// Name of the policy.
	Name string `json:"name"`
	// The unique identifier of a notification policy
	PolicyID string `json:"policy_id"`
	// Timestamp of when the notification was dispatched in ISO 8601 format.
	Sent time.Time   `json:"sent" format:"date-time"`
	JSON historyJSON `json:"-"`
}

func (*History) UnmarshalJSON

func (r *History) UnmarshalJSON(data []byte) (err error)

type HistoryListParams

type HistoryListParams struct {
	// The account id
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// Limit the returned results to history records older than the specified date.
	// This must be a timestamp that conforms to RFC3339.
	Before param.Field[time.Time] `query:"before" format:"date-time"`
	// Page number of paginated results.
	Page param.Field[float64] `query:"page"`
	// Number of items per page.
	PerPage param.Field[float64] `query:"per_page"`
	// Limit the returned results to history records newer than the specified date.
	// This must be a timestamp that conforms to RFC3339.
	Since param.Field[time.Time] `query:"since" format:"date-time"`
}

func (HistoryListParams) URLQuery

func (r HistoryListParams) URLQuery() (v url.Values)

URLQuery serializes HistoryListParams's query parameters as `url.Values`.

type HistoryMechanismType

type HistoryMechanismType string

The type of mechanism to which the notification has been dispatched. This can be email/pagerduty/webhook based on the mechanism configured.

const (
	HistoryMechanismTypeEmail     HistoryMechanismType = "email"
	HistoryMechanismTypePagerduty HistoryMechanismType = "pagerduty"
	HistoryMechanismTypeWebhook   HistoryMechanismType = "webhook"
)

func (HistoryMechanismType) IsKnown

func (r HistoryMechanismType) IsKnown() bool

type HistoryService

type HistoryService struct {
	Options []option.RequestOption
}

HistoryService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewHistoryService method instead.

func NewHistoryService

func NewHistoryService(opts ...option.RequestOption) (r *HistoryService)

NewHistoryService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*HistoryService) List

Gets a list of history records for notifications sent to an account. The records are displayed for last `x` number of days based on the zone plan (free = 30, pro = 30, biz = 30, ent = 90).

func (*HistoryService) ListAutoPaging

Gets a list of history records for notifications sent to an account. The records are displayed for last `x` number of days based on the zone plan (free = 30, pro = 30, biz = 30, ent = 90).

type Mechanism

type Mechanism struct {
	Email     []MechanismEmail     `json:"email"`
	Pagerduty []MechanismPagerduty `json:"pagerduty"`
	Webhooks  []MechanismWebhook   `json:"webhooks"`
	JSON      mechanismJSON        `json:"-"`
}

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

func (*Mechanism) UnmarshalJSON

func (r *Mechanism) UnmarshalJSON(data []byte) (err error)

type MechanismEmail

type MechanismEmail struct {
	// The email address
	ID   string             `json:"id"`
	JSON mechanismEmailJSON `json:"-"`
}

func (*MechanismEmail) UnmarshalJSON

func (r *MechanismEmail) UnmarshalJSON(data []byte) (err error)

type MechanismEmailParam

type MechanismEmailParam struct {
	// The email address
	ID param.Field[string] `json:"id"`
}

func (MechanismEmailParam) MarshalJSON

func (r MechanismEmailParam) MarshalJSON() (data []byte, err error)

type MechanismPagerduty

type MechanismPagerduty struct {
	// UUID
	ID   string                 `json:"id"`
	JSON mechanismPagerdutyJSON `json:"-"`
}

func (*MechanismPagerduty) UnmarshalJSON

func (r *MechanismPagerduty) UnmarshalJSON(data []byte) (err error)

type MechanismPagerdutyParam

type MechanismPagerdutyParam struct {
	// UUID
	ID param.Field[string] `json:"id"`
}

func (MechanismPagerdutyParam) MarshalJSON

func (r MechanismPagerdutyParam) MarshalJSON() (data []byte, err error)

type MechanismParam

type MechanismParam struct {
	Email     param.Field[[]MechanismEmailParam]     `json:"email"`
	Pagerduty param.Field[[]MechanismPagerdutyParam] `json:"pagerduty"`
	Webhooks  param.Field[[]MechanismWebhookParam]   `json:"webhooks"`
}

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

func (MechanismParam) MarshalJSON

func (r MechanismParam) MarshalJSON() (data []byte, err error)

type MechanismWebhook

type MechanismWebhook struct {
	// UUID
	ID   string               `json:"id"`
	JSON mechanismWebhookJSON `json:"-"`
}

func (*MechanismWebhook) UnmarshalJSON

func (r *MechanismWebhook) UnmarshalJSON(data []byte) (err error)

type MechanismWebhookParam

type MechanismWebhookParam struct {
	// UUID
	ID param.Field[string] `json:"id"`
}

func (MechanismWebhookParam) MarshalJSON

func (r MechanismWebhookParam) MarshalJSON() (data []byte, err error)

type Member

type Member = shared.Member

This is an alias to an internal type.

type MemberPoliciesAccess

type MemberPoliciesAccess = shared.MemberPoliciesAccess

Allow or deny operations against the resources.

This is an alias to an internal type.

type MemberPoliciesPermissionGroup

type MemberPoliciesPermissionGroup = shared.MemberPoliciesPermissionGroup

A named group of permissions that map to a group of operations against resources.

This is an alias to an internal type.

type MemberPoliciesPermissionGroupsMeta

type MemberPoliciesPermissionGroupsMeta = shared.MemberPoliciesPermissionGroupsMeta

Attributes associated to the permission group.

This is an alias to an internal type.

type MemberPoliciesResourceGroup

type MemberPoliciesResourceGroup = shared.MemberPoliciesResourceGroup

A group of scoped resources.

This is an alias to an internal type.

type MemberPoliciesResourceGroupsMeta

type MemberPoliciesResourceGroupsMeta = shared.MemberPoliciesResourceGroupsMeta

Attributes associated to the resource group.

This is an alias to an internal type.

type MemberPoliciesResourceGroupsScope

type MemberPoliciesResourceGroupsScope = shared.MemberPoliciesResourceGroupsScope

The scope associated to the resource group

This is an alias to an internal type.

type MemberPoliciesResourceGroupsScopeObject

type MemberPoliciesResourceGroupsScopeObject = shared.MemberPoliciesResourceGroupsScopeObject

A scope object represents any resource that can have actions applied against invite.

This is an alias to an internal type.

type MemberPolicy

type MemberPolicy = shared.MemberPolicy

This is an alias to an internal type.

type MemberStatus

type MemberStatus = shared.MemberStatus

A member's status in the account.

This is an alias to an internal type.

type MemberUser

type MemberUser = shared.MemberUser

Details of the user associated to the membership.

This is an alias to an internal type.

type Pagerduty

type Pagerduty struct {
	// UUID
	ID string `json:"id"`
	// The name of the pagerduty service.
	Name string        `json:"name"`
	JSON pagerdutyJSON `json:"-"`
}

func (*Pagerduty) UnmarshalJSON

func (r *Pagerduty) UnmarshalJSON(data []byte) (err error)

type Permission

type Permission = shared.Permission

This is an alias to an internal type.

type PermissionGrant

type PermissionGrant = shared.PermissionGrant

This is an alias to an internal type.

type PermissionGrantParam

type PermissionGrantParam = shared.PermissionGrantParam

This is an alias to an internal type.

type Policy

type Policy struct {
	// The unique identifier of a notification policy
	ID string `json:"id"`
	// Optional specification of how often to re-alert from the same incident, not
	// support on all alert types.
	AlertInterval string `json:"alert_interval"`
	// 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. This enum lists every alert type, not the ones a given account
	// can create, since some types depend on entitlements or account type. To get the
	// alert types an account can create, call
	// `GET /accounts/{account_id}/alerting/v3/available_alerts`.
	AlertType PolicyAlertType `json:"alert_type"`
	Created   time.Time       `json:"created" format:"date-time"`
	// Optional description for the Notification policy.
	Description string `json:"description"`
	// Whether or not the Notification policy is enabled.
	Enabled bool `json:"enabled"`
	// 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.
	Filters PolicyFilter `json:"filters"`
	// List of IDs that will be used when dispatching a notification. IDs for email
	// type will be the email address.
	Mechanisms Mechanism `json:"mechanisms"`
	Modified   time.Time `json:"modified" format:"date-time"`
	// Name of the policy.
	Name string     `json:"name"`
	JSON policyJSON `json:"-"`
}

func (*Policy) UnmarshalJSON

func (r *Policy) UnmarshalJSON(data []byte) (err error)

type PolicyAlertType

type PolicyAlertType string

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. This enum lists every alert type, not the ones a given account can create, since some types depend on entitlements or account type. To get the alert types an account can create, call `GET /accounts/{account_id}/alerting/v3/available_alerts`.

const (
	PolicyAlertTypeAbuseReportAlert                              PolicyAlertType = "abuse_report_alert"
	PolicyAlertTypeAccessCustomCertificateExpirationType         PolicyAlertType = "access_custom_certificate_expiration_type"
	PolicyAlertTypeAdvancedDDoSAttackL4Alert                     PolicyAlertType = "advanced_ddos_attack_l4_alert"
	PolicyAlertTypeAdvancedDDoSAttackL7Alert                     PolicyAlertType = "advanced_ddos_attack_l7_alert"
	PolicyAlertTypeAdvancedHTTPAlertError                        PolicyAlertType = "advanced_http_alert_error"
	PolicyAlertTypeAttackLifecycle                               PolicyAlertType = "attack_lifecycle"
	PolicyAlertTypeBGPAdvertisementChange                        PolicyAlertType = "bgp_advertisement_change"
	PolicyAlertTypeBGPHijackNotification                         PolicyAlertType = "bgp_hijack_notification"
	PolicyAlertTypeBillingBudgetAlert                            PolicyAlertType = "billing_budget_alert"
	PolicyAlertTypeBillingUsageAlert                             PolicyAlertType = "billing_usage_alert"
	PolicyAlertTypeBlockNotificationBlockRemoved                 PolicyAlertType = "block_notification_block_removed"
	PolicyAlertTypeBlockNotificationNewBlock                     PolicyAlertType = "block_notification_new_block"
	PolicyAlertTypeBlockNotificationReviewRejected               PolicyAlertType = "block_notification_review_rejected"
	PolicyAlertTypeBotTrafficBasicAlert                          PolicyAlertType = "bot_traffic_basic_alert"
	PolicyAlertTypeBrandProtectionAlert                          PolicyAlertType = "brand_protection_alert"
	PolicyAlertTypeBrandProtectionDigest                         PolicyAlertType = "brand_protection_digest"
	PolicyAlertTypeCasbWeeklyDigest                              PolicyAlertType = "casb_weekly_digest"
	PolicyAlertTypeClickhouseAlertFwAnomaly                      PolicyAlertType = "clickhouse_alert_fw_anomaly"
	PolicyAlertTypeClickhouseAlertFwEntAnomaly                   PolicyAlertType = "clickhouse_alert_fw_ent_anomaly"
	PolicyAlertTypeClosedPortScanAlert                           PolicyAlertType = "closed_port_scan_alert"
	PolicyAlertTypeCloudforceOneRequestNotification              PolicyAlertType = "cloudforce_one_request_notification"
	PolicyAlertTypeCmdManagedDefenseNotification                 PolicyAlertType = "cmd_managed_defense_notification"
	PolicyAlertTypeCNIMaintenanceNotification                    PolicyAlertType = "cni_maintenance_notification"
	PolicyAlertTypeContainersSecurityAlert                       PolicyAlertType = "containers_security_alert"
	PolicyAlertTypeCustomAnalytics                               PolicyAlertType = "custom_analytics"
	PolicyAlertTypeCustomBotDetectionAlert                       PolicyAlertType = "custom_bot_detection_alert"
	PolicyAlertTypeCustomSSLCertificateEventType                 PolicyAlertType = "custom_ssl_certificate_event_type"
	PolicyAlertTypeDedicatedSSLCertificateEventType              PolicyAlertType = "dedicated_ssl_certificate_event_type"
	PolicyAlertTypeDeviceConnectivityAnomalyAlert                PolicyAlertType = "device_connectivity_anomaly_alert"
	PolicyAlertTypeDEXDeviceConnectivityAlert                    PolicyAlertType = "dex_device_connectivity_alert"
	PolicyAlertTypeDEXSyntheticTestAvailabilityAlert             PolicyAlertType = "dex_synthetic_test_availability_alert"
	PolicyAlertTypeDEXSyntheticTestLatencyAlert                  PolicyAlertType = "dex_synthetic_test_latency_alert"
	PolicyAlertTypeDosAttackL4                                   PolicyAlertType = "dos_attack_l4"
	PolicyAlertTypeDosAttackL7                                   PolicyAlertType = "dos_attack_l7"
	PolicyAlertTypeExecutiveCommunications                       PolicyAlertType = "executive_communications"
	PolicyAlertTypeExpiringServiceTokenAlert                     PolicyAlertType = "expiring_service_token_alert"
	PolicyAlertTypeFailingLogpushJobDisabledAlert                PolicyAlertType = "failing_logpush_job_disabled_alert"
	PolicyAlertTypeFbmAutoAdvertisement                          PolicyAlertType = "fbm_auto_advertisement"
	PolicyAlertTypeFbmDosdAttack                                 PolicyAlertType = "fbm_dosd_attack"
	PolicyAlertTypeFbmVolumetricAttack                           PolicyAlertType = "fbm_volumetric_attack"
	PolicyAlertTypeHealthCheckStatusNotification                 PolicyAlertType = "health_check_status_notification"
	PolicyAlertTypeHostnameAopCustomCertificateExpirationType    PolicyAlertType = "hostname_aop_custom_certificate_expiration_type"
	PolicyAlertTypeHTTPAlertEdgeError                            PolicyAlertType = "http_alert_edge_error"
	PolicyAlertTypeHTTPAlertOriginError                          PolicyAlertType = "http_alert_origin_error"
	PolicyAlertTypeImageNotification                             PolicyAlertType = "image_notification"
	PolicyAlertTypeImageResizingNotification                     PolicyAlertType = "image_resizing_notification"
	PolicyAlertTypeIncidentAlert                                 PolicyAlertType = "incident_alert"
	PolicyAlertTypeLeakedServiceTokenAlert                       PolicyAlertType = "leaked_service_token_alert"
	PolicyAlertTypeLoadBalancingHealthAlert                      PolicyAlertType = "load_balancing_health_alert"
	PolicyAlertTypeLoadBalancingPoolEnablementAlert              PolicyAlertType = "load_balancing_pool_enablement_alert"
	PolicyAlertTypeLogExplorerIngestRateLimit                    PolicyAlertType = "log_explorer_ingest_rate_limit"
	PolicyAlertTypeLogExplorerScheduledQueryResultsAlert         PolicyAlertType = "log_explorer_scheduled_query_results_alert"
	PolicyAlertTypeLogoMatchAlert                                PolicyAlertType = "logo_match_alert"
	PolicyAlertTypeMagicEndpointHealthcheckAlert                 PolicyAlertType = "magic_endpoint_healthcheck_alert"
	PolicyAlertTypeMagicTunnelHealthCheckEvent                   PolicyAlertType = "magic_tunnel_health_check_event"
	PolicyAlertTypeMagicWANTunnelHealth                          PolicyAlertType = "magic_wan_tunnel_health"
	PolicyAlertTypeMaintenanceEventNotification                  PolicyAlertType = "maintenance_event_notification"
	PolicyAlertTypeMTLSCertificateStoreCertificateExpirationType PolicyAlertType = "mtls_certificate_store_certificate_expiration_type"
	PolicyAlertTypeOpenPortScanAlert                             PolicyAlertType = "open_port_scan_alert"
	PolicyAlertTypePagesEventAlert                               PolicyAlertType = "pages_event_alert"
	PolicyAlertTypeRadarNotification                             PolicyAlertType = "radar_notification"
	PolicyAlertTypeRealOriginMonitoring                          PolicyAlertType = "real_origin_monitoring"
	PolicyAlertTypeScriptmonitorAlertNewCodeChangeDetections     PolicyAlertType = "scriptmonitor_alert_new_code_change_detections"
	PolicyAlertTypeScriptmonitorAlertNewHosts                    PolicyAlertType = "scriptmonitor_alert_new_hosts"
	PolicyAlertTypeScriptmonitorAlertNewMaliciousHosts           PolicyAlertType = "scriptmonitor_alert_new_malicious_hosts"
	PolicyAlertTypeScriptmonitorAlertNewMaliciousScripts         PolicyAlertType = "scriptmonitor_alert_new_malicious_scripts"
	PolicyAlertTypeScriptmonitorAlertNewMaliciousURL             PolicyAlertType = "scriptmonitor_alert_new_malicious_url"
	PolicyAlertTypeScriptmonitorAlertNewMaxLengthResourceURL     PolicyAlertType = "scriptmonitor_alert_new_max_length_resource_url"
	PolicyAlertTypeScriptmonitorAlertNewResources                PolicyAlertType = "scriptmonitor_alert_new_resources"
	PolicyAlertTypeSecondaryDNSAllPrimariesFailing               PolicyAlertType = "secondary_dns_all_primaries_failing"
	PolicyAlertTypeSecondaryDNSPrimariesFailing                  PolicyAlertType = "secondary_dns_primaries_failing"
	PolicyAlertTypeSecondaryDNSWarning                           PolicyAlertType = "secondary_dns_warning"
	PolicyAlertTypeSecondaryDNSZoneSuccessfullyUpdated           PolicyAlertType = "secondary_dns_zone_successfully_updated"
	PolicyAlertTypeSecondaryDNSZoneValidationWarning             PolicyAlertType = "secondary_dns_zone_validation_warning"
	PolicyAlertTypeSecurityInsightsAlert                         PolicyAlertType = "security_insights_alert"
	PolicyAlertTypeSentinelAlert                                 PolicyAlertType = "sentinel_alert"
	PolicyAlertTypeStakeoutCredentialLeakAlert                   PolicyAlertType = "stakeout_credential_leak_alert"
	PolicyAlertTypeStakeoutSavedQueryDailyDigestAlert            PolicyAlertType = "stakeout_saved_query_daily_digest_alert"
	PolicyAlertTypeStakeoutSavedQueryImmediateAlert              PolicyAlertType = "stakeout_saved_query_immediate_alert"
	PolicyAlertTypeStreamLiveNotifications                       PolicyAlertType = "stream_live_notifications"
	PolicyAlertTypeSyntheticTestLatencyAlert                     PolicyAlertType = "synthetic_test_latency_alert"
	PolicyAlertTypeSyntheticTestLowAvailabilityAlert             PolicyAlertType = "synthetic_test_low_availability_alert"
	PolicyAlertTypeTrafficAnomaliesAlert                         PolicyAlertType = "traffic_anomalies_alert"
	PolicyAlertTypeTunnelHealthEvent                             PolicyAlertType = "tunnel_health_event"
	PolicyAlertTypeTunnelUpdateEvent                             PolicyAlertType = "tunnel_update_event"
	PolicyAlertTypeUniversalSSLEventType                         PolicyAlertType = "universal_ssl_event_type"
	PolicyAlertTypeWebAnalyticsMetricsUpdate                     PolicyAlertType = "web_analytics_metrics_update"
	PolicyAlertTypeWorkersForPlatformsSecurityAlert              PolicyAlertType = "workers_for_platforms_security_alert"
	PolicyAlertTypeWorkersObservabilityAlert                     PolicyAlertType = "workers_observability_alert"
	PolicyAlertTypeWorkersObservabilityRealTimeIssue             PolicyAlertType = "workers_observability_real_time_issue"
	PolicyAlertTypeZoneAopCustomCertificateExpirationType        PolicyAlertType = "zone_aop_custom_certificate_expiration_type"
)

func (PolicyAlertType) IsKnown

func (r PolicyAlertType) IsKnown() bool

type PolicyDeleteParams

type PolicyDeleteParams struct {
	// The account id
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type PolicyDeleteResponse

type PolicyDeleteResponse struct {
	Errors   []PolicyDeleteResponseError   `json:"errors" api:"required"`
	Messages []PolicyDeleteResponseMessage `json:"messages" api:"required"`
	// Whether the API call was successful
	Success    PolicyDeleteResponseSuccess    `json:"success" api:"required"`
	ResultInfo PolicyDeleteResponseResultInfo `json:"result_info"`
	JSON       policyDeleteResponseJSON       `json:"-"`
}

func (*PolicyDeleteResponse) UnmarshalJSON

func (r *PolicyDeleteResponse) UnmarshalJSON(data []byte) (err error)

type PolicyDeleteResponseError

type PolicyDeleteResponseError struct {
	Message string                        `json:"message" api:"required"`
	Code    int64                         `json:"code"`
	JSON    policyDeleteResponseErrorJSON `json:"-"`
}

func (*PolicyDeleteResponseError) UnmarshalJSON

func (r *PolicyDeleteResponseError) UnmarshalJSON(data []byte) (err error)

type PolicyDeleteResponseMessage

type PolicyDeleteResponseMessage struct {
	Message string                          `json:"message" api:"required"`
	Code    int64                           `json:"code"`
	JSON    policyDeleteResponseMessageJSON `json:"-"`
}

func (*PolicyDeleteResponseMessage) UnmarshalJSON

func (r *PolicyDeleteResponseMessage) UnmarshalJSON(data []byte) (err error)

type PolicyDeleteResponseResultInfo

type PolicyDeleteResponseResultInfo struct {
	// Total number of results for the requested service
	Count float64 `json:"count"`
	// Current page within paginated list of results
	Page float64 `json:"page"`
	// Number of results per page of results
	PerPage float64 `json:"per_page"`
	// Total results available without any search parameters
	TotalCount float64                            `json:"total_count"`
	JSON       policyDeleteResponseResultInfoJSON `json:"-"`
}

func (*PolicyDeleteResponseResultInfo) UnmarshalJSON

func (r *PolicyDeleteResponseResultInfo) UnmarshalJSON(data []byte) (err error)

type PolicyDeleteResponseSuccess

type PolicyDeleteResponseSuccess bool

Whether the API call was successful

const (
	PolicyDeleteResponseSuccessTrue PolicyDeleteResponseSuccess = true
)

func (PolicyDeleteResponseSuccess) IsKnown

func (r PolicyDeleteResponseSuccess) IsKnown() bool

type PolicyEmailDetailsParams

type PolicyEmailDetailsParams struct {
	// The account id
	AccountID param.Field[string] `path:"account_id" api:"required"`
	Token     param.Field[string] `query:"token" api:"required"`
	Email     param.Field[string] `query:"email" api:"required" format:"email"`
}

func (PolicyEmailDetailsParams) URLQuery

func (r PolicyEmailDetailsParams) URLQuery() (v url.Values)

URLQuery serializes PolicyEmailDetailsParams's query parameters as `url.Values`.

type PolicyEmailDetailsResponse

type PolicyEmailDetailsResponse struct {
	// The unique identifier of a notification policy
	ID    string `json:"id"`
	Token string `json:"token"`
	// The account id
	AccountID string `json:"account_id"`
	Email     string `json:"email" format:"email"`
	// Name of the policy.
	Name string                         `json:"name"`
	JSON policyEmailDetailsResponseJSON `json:"-"`
}

Response body for the GET show-unsubscribe-details endpoint. All fields are populated.

func (*PolicyEmailDetailsResponse) UnmarshalJSON

func (r *PolicyEmailDetailsResponse) UnmarshalJSON(data []byte) (err error)

type PolicyEmailDetailsResponseEnvelope

type PolicyEmailDetailsResponseEnvelope struct {
	Errors   []PolicyEmailDetailsResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []PolicyEmailDetailsResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful
	Success PolicyEmailDetailsResponseEnvelopeSuccess `json:"success" api:"required"`
	// Response body for the GET show-unsubscribe-details endpoint. All fields are
	// populated.
	Result PolicyEmailDetailsResponse             `json:"result"`
	JSON   policyEmailDetailsResponseEnvelopeJSON `json:"-"`
}

func (*PolicyEmailDetailsResponseEnvelope) UnmarshalJSON

func (r *PolicyEmailDetailsResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type PolicyEmailDetailsResponseEnvelopeErrors

type PolicyEmailDetailsResponseEnvelopeErrors struct {
	Message string                                       `json:"message" api:"required"`
	Code    int64                                        `json:"code"`
	JSON    policyEmailDetailsResponseEnvelopeErrorsJSON `json:"-"`
}

func (*PolicyEmailDetailsResponseEnvelopeErrors) UnmarshalJSON

func (r *PolicyEmailDetailsResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)

type PolicyEmailDetailsResponseEnvelopeMessages

type PolicyEmailDetailsResponseEnvelopeMessages struct {
	Message string                                         `json:"message" api:"required"`
	Code    int64                                          `json:"code"`
	JSON    policyEmailDetailsResponseEnvelopeMessagesJSON `json:"-"`
}

func (*PolicyEmailDetailsResponseEnvelopeMessages) UnmarshalJSON

func (r *PolicyEmailDetailsResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)

type PolicyEmailDetailsResponseEnvelopeSuccess

type PolicyEmailDetailsResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	PolicyEmailDetailsResponseEnvelopeSuccessTrue PolicyEmailDetailsResponseEnvelopeSuccess = true
)

func (PolicyEmailDetailsResponseEnvelopeSuccess) IsKnown

type PolicyEmailService

type PolicyEmailService struct {
	Options []option.RequestOption
}

PolicyEmailService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewPolicyEmailService method instead.

func NewPolicyEmailService

func NewPolicyEmailService(opts ...option.RequestOption) (r *PolicyEmailService)

NewPolicyEmailService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*PolicyEmailService) Details

Shows details for unsubscribing an email address from a notification policy.

func (*PolicyEmailService) Unsubscribe

Unsubscribes an email address from a notification policy.

type PolicyEmailUnsubscribeParams

type PolicyEmailUnsubscribeParams struct {
	// The account id
	AccountID param.Field[string] `path:"account_id" api:"required"`
	Token     param.Field[string] `query:"token" api:"required"`
	Email     param.Field[string] `query:"email" api:"required" format:"email"`
}

func (PolicyEmailUnsubscribeParams) URLQuery

func (r PolicyEmailUnsubscribeParams) URLQuery() (v url.Values)

URLQuery serializes PolicyEmailUnsubscribeParams's query parameters as `url.Values`.

type PolicyEmailUnsubscribeResponse

type PolicyEmailUnsubscribeResponse struct {
	// The unique identifier of a notification policy
	ID string `json:"id"`
	// The account id
	AccountID string                             `json:"account_id"`
	Email     string                             `json:"email" format:"email"`
	JSON      policyEmailUnsubscribeResponseJSON `json:"-"`
}

Response body for the POST unsubscribe endpoint. name and token are not returned.

func (*PolicyEmailUnsubscribeResponse) UnmarshalJSON

func (r *PolicyEmailUnsubscribeResponse) UnmarshalJSON(data []byte) (err error)

type PolicyEmailUnsubscribeResponseEnvelope

type PolicyEmailUnsubscribeResponseEnvelope struct {
	Errors   []PolicyEmailUnsubscribeResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []PolicyEmailUnsubscribeResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful
	Success PolicyEmailUnsubscribeResponseEnvelopeSuccess `json:"success" api:"required"`
	// Response body for the POST unsubscribe endpoint. name and token are not
	// returned.
	Result PolicyEmailUnsubscribeResponse             `json:"result"`
	JSON   policyEmailUnsubscribeResponseEnvelopeJSON `json:"-"`
}

func (*PolicyEmailUnsubscribeResponseEnvelope) UnmarshalJSON

func (r *PolicyEmailUnsubscribeResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type PolicyEmailUnsubscribeResponseEnvelopeErrors

type PolicyEmailUnsubscribeResponseEnvelopeErrors struct {
	Message string                                           `json:"message" api:"required"`
	Code    int64                                            `json:"code"`
	JSON    policyEmailUnsubscribeResponseEnvelopeErrorsJSON `json:"-"`
}

func (*PolicyEmailUnsubscribeResponseEnvelopeErrors) UnmarshalJSON

func (r *PolicyEmailUnsubscribeResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)

type PolicyEmailUnsubscribeResponseEnvelopeMessages

type PolicyEmailUnsubscribeResponseEnvelopeMessages struct {
	Message string                                             `json:"message" api:"required"`
	Code    int64                                              `json:"code"`
	JSON    policyEmailUnsubscribeResponseEnvelopeMessagesJSON `json:"-"`
}

func (*PolicyEmailUnsubscribeResponseEnvelopeMessages) UnmarshalJSON

func (r *PolicyEmailUnsubscribeResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)

type PolicyEmailUnsubscribeResponseEnvelopeSuccess

type PolicyEmailUnsubscribeResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	PolicyEmailUnsubscribeResponseEnvelopeSuccessTrue PolicyEmailUnsubscribeResponseEnvelopeSuccess = true
)

func (PolicyEmailUnsubscribeResponseEnvelopeSuccess) IsKnown

type PolicyFilter

type PolicyFilter struct {
	// Usage depends on specific alert type
	Actions []string `json:"actions"`
	// Used for configuring radar_notification
	AffectedASNs []string `json:"affected_asns"`
	// Used for configuring incident_alert
	AffectedComponents []string `json:"affected_components"`
	// Used for configuring radar_notification
	AffectedLocations []string `json:"affected_locations"`
	// Used for configuring maintenance_event_notification
	AirportCode []string `json:"airport_code"`
	// Usage depends on specific alert type
	AlertTriggerPreferences []string `json:"alert_trigger_preferences"`
	// Usage depends on specific alert type. Takes at most one value, a duration such
	// as `4h`. custom_analytics requires it when alert_trigger_preferences is slo,
	// zscore_spike, zscore_drop or zscore_spike_and_drop. There it must be at most
	// 24h, and for the z-score types at least six times
	// alert_trigger_preferences_short_window.
	AlertTriggerPreferencesLongWindow []string `json:"alert_trigger_preferences_long_window"`
	// Usage depends on specific alert type. Takes at most one value, a number as a
	// string.
	AlertTriggerPreferencesMinimumThreshold []string `json:"alert_trigger_preferences_minimum_threshold"`
	// Used for configuring custom_analytics, which requires it. Takes exactly one
	// value, the operator that compares the result with
	// alert_trigger_preferences_value. It must be `<` unless alert_trigger_preferences
	// is threshold.
	AlertTriggerPreferencesOperator []PolicyFilterAlertTriggerPreferencesOperator `json:"alert_trigger_preferences_operator"`
	// Usage depends on specific alert type. Takes at most one value, a duration such
	// as `5m`. custom_analytics requires it, and it must be at least 1m there.
	// queues_lag_alert requires it, at least 5m.
	AlertTriggerPreferencesShortWindow []string `json:"alert_trigger_preferences_short_window"`
	// Usage depends on specific alert type
	AlertTriggerPreferencesValue []string `json:"alert_trigger_preferences_value"`
	// Used for configuring magic_endpoint_healthcheck_alert. Takes one or more health
	// check IDs, each a UUID. That alert type requires check_id together with
	// alert_trigger_preferences set to slo, a numeric alert_trigger_preferences_value,
	// and selectors set to failures.
	CheckID []string `json:"check_id" format:"uuid"`
	// Used for configuring load_balancing_pool_enablement_alert
	Enabled []string `json:"enabled"`
	// Used for configuring pages_event_alert
	Environment []string `json:"environment"`
	// Used for configuring pages_event_alert
	Event []string `json:"event"`
	// Used for configuring load_balancing_health_alert
	EventSource []string `json:"event_source"`
	// Usage depends on specific alert type
	EventType []string `json:"event_type"`
	// Used for configuring custom_analytics when source is sql_api. Other sources
	// reject it. Takes at most one value, how often the query runs, as a duration in
	// whole seconds such as `5m`. It can't be shorter than the minimum for the query,
	// which is 1m, or 10m for Log Explorer datasets. If it's omitted, the API sets it
	// to that minimum.
	ExecutionInterval []string `json:"execution_interval"`
	// Usage depends on specific alert type
	GroupBy []string `json:"group_by"`
	// Used for configuring health_check_status_notification
	HealthCheckID []string `json:"health_check_id"`
	// Used for configuring incident_alert
	IncidentImpact []PolicyFilterIncidentImpact `json:"incident_impact"`
	// Used for configuring stream_live_notifications
	InputID []string `json:"input_id"`
	// Used for configuring security_insights_alert
	InsightClass []string `json:"insight_class"`
	// Used for configuring billing_usage_alert
	Limit []string `json:"limit"`
	// Used for configuring logo_match_alert
	LogoTag []string `json:"logo_tag"`
	// Used for configuring advanced_ddos_attack_l4_alert
	MegabitsPerSecond []string `json:"megabits_per_second"`
	// Used for configuring load_balancing_health_alert
	NewHealth []string `json:"new_health"`
	// Used for configuring tunnel_health_event
	NewStatus []string `json:"new_status"`
	// Used for configuring advanced_ddos_attack_l4_alert
	PacketsPerSecond []string `json:"packets_per_second"`
	// Usage depends on specific alert type
	PoolID []string `json:"pool_id"`
	// Usage depends on specific alert type
	POPNames []string `json:"pop_names"`
	// Used for configuring billing_usage_alert
	Product []string `json:"product"`
	// Used for configuring pages_event_alert
	ProjectID []string `json:"project_id"`
	// Used for configuring advanced_ddos_attack_l4_alert
	Protocol []string `json:"protocol"`
	// Used for configuring stakeout_saved_query_daily_digest_alert and
	// stakeout_saved_query_immediate_alert, which require it. Takes exactly one value,
	// the saved query ID.
	QueryID []string `json:"query_id"`
	// Usage depends on specific alert type
	QueryTag []string `json:"query_tag"`
	// Used for configuring advanced_ddos_attack_l7_alert
	RequestsPerSecond []string `json:"requests_per_second"`
	// Usage depends on specific alert type
	Selectors []string `json:"selectors"`
	// Used for configuring clickhouse_alert_fw_ent_anomaly
	Services []string `json:"services"`
	// Usage depends on specific alert type
	Slo []string `json:"slo"`
	// Used for configuring custom_analytics, which requires it. Takes exactly one
	// value, the dataset the alert queries.
	Source []PolicyFilterSource `json:"source"`
	// Used for configuring health_check_status_notification
	Status []string `json:"status"`
	// Used for configuring advanced_ddos_attack_l7_alert
	TargetHostname []string `json:"target_hostname"`
	// Used for configuring advanced_ddos_attack_l4_alert
	TargetIP []string `json:"target_ip"`
	// Used for configuring advanced_ddos_attack_l7_alert
	TargetZoneName []string `json:"target_zone_name"`
	// Access service token IDs to include for expiring_service_token_alert. Omit this
	// property to include all current and future service tokens.
	TokenID []string `json:"token_id"`
	// Used for configuring billing_budget_alert. Takes exactly one value, the budget
	// threshold in US dollars, as a string greater than zero.
	TotalSpendDollars []string `json:"total_spend_dollars"`
	// Used for configuring traffic_anomalies_alert
	TrafficExclusions []PolicyFilterTrafficExclusion `json:"traffic_exclusions"`
	// Used for configuring tunnel_health_event
	TunnelID []string `json:"tunnel_id"`
	// Usage depends on specific alert type
	TunnelName []string `json:"tunnel_name"`
	// Usage depends on specific alert type
	Type []string `json:"type"`
	// Usage depends on specific alert type
	Where []string `json:"where"`
	// Usage depends on specific alert type
	Zones []string         `json:"zones"`
	JSON  policyFilterJSON `json:"-"`
}

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.

func (*PolicyFilter) UnmarshalJSON

func (r *PolicyFilter) UnmarshalJSON(data []byte) (err error)

type PolicyFilterAlertTriggerPreferencesOperator

type PolicyFilterAlertTriggerPreferencesOperator string
const (
	PolicyFilterAlertTriggerPreferencesOperatorLess            PolicyFilterAlertTriggerPreferencesOperator = "<"
	PolicyFilterAlertTriggerPreferencesOperatorGreater         PolicyFilterAlertTriggerPreferencesOperator = ">"
	PolicyFilterAlertTriggerPreferencesOperatorLessOrEquals    PolicyFilterAlertTriggerPreferencesOperator = "<="
	PolicyFilterAlertTriggerPreferencesOperatorGreaterOrEquals PolicyFilterAlertTriggerPreferencesOperator = ">="
	PolicyFilterAlertTriggerPreferencesOperatorEquals          PolicyFilterAlertTriggerPreferencesOperator = "=="
	PolicyFilterAlertTriggerPreferencesOperatorNotEquals       PolicyFilterAlertTriggerPreferencesOperator = "!="
)

func (PolicyFilterAlertTriggerPreferencesOperator) IsKnown

type PolicyFilterIncidentImpact

type PolicyFilterIncidentImpact string
const (
	PolicyFilterIncidentImpactIncidentImpactNone     PolicyFilterIncidentImpact = "INCIDENT_IMPACT_NONE"
	PolicyFilterIncidentImpactIncidentImpactMinor    PolicyFilterIncidentImpact = "INCIDENT_IMPACT_MINOR"
	PolicyFilterIncidentImpactIncidentImpactMajor    PolicyFilterIncidentImpact = "INCIDENT_IMPACT_MAJOR"
	PolicyFilterIncidentImpactIncidentImpactCritical PolicyFilterIncidentImpact = "INCIDENT_IMPACT_CRITICAL"
)

func (PolicyFilterIncidentImpact) IsKnown

func (r PolicyFilterIncidentImpact) IsKnown() bool

type PolicyFilterParam

type PolicyFilterParam struct {
	// Usage depends on specific alert type
	Actions param.Field[[]string] `json:"actions"`
	// Used for configuring radar_notification
	AffectedASNs param.Field[[]string] `json:"affected_asns"`
	// Used for configuring incident_alert
	AffectedComponents param.Field[[]string] `json:"affected_components"`
	// Used for configuring radar_notification
	AffectedLocations param.Field[[]string] `json:"affected_locations"`
	// Used for configuring maintenance_event_notification
	AirportCode param.Field[[]string] `json:"airport_code"`
	// Usage depends on specific alert type
	AlertTriggerPreferences param.Field[[]string] `json:"alert_trigger_preferences"`
	// Usage depends on specific alert type. Takes at most one value, a duration such
	// as `4h`. custom_analytics requires it when alert_trigger_preferences is slo,
	// zscore_spike, zscore_drop or zscore_spike_and_drop. There it must be at most
	// 24h, and for the z-score types at least six times
	// alert_trigger_preferences_short_window.
	AlertTriggerPreferencesLongWindow param.Field[[]string] `json:"alert_trigger_preferences_long_window"`
	// Usage depends on specific alert type. Takes at most one value, a number as a
	// string.
	AlertTriggerPreferencesMinimumThreshold param.Field[[]string] `json:"alert_trigger_preferences_minimum_threshold"`
	// Used for configuring custom_analytics, which requires it. Takes exactly one
	// value, the operator that compares the result with
	// alert_trigger_preferences_value. It must be `<` unless alert_trigger_preferences
	// is threshold.
	AlertTriggerPreferencesOperator param.Field[[]PolicyFilterAlertTriggerPreferencesOperator] `json:"alert_trigger_preferences_operator"`
	// Usage depends on specific alert type. Takes at most one value, a duration such
	// as `5m`. custom_analytics requires it, and it must be at least 1m there.
	// queues_lag_alert requires it, at least 5m.
	AlertTriggerPreferencesShortWindow param.Field[[]string] `json:"alert_trigger_preferences_short_window"`
	// Usage depends on specific alert type
	AlertTriggerPreferencesValue param.Field[[]string] `json:"alert_trigger_preferences_value"`
	// Used for configuring magic_endpoint_healthcheck_alert. Takes one or more health
	// check IDs, each a UUID. That alert type requires check_id together with
	// alert_trigger_preferences set to slo, a numeric alert_trigger_preferences_value,
	// and selectors set to failures.
	CheckID param.Field[[]string] `json:"check_id" format:"uuid"`
	// Used for configuring load_balancing_pool_enablement_alert
	Enabled param.Field[[]string] `json:"enabled"`
	// Used for configuring pages_event_alert
	Environment param.Field[[]string] `json:"environment"`
	// Used for configuring pages_event_alert
	Event param.Field[[]string] `json:"event"`
	// Used for configuring load_balancing_health_alert
	EventSource param.Field[[]string] `json:"event_source"`
	// Usage depends on specific alert type
	EventType param.Field[[]string] `json:"event_type"`
	// Used for configuring custom_analytics when source is sql_api. Other sources
	// reject it. Takes at most one value, how often the query runs, as a duration in
	// whole seconds such as `5m`. It can't be shorter than the minimum for the query,
	// which is 1m, or 10m for Log Explorer datasets. If it's omitted, the API sets it
	// to that minimum.
	ExecutionInterval param.Field[[]string] `json:"execution_interval"`
	// Usage depends on specific alert type
	GroupBy param.Field[[]string] `json:"group_by"`
	// Used for configuring health_check_status_notification
	HealthCheckID param.Field[[]string] `json:"health_check_id"`
	// Used for configuring incident_alert
	IncidentImpact param.Field[[]PolicyFilterIncidentImpact] `json:"incident_impact"`
	// Used for configuring stream_live_notifications
	InputID param.Field[[]string] `json:"input_id"`
	// Used for configuring security_insights_alert
	InsightClass param.Field[[]string] `json:"insight_class"`
	// Used for configuring billing_usage_alert
	Limit param.Field[[]string] `json:"limit"`
	// Used for configuring logo_match_alert
	LogoTag param.Field[[]string] `json:"logo_tag"`
	// Used for configuring advanced_ddos_attack_l4_alert
	MegabitsPerSecond param.Field[[]string] `json:"megabits_per_second"`
	// Used for configuring load_balancing_health_alert
	NewHealth param.Field[[]string] `json:"new_health"`
	// Used for configuring tunnel_health_event
	NewStatus param.Field[[]string] `json:"new_status"`
	// Used for configuring advanced_ddos_attack_l4_alert
	PacketsPerSecond param.Field[[]string] `json:"packets_per_second"`
	// Usage depends on specific alert type
	PoolID param.Field[[]string] `json:"pool_id"`
	// Usage depends on specific alert type
	POPNames param.Field[[]string] `json:"pop_names"`
	// Used for configuring billing_usage_alert
	Product param.Field[[]string] `json:"product"`
	// Used for configuring pages_event_alert
	ProjectID param.Field[[]string] `json:"project_id"`
	// Used for configuring advanced_ddos_attack_l4_alert
	Protocol param.Field[[]string] `json:"protocol"`
	// Used for configuring stakeout_saved_query_daily_digest_alert and
	// stakeout_saved_query_immediate_alert, which require it. Takes exactly one value,
	// the saved query ID.
	QueryID param.Field[[]string] `json:"query_id"`
	// Usage depends on specific alert type
	QueryTag param.Field[[]string] `json:"query_tag"`
	// Used for configuring advanced_ddos_attack_l7_alert
	RequestsPerSecond param.Field[[]string] `json:"requests_per_second"`
	// Usage depends on specific alert type
	Selectors param.Field[[]string] `json:"selectors"`
	// Used for configuring clickhouse_alert_fw_ent_anomaly
	Services param.Field[[]string] `json:"services"`
	// Usage depends on specific alert type
	Slo param.Field[[]string] `json:"slo"`
	// Used for configuring custom_analytics, which requires it. Takes exactly one
	// value, the dataset the alert queries.
	Source param.Field[[]PolicyFilterSource] `json:"source"`
	// Used for configuring health_check_status_notification
	Status param.Field[[]string] `json:"status"`
	// Used for configuring advanced_ddos_attack_l7_alert
	TargetHostname param.Field[[]string] `json:"target_hostname"`
	// Used for configuring advanced_ddos_attack_l4_alert
	TargetIP param.Field[[]string] `json:"target_ip"`
	// Used for configuring advanced_ddos_attack_l7_alert
	TargetZoneName param.Field[[]string] `json:"target_zone_name"`
	// Access service token IDs to include for expiring_service_token_alert. Omit this
	// property to include all current and future service tokens.
	TokenID param.Field[[]string] `json:"token_id"`
	// Used for configuring billing_budget_alert. Takes exactly one value, the budget
	// threshold in US dollars, as a string greater than zero.
	TotalSpendDollars param.Field[[]string] `json:"total_spend_dollars"`
	// Used for configuring traffic_anomalies_alert
	TrafficExclusions param.Field[[]PolicyFilterTrafficExclusion] `json:"traffic_exclusions"`
	// Used for configuring tunnel_health_event
	TunnelID param.Field[[]string] `json:"tunnel_id"`
	// Usage depends on specific alert type
	TunnelName param.Field[[]string] `json:"tunnel_name"`
	// Usage depends on specific alert type
	Type param.Field[[]string] `json:"type"`
	// Usage depends on specific alert type
	Where param.Field[[]string] `json:"where"`
	// Usage depends on specific alert type
	Zones param.Field[[]string] `json:"zones"`
}

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.

func (PolicyFilterParam) MarshalJSON

func (r PolicyFilterParam) MarshalJSON() (data []byte, err error)

type PolicyFilterSource

type PolicyFilterSource string
const (
	PolicyFilterSourceWorkersAnalyticsEngine PolicyFilterSource = "workers_analytics_engine"
	PolicyFilterSourceSqlAPI                 PolicyFilterSource = "sql_api"
)

func (PolicyFilterSource) IsKnown

func (r PolicyFilterSource) IsKnown() bool

type PolicyFilterTrafficExclusion

type PolicyFilterTrafficExclusion string
const (
	PolicyFilterTrafficExclusionSecurityEvents PolicyFilterTrafficExclusion = "security_events"
)

func (PolicyFilterTrafficExclusion) IsKnown

func (r PolicyFilterTrafficExclusion) IsKnown() bool

type PolicyGetParams

type PolicyGetParams struct {
	// The account id
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type PolicyGetResponseEnvelope

type PolicyGetResponseEnvelope struct {
	Errors   []PolicyGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []PolicyGetResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful
	Success PolicyGetResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  Policy                           `json:"result"`
	JSON    policyGetResponseEnvelopeJSON    `json:"-"`
}

func (*PolicyGetResponseEnvelope) UnmarshalJSON

func (r *PolicyGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type PolicyGetResponseEnvelopeErrors

type PolicyGetResponseEnvelopeErrors struct {
	Message string                              `json:"message" api:"required"`
	Code    int64                               `json:"code"`
	JSON    policyGetResponseEnvelopeErrorsJSON `json:"-"`
}

func (*PolicyGetResponseEnvelopeErrors) UnmarshalJSON

func (r *PolicyGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)

type PolicyGetResponseEnvelopeMessages

type PolicyGetResponseEnvelopeMessages struct {
	Message string                                `json:"message" api:"required"`
	Code    int64                                 `json:"code"`
	JSON    policyGetResponseEnvelopeMessagesJSON `json:"-"`
}

func (*PolicyGetResponseEnvelopeMessages) UnmarshalJSON

func (r *PolicyGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)

type PolicyGetResponseEnvelopeSuccess

type PolicyGetResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	PolicyGetResponseEnvelopeSuccessTrue PolicyGetResponseEnvelopeSuccess = true
)

func (PolicyGetResponseEnvelopeSuccess) IsKnown

type PolicyListParams

type PolicyListParams struct {
	// The account id
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type PolicyNewParams

type PolicyNewParams struct {
	// The account id
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// 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. This enum lists every alert type, not the ones a given account
	// can create, since some types depend on entitlements or account type. To get the
	// alert types an account can create, call
	// `GET /accounts/{account_id}/alerting/v3/available_alerts`.
	AlertType param.Field[PolicyNewParamsAlertType] `json:"alert_type" api:"required"`
	// Whether or not the Notification policy is enabled.
	Enabled param.Field[bool] `json:"enabled" api:"required"`
	// List of IDs that will be used when dispatching a notification. IDs for email
	// type will be the email address.
	Mechanisms param.Field[MechanismParam] `json:"mechanisms" api:"required"`
	// Name of the policy.
	Name param.Field[string] `json:"name" api:"required"`
	// Optional specification of how often to re-alert from the same incident, not
	// support on all alert types.
	AlertInterval param.Field[string] `json:"alert_interval"`
	// Optional description for the Notification policy.
	Description param.Field[string] `json:"description"`
	// 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.
	Filters param.Field[PolicyFilterParam] `json:"filters"`
}

func (PolicyNewParams) MarshalJSON

func (r PolicyNewParams) MarshalJSON() (data []byte, err error)

type PolicyNewParamsAlertType

type PolicyNewParamsAlertType string

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. This enum lists every alert type, not the ones a given account can create, since some types depend on entitlements or account type. To get the alert types an account can create, call `GET /accounts/{account_id}/alerting/v3/available_alerts`.

const (
	PolicyNewParamsAlertTypeAbuseReportAlert                              PolicyNewParamsAlertType = "abuse_report_alert"
	PolicyNewParamsAlertTypeAccessCustomCertificateExpirationType         PolicyNewParamsAlertType = "access_custom_certificate_expiration_type"
	PolicyNewParamsAlertTypeAdvancedDDoSAttackL4Alert                     PolicyNewParamsAlertType = "advanced_ddos_attack_l4_alert"
	PolicyNewParamsAlertTypeAdvancedDDoSAttackL7Alert                     PolicyNewParamsAlertType = "advanced_ddos_attack_l7_alert"
	PolicyNewParamsAlertTypeAdvancedHTTPAlertError                        PolicyNewParamsAlertType = "advanced_http_alert_error"
	PolicyNewParamsAlertTypeAttackLifecycle                               PolicyNewParamsAlertType = "attack_lifecycle"
	PolicyNewParamsAlertTypeBGPAdvertisementChange                        PolicyNewParamsAlertType = "bgp_advertisement_change"
	PolicyNewParamsAlertTypeBGPHijackNotification                         PolicyNewParamsAlertType = "bgp_hijack_notification"
	PolicyNewParamsAlertTypeBillingBudgetAlert                            PolicyNewParamsAlertType = "billing_budget_alert"
	PolicyNewParamsAlertTypeBillingUsageAlert                             PolicyNewParamsAlertType = "billing_usage_alert"
	PolicyNewParamsAlertTypeBlockNotificationBlockRemoved                 PolicyNewParamsAlertType = "block_notification_block_removed"
	PolicyNewParamsAlertTypeBlockNotificationNewBlock                     PolicyNewParamsAlertType = "block_notification_new_block"
	PolicyNewParamsAlertTypeBlockNotificationReviewRejected               PolicyNewParamsAlertType = "block_notification_review_rejected"
	PolicyNewParamsAlertTypeBotTrafficBasicAlert                          PolicyNewParamsAlertType = "bot_traffic_basic_alert"
	PolicyNewParamsAlertTypeBrandProtectionAlert                          PolicyNewParamsAlertType = "brand_protection_alert"
	PolicyNewParamsAlertTypeBrandProtectionDigest                         PolicyNewParamsAlertType = "brand_protection_digest"
	PolicyNewParamsAlertTypeCasbWeeklyDigest                              PolicyNewParamsAlertType = "casb_weekly_digest"
	PolicyNewParamsAlertTypeClickhouseAlertFwAnomaly                      PolicyNewParamsAlertType = "clickhouse_alert_fw_anomaly"
	PolicyNewParamsAlertTypeClickhouseAlertFwEntAnomaly                   PolicyNewParamsAlertType = "clickhouse_alert_fw_ent_anomaly"
	PolicyNewParamsAlertTypeClosedPortScanAlert                           PolicyNewParamsAlertType = "closed_port_scan_alert"
	PolicyNewParamsAlertTypeCloudforceOneRequestNotification              PolicyNewParamsAlertType = "cloudforce_one_request_notification"
	PolicyNewParamsAlertTypeCmdManagedDefenseNotification                 PolicyNewParamsAlertType = "cmd_managed_defense_notification"
	PolicyNewParamsAlertTypeCNIMaintenanceNotification                    PolicyNewParamsAlertType = "cni_maintenance_notification"
	PolicyNewParamsAlertTypeContainersSecurityAlert                       PolicyNewParamsAlertType = "containers_security_alert"
	PolicyNewParamsAlertTypeCustomAnalytics                               PolicyNewParamsAlertType = "custom_analytics"
	PolicyNewParamsAlertTypeCustomBotDetectionAlert                       PolicyNewParamsAlertType = "custom_bot_detection_alert"
	PolicyNewParamsAlertTypeCustomSSLCertificateEventType                 PolicyNewParamsAlertType = "custom_ssl_certificate_event_type"
	PolicyNewParamsAlertTypeDedicatedSSLCertificateEventType              PolicyNewParamsAlertType = "dedicated_ssl_certificate_event_type"
	PolicyNewParamsAlertTypeDeviceConnectivityAnomalyAlert                PolicyNewParamsAlertType = "device_connectivity_anomaly_alert"
	PolicyNewParamsAlertTypeDEXDeviceConnectivityAlert                    PolicyNewParamsAlertType = "dex_device_connectivity_alert"
	PolicyNewParamsAlertTypeDEXSyntheticTestAvailabilityAlert             PolicyNewParamsAlertType = "dex_synthetic_test_availability_alert"
	PolicyNewParamsAlertTypeDEXSyntheticTestLatencyAlert                  PolicyNewParamsAlertType = "dex_synthetic_test_latency_alert"
	PolicyNewParamsAlertTypeDosAttackL4                                   PolicyNewParamsAlertType = "dos_attack_l4"
	PolicyNewParamsAlertTypeDosAttackL7                                   PolicyNewParamsAlertType = "dos_attack_l7"
	PolicyNewParamsAlertTypeExecutiveCommunications                       PolicyNewParamsAlertType = "executive_communications"
	PolicyNewParamsAlertTypeExpiringServiceTokenAlert                     PolicyNewParamsAlertType = "expiring_service_token_alert"
	PolicyNewParamsAlertTypeFailingLogpushJobDisabledAlert                PolicyNewParamsAlertType = "failing_logpush_job_disabled_alert"
	PolicyNewParamsAlertTypeFbmAutoAdvertisement                          PolicyNewParamsAlertType = "fbm_auto_advertisement"
	PolicyNewParamsAlertTypeFbmDosdAttack                                 PolicyNewParamsAlertType = "fbm_dosd_attack"
	PolicyNewParamsAlertTypeFbmVolumetricAttack                           PolicyNewParamsAlertType = "fbm_volumetric_attack"
	PolicyNewParamsAlertTypeHealthCheckStatusNotification                 PolicyNewParamsAlertType = "health_check_status_notification"
	PolicyNewParamsAlertTypeHostnameAopCustomCertificateExpirationType    PolicyNewParamsAlertType = "hostname_aop_custom_certificate_expiration_type"
	PolicyNewParamsAlertTypeHTTPAlertEdgeError                            PolicyNewParamsAlertType = "http_alert_edge_error"
	PolicyNewParamsAlertTypeHTTPAlertOriginError                          PolicyNewParamsAlertType = "http_alert_origin_error"
	PolicyNewParamsAlertTypeImageNotification                             PolicyNewParamsAlertType = "image_notification"
	PolicyNewParamsAlertTypeImageResizingNotification                     PolicyNewParamsAlertType = "image_resizing_notification"
	PolicyNewParamsAlertTypeIncidentAlert                                 PolicyNewParamsAlertType = "incident_alert"
	PolicyNewParamsAlertTypeLeakedServiceTokenAlert                       PolicyNewParamsAlertType = "leaked_service_token_alert"
	PolicyNewParamsAlertTypeLoadBalancingHealthAlert                      PolicyNewParamsAlertType = "load_balancing_health_alert"
	PolicyNewParamsAlertTypeLoadBalancingPoolEnablementAlert              PolicyNewParamsAlertType = "load_balancing_pool_enablement_alert"
	PolicyNewParamsAlertTypeLogExplorerIngestRateLimit                    PolicyNewParamsAlertType = "log_explorer_ingest_rate_limit"
	PolicyNewParamsAlertTypeLogExplorerScheduledQueryResultsAlert         PolicyNewParamsAlertType = "log_explorer_scheduled_query_results_alert"
	PolicyNewParamsAlertTypeLogoMatchAlert                                PolicyNewParamsAlertType = "logo_match_alert"
	PolicyNewParamsAlertTypeMagicEndpointHealthcheckAlert                 PolicyNewParamsAlertType = "magic_endpoint_healthcheck_alert"
	PolicyNewParamsAlertTypeMagicTunnelHealthCheckEvent                   PolicyNewParamsAlertType = "magic_tunnel_health_check_event"
	PolicyNewParamsAlertTypeMagicWANTunnelHealth                          PolicyNewParamsAlertType = "magic_wan_tunnel_health"
	PolicyNewParamsAlertTypeMaintenanceEventNotification                  PolicyNewParamsAlertType = "maintenance_event_notification"
	PolicyNewParamsAlertTypeMTLSCertificateStoreCertificateExpirationType PolicyNewParamsAlertType = "mtls_certificate_store_certificate_expiration_type"
	PolicyNewParamsAlertTypeOpenPortScanAlert                             PolicyNewParamsAlertType = "open_port_scan_alert"
	PolicyNewParamsAlertTypePagesEventAlert                               PolicyNewParamsAlertType = "pages_event_alert"
	PolicyNewParamsAlertTypeRadarNotification                             PolicyNewParamsAlertType = "radar_notification"
	PolicyNewParamsAlertTypeRealOriginMonitoring                          PolicyNewParamsAlertType = "real_origin_monitoring"
	PolicyNewParamsAlertTypeScriptmonitorAlertNewCodeChangeDetections     PolicyNewParamsAlertType = "scriptmonitor_alert_new_code_change_detections"
	PolicyNewParamsAlertTypeScriptmonitorAlertNewHosts                    PolicyNewParamsAlertType = "scriptmonitor_alert_new_hosts"
	PolicyNewParamsAlertTypeScriptmonitorAlertNewMaliciousHosts           PolicyNewParamsAlertType = "scriptmonitor_alert_new_malicious_hosts"
	PolicyNewParamsAlertTypeScriptmonitorAlertNewMaliciousScripts         PolicyNewParamsAlertType = "scriptmonitor_alert_new_malicious_scripts"
	PolicyNewParamsAlertTypeScriptmonitorAlertNewMaliciousURL             PolicyNewParamsAlertType = "scriptmonitor_alert_new_malicious_url"
	PolicyNewParamsAlertTypeScriptmonitorAlertNewMaxLengthResourceURL     PolicyNewParamsAlertType = "scriptmonitor_alert_new_max_length_resource_url"
	PolicyNewParamsAlertTypeScriptmonitorAlertNewResources                PolicyNewParamsAlertType = "scriptmonitor_alert_new_resources"
	PolicyNewParamsAlertTypeSecondaryDNSAllPrimariesFailing               PolicyNewParamsAlertType = "secondary_dns_all_primaries_failing"
	PolicyNewParamsAlertTypeSecondaryDNSPrimariesFailing                  PolicyNewParamsAlertType = "secondary_dns_primaries_failing"
	PolicyNewParamsAlertTypeSecondaryDNSWarning                           PolicyNewParamsAlertType = "secondary_dns_warning"
	PolicyNewParamsAlertTypeSecondaryDNSZoneSuccessfullyUpdated           PolicyNewParamsAlertType = "secondary_dns_zone_successfully_updated"
	PolicyNewParamsAlertTypeSecondaryDNSZoneValidationWarning             PolicyNewParamsAlertType = "secondary_dns_zone_validation_warning"
	PolicyNewParamsAlertTypeSecurityInsightsAlert                         PolicyNewParamsAlertType = "security_insights_alert"
	PolicyNewParamsAlertTypeSentinelAlert                                 PolicyNewParamsAlertType = "sentinel_alert"
	PolicyNewParamsAlertTypeStakeoutCredentialLeakAlert                   PolicyNewParamsAlertType = "stakeout_credential_leak_alert"
	PolicyNewParamsAlertTypeStakeoutSavedQueryDailyDigestAlert            PolicyNewParamsAlertType = "stakeout_saved_query_daily_digest_alert"
	PolicyNewParamsAlertTypeStakeoutSavedQueryImmediateAlert              PolicyNewParamsAlertType = "stakeout_saved_query_immediate_alert"
	PolicyNewParamsAlertTypeStreamLiveNotifications                       PolicyNewParamsAlertType = "stream_live_notifications"
	PolicyNewParamsAlertTypeSyntheticTestLatencyAlert                     PolicyNewParamsAlertType = "synthetic_test_latency_alert"
	PolicyNewParamsAlertTypeSyntheticTestLowAvailabilityAlert             PolicyNewParamsAlertType = "synthetic_test_low_availability_alert"
	PolicyNewParamsAlertTypeTrafficAnomaliesAlert                         PolicyNewParamsAlertType = "traffic_anomalies_alert"
	PolicyNewParamsAlertTypeTunnelHealthEvent                             PolicyNewParamsAlertType = "tunnel_health_event"
	PolicyNewParamsAlertTypeTunnelUpdateEvent                             PolicyNewParamsAlertType = "tunnel_update_event"
	PolicyNewParamsAlertTypeUniversalSSLEventType                         PolicyNewParamsAlertType = "universal_ssl_event_type"
	PolicyNewParamsAlertTypeWebAnalyticsMetricsUpdate                     PolicyNewParamsAlertType = "web_analytics_metrics_update"
	PolicyNewParamsAlertTypeWorkersForPlatformsSecurityAlert              PolicyNewParamsAlertType = "workers_for_platforms_security_alert"
	PolicyNewParamsAlertTypeWorkersObservabilityAlert                     PolicyNewParamsAlertType = "workers_observability_alert"
	PolicyNewParamsAlertTypeWorkersObservabilityRealTimeIssue             PolicyNewParamsAlertType = "workers_observability_real_time_issue"
	PolicyNewParamsAlertTypeZoneAopCustomCertificateExpirationType        PolicyNewParamsAlertType = "zone_aop_custom_certificate_expiration_type"
)

func (PolicyNewParamsAlertType) IsKnown

func (r PolicyNewParamsAlertType) IsKnown() bool

type PolicyNewResponse

type PolicyNewResponse struct {
	// UUID
	ID   string                `json:"id"`
	JSON policyNewResponseJSON `json:"-"`
}

func (*PolicyNewResponse) UnmarshalJSON

func (r *PolicyNewResponse) UnmarshalJSON(data []byte) (err error)

type PolicyNewResponseEnvelope

type PolicyNewResponseEnvelope struct {
	Errors   []PolicyNewResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []PolicyNewResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful
	Success PolicyNewResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  PolicyNewResponse                `json:"result"`
	JSON    policyNewResponseEnvelopeJSON    `json:"-"`
}

func (*PolicyNewResponseEnvelope) UnmarshalJSON

func (r *PolicyNewResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type PolicyNewResponseEnvelopeErrors

type PolicyNewResponseEnvelopeErrors struct {
	Message string                              `json:"message" api:"required"`
	Code    int64                               `json:"code"`
	JSON    policyNewResponseEnvelopeErrorsJSON `json:"-"`
}

func (*PolicyNewResponseEnvelopeErrors) UnmarshalJSON

func (r *PolicyNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)

type PolicyNewResponseEnvelopeMessages

type PolicyNewResponseEnvelopeMessages struct {
	Message string                                `json:"message" api:"required"`
	Code    int64                                 `json:"code"`
	JSON    policyNewResponseEnvelopeMessagesJSON `json:"-"`
}

func (*PolicyNewResponseEnvelopeMessages) UnmarshalJSON

func (r *PolicyNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)

type PolicyNewResponseEnvelopeSuccess

type PolicyNewResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	PolicyNewResponseEnvelopeSuccessTrue PolicyNewResponseEnvelopeSuccess = true
)

func (PolicyNewResponseEnvelopeSuccess) IsKnown

type PolicyService

type PolicyService struct {
	Options []option.RequestOption
	Email   *PolicyEmailService
}

PolicyService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewPolicyService method instead.

func NewPolicyService

func NewPolicyService(opts ...option.RequestOption) (r *PolicyService)

NewPolicyService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*PolicyService) Delete

func (r *PolicyService) Delete(ctx context.Context, policyID string, body PolicyDeleteParams, opts ...option.RequestOption) (res *PolicyDeleteResponse, err error)

Delete a Notification policy.

func (*PolicyService) Get

func (r *PolicyService) Get(ctx context.Context, policyID string, query PolicyGetParams, opts ...option.RequestOption) (res *Policy, err error)

Get details for a single policy.

func (*PolicyService) List

Get a list of all Notification policies.

func (*PolicyService) ListAutoPaging

Get a list of all Notification policies.

func (*PolicyService) New

func (r *PolicyService) New(ctx context.Context, params PolicyNewParams, opts ...option.RequestOption) (res *PolicyNewResponse, err error)

Creates a new Notification policy.

func (*PolicyService) Test

func (r *PolicyService) Test(ctx context.Context, policyID string, params PolicyTestParams, opts ...option.RequestOption) (res *PolicyTestResponse, err error)

Send a test notification for a policy to verify delivery mechanisms are working as expected.

func (*PolicyService) Update

func (r *PolicyService) Update(ctx context.Context, policyID string, params PolicyUpdateParams, opts ...option.RequestOption) (res *PolicyUpdateResponse, err error)

Update a Notification policy.

type PolicyTestParams

type PolicyTestParams struct {
	// The account id
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// Severity level for the test alert. Defaults to INFO (1) if omitted.
	Severity param.Field[PolicyTestParamsSeverity] `json:"severity"`
	// Source identifier for the test alert.
	Source param.Field[string] `json:"source"`
	// Correlation ID for stateful test alerts. Required when state_event is set.
	StateCorrelationID param.Field[string] `json:"state_correlation_id"`
	// State event type for stateful test alerts. Use with state_correlation_id.
	StateEvent param.Field[PolicyTestParamsStateEvent] `json:"state_event"`
}

func (PolicyTestParams) MarshalJSON

func (r PolicyTestParams) MarshalJSON() (data []byte, err error)

type PolicyTestParamsSeverity

type PolicyTestParamsSeverity int64

Severity level for the test alert. Defaults to INFO (1) if omitted.

const (
	PolicyTestParamsSeverity0 PolicyTestParamsSeverity = 0
	PolicyTestParamsSeverity1 PolicyTestParamsSeverity = 1
	PolicyTestParamsSeverity2 PolicyTestParamsSeverity = 2
	PolicyTestParamsSeverity3 PolicyTestParamsSeverity = 3
	PolicyTestParamsSeverity4 PolicyTestParamsSeverity = 4
)

func (PolicyTestParamsSeverity) IsKnown

func (r PolicyTestParamsSeverity) IsKnown() bool

type PolicyTestParamsStateEvent

type PolicyTestParamsStateEvent int64

State event type for stateful test alerts. Use with state_correlation_id.

const (
	PolicyTestParamsStateEvent0 PolicyTestParamsStateEvent = 0
	PolicyTestParamsStateEvent1 PolicyTestParamsStateEvent = 1
	PolicyTestParamsStateEvent2 PolicyTestParamsStateEvent = 2
)

func (PolicyTestParamsStateEvent) IsKnown

func (r PolicyTestParamsStateEvent) IsKnown() bool

type PolicyTestResponse

type PolicyTestResponse struct {
	Errors   []PolicyTestResponseError   `json:"errors" api:"required"`
	Messages []PolicyTestResponseMessage `json:"messages" api:"required"`
	// Whether the API call was successful
	Success PolicyTestResponseSuccess `json:"success" api:"required"`
	JSON    policyTestResponseJSON    `json:"-"`
}

func (*PolicyTestResponse) UnmarshalJSON

func (r *PolicyTestResponse) UnmarshalJSON(data []byte) (err error)

type PolicyTestResponseError

type PolicyTestResponseError struct {
	Message string                      `json:"message" api:"required"`
	Code    int64                       `json:"code"`
	JSON    policyTestResponseErrorJSON `json:"-"`
}

func (*PolicyTestResponseError) UnmarshalJSON

func (r *PolicyTestResponseError) UnmarshalJSON(data []byte) (err error)

type PolicyTestResponseMessage

type PolicyTestResponseMessage struct {
	Message string                        `json:"message" api:"required"`
	Code    int64                         `json:"code"`
	JSON    policyTestResponseMessageJSON `json:"-"`
}

func (*PolicyTestResponseMessage) UnmarshalJSON

func (r *PolicyTestResponseMessage) UnmarshalJSON(data []byte) (err error)

type PolicyTestResponseSuccess

type PolicyTestResponseSuccess bool

Whether the API call was successful

const (
	PolicyTestResponseSuccessTrue PolicyTestResponseSuccess = true
)

func (PolicyTestResponseSuccess) IsKnown

func (r PolicyTestResponseSuccess) IsKnown() bool

type PolicyUpdateParams

type PolicyUpdateParams struct {
	// The account id
	AccountID param.Field[string] `path:"account_id" api:"required"`
	// Optional specification of how often to re-alert from the same incident, not
	// support on all alert types.
	AlertInterval param.Field[string] `json:"alert_interval"`
	// 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. This enum lists every alert type, not the ones a given account
	// can create, since some types depend on entitlements or account type. To get the
	// alert types an account can create, call
	// `GET /accounts/{account_id}/alerting/v3/available_alerts`.
	AlertType param.Field[PolicyUpdateParamsAlertType] `json:"alert_type"`
	// Optional description for the Notification policy.
	Description param.Field[string] `json:"description"`
	// Whether or not the Notification policy is enabled.
	Enabled param.Field[bool] `json:"enabled"`
	// 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.
	Filters param.Field[PolicyFilterParam] `json:"filters"`
	// List of IDs that will be used when dispatching a notification. IDs for email
	// type will be the email address.
	Mechanisms param.Field[MechanismParam] `json:"mechanisms"`
	// Name of the policy.
	Name param.Field[string] `json:"name"`
}

func (PolicyUpdateParams) MarshalJSON

func (r PolicyUpdateParams) MarshalJSON() (data []byte, err error)

type PolicyUpdateParamsAlertType

type PolicyUpdateParamsAlertType string

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. This enum lists every alert type, not the ones a given account can create, since some types depend on entitlements or account type. To get the alert types an account can create, call `GET /accounts/{account_id}/alerting/v3/available_alerts`.

const (
	PolicyUpdateParamsAlertTypeAbuseReportAlert                              PolicyUpdateParamsAlertType = "abuse_report_alert"
	PolicyUpdateParamsAlertTypeAccessCustomCertificateExpirationType         PolicyUpdateParamsAlertType = "access_custom_certificate_expiration_type"
	PolicyUpdateParamsAlertTypeAdvancedDDoSAttackL4Alert                     PolicyUpdateParamsAlertType = "advanced_ddos_attack_l4_alert"
	PolicyUpdateParamsAlertTypeAdvancedDDoSAttackL7Alert                     PolicyUpdateParamsAlertType = "advanced_ddos_attack_l7_alert"
	PolicyUpdateParamsAlertTypeAdvancedHTTPAlertError                        PolicyUpdateParamsAlertType = "advanced_http_alert_error"
	PolicyUpdateParamsAlertTypeAttackLifecycle                               PolicyUpdateParamsAlertType = "attack_lifecycle"
	PolicyUpdateParamsAlertTypeBGPAdvertisementChange                        PolicyUpdateParamsAlertType = "bgp_advertisement_change"
	PolicyUpdateParamsAlertTypeBGPHijackNotification                         PolicyUpdateParamsAlertType = "bgp_hijack_notification"
	PolicyUpdateParamsAlertTypeBillingBudgetAlert                            PolicyUpdateParamsAlertType = "billing_budget_alert"
	PolicyUpdateParamsAlertTypeBillingUsageAlert                             PolicyUpdateParamsAlertType = "billing_usage_alert"
	PolicyUpdateParamsAlertTypeBlockNotificationBlockRemoved                 PolicyUpdateParamsAlertType = "block_notification_block_removed"
	PolicyUpdateParamsAlertTypeBlockNotificationNewBlock                     PolicyUpdateParamsAlertType = "block_notification_new_block"
	PolicyUpdateParamsAlertTypeBlockNotificationReviewRejected               PolicyUpdateParamsAlertType = "block_notification_review_rejected"
	PolicyUpdateParamsAlertTypeBotTrafficBasicAlert                          PolicyUpdateParamsAlertType = "bot_traffic_basic_alert"
	PolicyUpdateParamsAlertTypeBrandProtectionAlert                          PolicyUpdateParamsAlertType = "brand_protection_alert"
	PolicyUpdateParamsAlertTypeBrandProtectionDigest                         PolicyUpdateParamsAlertType = "brand_protection_digest"
	PolicyUpdateParamsAlertTypeCasbWeeklyDigest                              PolicyUpdateParamsAlertType = "casb_weekly_digest"
	PolicyUpdateParamsAlertTypeClickhouseAlertFwAnomaly                      PolicyUpdateParamsAlertType = "clickhouse_alert_fw_anomaly"
	PolicyUpdateParamsAlertTypeClickhouseAlertFwEntAnomaly                   PolicyUpdateParamsAlertType = "clickhouse_alert_fw_ent_anomaly"
	PolicyUpdateParamsAlertTypeClosedPortScanAlert                           PolicyUpdateParamsAlertType = "closed_port_scan_alert"
	PolicyUpdateParamsAlertTypeCloudforceOneRequestNotification              PolicyUpdateParamsAlertType = "cloudforce_one_request_notification"
	PolicyUpdateParamsAlertTypeCmdManagedDefenseNotification                 PolicyUpdateParamsAlertType = "cmd_managed_defense_notification"
	PolicyUpdateParamsAlertTypeCNIMaintenanceNotification                    PolicyUpdateParamsAlertType = "cni_maintenance_notification"
	PolicyUpdateParamsAlertTypeContainersSecurityAlert                       PolicyUpdateParamsAlertType = "containers_security_alert"
	PolicyUpdateParamsAlertTypeCustomAnalytics                               PolicyUpdateParamsAlertType = "custom_analytics"
	PolicyUpdateParamsAlertTypeCustomBotDetectionAlert                       PolicyUpdateParamsAlertType = "custom_bot_detection_alert"
	PolicyUpdateParamsAlertTypeCustomSSLCertificateEventType                 PolicyUpdateParamsAlertType = "custom_ssl_certificate_event_type"
	PolicyUpdateParamsAlertTypeDedicatedSSLCertificateEventType              PolicyUpdateParamsAlertType = "dedicated_ssl_certificate_event_type"
	PolicyUpdateParamsAlertTypeDeviceConnectivityAnomalyAlert                PolicyUpdateParamsAlertType = "device_connectivity_anomaly_alert"
	PolicyUpdateParamsAlertTypeDEXDeviceConnectivityAlert                    PolicyUpdateParamsAlertType = "dex_device_connectivity_alert"
	PolicyUpdateParamsAlertTypeDEXSyntheticTestAvailabilityAlert             PolicyUpdateParamsAlertType = "dex_synthetic_test_availability_alert"
	PolicyUpdateParamsAlertTypeDEXSyntheticTestLatencyAlert                  PolicyUpdateParamsAlertType = "dex_synthetic_test_latency_alert"
	PolicyUpdateParamsAlertTypeDosAttackL4                                   PolicyUpdateParamsAlertType = "dos_attack_l4"
	PolicyUpdateParamsAlertTypeDosAttackL7                                   PolicyUpdateParamsAlertType = "dos_attack_l7"
	PolicyUpdateParamsAlertTypeExecutiveCommunications                       PolicyUpdateParamsAlertType = "executive_communications"
	PolicyUpdateParamsAlertTypeExpiringServiceTokenAlert                     PolicyUpdateParamsAlertType = "expiring_service_token_alert"
	PolicyUpdateParamsAlertTypeFailingLogpushJobDisabledAlert                PolicyUpdateParamsAlertType = "failing_logpush_job_disabled_alert"
	PolicyUpdateParamsAlertTypeFbmAutoAdvertisement                          PolicyUpdateParamsAlertType = "fbm_auto_advertisement"
	PolicyUpdateParamsAlertTypeFbmDosdAttack                                 PolicyUpdateParamsAlertType = "fbm_dosd_attack"
	PolicyUpdateParamsAlertTypeFbmVolumetricAttack                           PolicyUpdateParamsAlertType = "fbm_volumetric_attack"
	PolicyUpdateParamsAlertTypeHealthCheckStatusNotification                 PolicyUpdateParamsAlertType = "health_check_status_notification"
	PolicyUpdateParamsAlertTypeHostnameAopCustomCertificateExpirationType    PolicyUpdateParamsAlertType = "hostname_aop_custom_certificate_expiration_type"
	PolicyUpdateParamsAlertTypeHTTPAlertEdgeError                            PolicyUpdateParamsAlertType = "http_alert_edge_error"
	PolicyUpdateParamsAlertTypeHTTPAlertOriginError                          PolicyUpdateParamsAlertType = "http_alert_origin_error"
	PolicyUpdateParamsAlertTypeImageNotification                             PolicyUpdateParamsAlertType = "image_notification"
	PolicyUpdateParamsAlertTypeImageResizingNotification                     PolicyUpdateParamsAlertType = "image_resizing_notification"
	PolicyUpdateParamsAlertTypeIncidentAlert                                 PolicyUpdateParamsAlertType = "incident_alert"
	PolicyUpdateParamsAlertTypeLeakedServiceTokenAlert                       PolicyUpdateParamsAlertType = "leaked_service_token_alert"
	PolicyUpdateParamsAlertTypeLoadBalancingHealthAlert                      PolicyUpdateParamsAlertType = "load_balancing_health_alert"
	PolicyUpdateParamsAlertTypeLoadBalancingPoolEnablementAlert              PolicyUpdateParamsAlertType = "load_balancing_pool_enablement_alert"
	PolicyUpdateParamsAlertTypeLogExplorerIngestRateLimit                    PolicyUpdateParamsAlertType = "log_explorer_ingest_rate_limit"
	PolicyUpdateParamsAlertTypeLogExplorerScheduledQueryResultsAlert         PolicyUpdateParamsAlertType = "log_explorer_scheduled_query_results_alert"
	PolicyUpdateParamsAlertTypeLogoMatchAlert                                PolicyUpdateParamsAlertType = "logo_match_alert"
	PolicyUpdateParamsAlertTypeMagicEndpointHealthcheckAlert                 PolicyUpdateParamsAlertType = "magic_endpoint_healthcheck_alert"
	PolicyUpdateParamsAlertTypeMagicTunnelHealthCheckEvent                   PolicyUpdateParamsAlertType = "magic_tunnel_health_check_event"
	PolicyUpdateParamsAlertTypeMagicWANTunnelHealth                          PolicyUpdateParamsAlertType = "magic_wan_tunnel_health"
	PolicyUpdateParamsAlertTypeMaintenanceEventNotification                  PolicyUpdateParamsAlertType = "maintenance_event_notification"
	PolicyUpdateParamsAlertTypeMTLSCertificateStoreCertificateExpirationType PolicyUpdateParamsAlertType = "mtls_certificate_store_certificate_expiration_type"
	PolicyUpdateParamsAlertTypeOpenPortScanAlert                             PolicyUpdateParamsAlertType = "open_port_scan_alert"
	PolicyUpdateParamsAlertTypePagesEventAlert                               PolicyUpdateParamsAlertType = "pages_event_alert"
	PolicyUpdateParamsAlertTypeRadarNotification                             PolicyUpdateParamsAlertType = "radar_notification"
	PolicyUpdateParamsAlertTypeRealOriginMonitoring                          PolicyUpdateParamsAlertType = "real_origin_monitoring"
	PolicyUpdateParamsAlertTypeScriptmonitorAlertNewCodeChangeDetections     PolicyUpdateParamsAlertType = "scriptmonitor_alert_new_code_change_detections"
	PolicyUpdateParamsAlertTypeScriptmonitorAlertNewHosts                    PolicyUpdateParamsAlertType = "scriptmonitor_alert_new_hosts"
	PolicyUpdateParamsAlertTypeScriptmonitorAlertNewMaliciousHosts           PolicyUpdateParamsAlertType = "scriptmonitor_alert_new_malicious_hosts"
	PolicyUpdateParamsAlertTypeScriptmonitorAlertNewMaliciousScripts         PolicyUpdateParamsAlertType = "scriptmonitor_alert_new_malicious_scripts"
	PolicyUpdateParamsAlertTypeScriptmonitorAlertNewMaliciousURL             PolicyUpdateParamsAlertType = "scriptmonitor_alert_new_malicious_url"
	PolicyUpdateParamsAlertTypeScriptmonitorAlertNewMaxLengthResourceURL     PolicyUpdateParamsAlertType = "scriptmonitor_alert_new_max_length_resource_url"
	PolicyUpdateParamsAlertTypeScriptmonitorAlertNewResources                PolicyUpdateParamsAlertType = "scriptmonitor_alert_new_resources"
	PolicyUpdateParamsAlertTypeSecondaryDNSAllPrimariesFailing               PolicyUpdateParamsAlertType = "secondary_dns_all_primaries_failing"
	PolicyUpdateParamsAlertTypeSecondaryDNSPrimariesFailing                  PolicyUpdateParamsAlertType = "secondary_dns_primaries_failing"
	PolicyUpdateParamsAlertTypeSecondaryDNSWarning                           PolicyUpdateParamsAlertType = "secondary_dns_warning"
	PolicyUpdateParamsAlertTypeSecondaryDNSZoneSuccessfullyUpdated           PolicyUpdateParamsAlertType = "secondary_dns_zone_successfully_updated"
	PolicyUpdateParamsAlertTypeSecondaryDNSZoneValidationWarning             PolicyUpdateParamsAlertType = "secondary_dns_zone_validation_warning"
	PolicyUpdateParamsAlertTypeSecurityInsightsAlert                         PolicyUpdateParamsAlertType = "security_insights_alert"
	PolicyUpdateParamsAlertTypeSentinelAlert                                 PolicyUpdateParamsAlertType = "sentinel_alert"
	PolicyUpdateParamsAlertTypeStakeoutCredentialLeakAlert                   PolicyUpdateParamsAlertType = "stakeout_credential_leak_alert"
	PolicyUpdateParamsAlertTypeStakeoutSavedQueryDailyDigestAlert            PolicyUpdateParamsAlertType = "stakeout_saved_query_daily_digest_alert"
	PolicyUpdateParamsAlertTypeStakeoutSavedQueryImmediateAlert              PolicyUpdateParamsAlertType = "stakeout_saved_query_immediate_alert"
	PolicyUpdateParamsAlertTypeStreamLiveNotifications                       PolicyUpdateParamsAlertType = "stream_live_notifications"
	PolicyUpdateParamsAlertTypeSyntheticTestLatencyAlert                     PolicyUpdateParamsAlertType = "synthetic_test_latency_alert"
	PolicyUpdateParamsAlertTypeSyntheticTestLowAvailabilityAlert             PolicyUpdateParamsAlertType = "synthetic_test_low_availability_alert"
	PolicyUpdateParamsAlertTypeTrafficAnomaliesAlert                         PolicyUpdateParamsAlertType = "traffic_anomalies_alert"
	PolicyUpdateParamsAlertTypeTunnelHealthEvent                             PolicyUpdateParamsAlertType = "tunnel_health_event"
	PolicyUpdateParamsAlertTypeTunnelUpdateEvent                             PolicyUpdateParamsAlertType = "tunnel_update_event"
	PolicyUpdateParamsAlertTypeUniversalSSLEventType                         PolicyUpdateParamsAlertType = "universal_ssl_event_type"
	PolicyUpdateParamsAlertTypeWebAnalyticsMetricsUpdate                     PolicyUpdateParamsAlertType = "web_analytics_metrics_update"
	PolicyUpdateParamsAlertTypeWorkersForPlatformsSecurityAlert              PolicyUpdateParamsAlertType = "workers_for_platforms_security_alert"
	PolicyUpdateParamsAlertTypeWorkersObservabilityAlert                     PolicyUpdateParamsAlertType = "workers_observability_alert"
	PolicyUpdateParamsAlertTypeWorkersObservabilityRealTimeIssue             PolicyUpdateParamsAlertType = "workers_observability_real_time_issue"
	PolicyUpdateParamsAlertTypeZoneAopCustomCertificateExpirationType        PolicyUpdateParamsAlertType = "zone_aop_custom_certificate_expiration_type"
)

func (PolicyUpdateParamsAlertType) IsKnown

func (r PolicyUpdateParamsAlertType) IsKnown() bool

type PolicyUpdateResponse

type PolicyUpdateResponse struct {
	// UUID
	ID   string                   `json:"id"`
	JSON policyUpdateResponseJSON `json:"-"`
}

func (*PolicyUpdateResponse) UnmarshalJSON

func (r *PolicyUpdateResponse) UnmarshalJSON(data []byte) (err error)

type PolicyUpdateResponseEnvelope

type PolicyUpdateResponseEnvelope struct {
	Errors   []PolicyUpdateResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []PolicyUpdateResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful
	Success PolicyUpdateResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  PolicyUpdateResponse                `json:"result"`
	JSON    policyUpdateResponseEnvelopeJSON    `json:"-"`
}

func (*PolicyUpdateResponseEnvelope) UnmarshalJSON

func (r *PolicyUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type PolicyUpdateResponseEnvelopeErrors

type PolicyUpdateResponseEnvelopeErrors struct {
	Message string                                 `json:"message" api:"required"`
	Code    int64                                  `json:"code"`
	JSON    policyUpdateResponseEnvelopeErrorsJSON `json:"-"`
}

func (*PolicyUpdateResponseEnvelopeErrors) UnmarshalJSON

func (r *PolicyUpdateResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)

type PolicyUpdateResponseEnvelopeMessages

type PolicyUpdateResponseEnvelopeMessages struct {
	Message string                                   `json:"message" api:"required"`
	Code    int64                                    `json:"code"`
	JSON    policyUpdateResponseEnvelopeMessagesJSON `json:"-"`
}

func (*PolicyUpdateResponseEnvelopeMessages) UnmarshalJSON

func (r *PolicyUpdateResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)

type PolicyUpdateResponseEnvelopeSuccess

type PolicyUpdateResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	PolicyUpdateResponseEnvelopeSuccessTrue PolicyUpdateResponseEnvelopeSuccess = true
)

func (PolicyUpdateResponseEnvelopeSuccess) IsKnown

type RatePlan

type RatePlan = shared.RatePlan

The rate plan applied to the subscription.

This is an alias to an internal type.

type RatePlanID

type RatePlanID = shared.RatePlanID

The ID of the rate plan.

This is an alias to an internal type.

type RatePlanParam

type RatePlanParam = shared.RatePlanParam

The rate plan applied to the subscription.

This is an alias to an internal type.

type ResponseInfo

type ResponseInfo = shared.ResponseInfo

This is an alias to an internal type.

type ResponseInfoSource

type ResponseInfoSource = shared.ResponseInfoSource

This is an alias to an internal type.

type Role

type Role = shared.Role

This is an alias to an internal type.

type RoleParam

type RoleParam = shared.RoleParam

This is an alias to an internal type.

type RolePermissions

type RolePermissions = shared.RolePermissions

This is an alias to an internal type.

type RolePermissionsParam

type RolePermissionsParam = shared.RolePermissionsParam

This is an alias to an internal type.

type SilenceDeleteParams

type SilenceDeleteParams struct {
	// The account id
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type SilenceDeleteResponse

type SilenceDeleteResponse struct {
	Errors   []SilenceDeleteResponseError   `json:"errors" api:"required"`
	Messages []SilenceDeleteResponseMessage `json:"messages" api:"required"`
	// Whether the API call was successful
	Success SilenceDeleteResponseSuccess `json:"success" api:"required"`
	JSON    silenceDeleteResponseJSON    `json:"-"`
}

func (*SilenceDeleteResponse) UnmarshalJSON

func (r *SilenceDeleteResponse) UnmarshalJSON(data []byte) (err error)

type SilenceDeleteResponseError

type SilenceDeleteResponseError struct {
	Message string                         `json:"message" api:"required"`
	Code    int64                          `json:"code"`
	JSON    silenceDeleteResponseErrorJSON `json:"-"`
}

func (*SilenceDeleteResponseError) UnmarshalJSON

func (r *SilenceDeleteResponseError) UnmarshalJSON(data []byte) (err error)

type SilenceDeleteResponseMessage

type SilenceDeleteResponseMessage struct {
	Message string                           `json:"message" api:"required"`
	Code    int64                            `json:"code"`
	JSON    silenceDeleteResponseMessageJSON `json:"-"`
}

func (*SilenceDeleteResponseMessage) UnmarshalJSON

func (r *SilenceDeleteResponseMessage) UnmarshalJSON(data []byte) (err error)

type SilenceDeleteResponseSuccess

type SilenceDeleteResponseSuccess bool

Whether the API call was successful

const (
	SilenceDeleteResponseSuccessTrue SilenceDeleteResponseSuccess = true
)

func (SilenceDeleteResponseSuccess) IsKnown

func (r SilenceDeleteResponseSuccess) IsKnown() bool

type SilenceGetParams

type SilenceGetParams struct {
	// The account id
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type SilenceGetResponse

type SilenceGetResponse struct {
	// Silence ID
	ID string `json:"id"`
	// When the silence was created.
	CreatedAt string `json:"created_at"`
	// When the silence ends.
	EndTime string `json:"end_time"`
	// The unique identifier of a notification policy
	PolicyID string `json:"policy_id"`
	// When the silence starts.
	StartTime string `json:"start_time"`
	// When the silence was modified.
	UpdatedAt string                 `json:"updated_at"`
	JSON      silenceGetResponseJSON `json:"-"`
}

func (*SilenceGetResponse) UnmarshalJSON

func (r *SilenceGetResponse) UnmarshalJSON(data []byte) (err error)

type SilenceGetResponseEnvelope

type SilenceGetResponseEnvelope struct {
	Errors   []SilenceGetResponseEnvelopeErrors   `json:"errors" api:"required"`
	Messages []SilenceGetResponseEnvelopeMessages `json:"messages" api:"required"`
	// Whether the API call was successful
	Success SilenceGetResponseEnvelopeSuccess `json:"success" api:"required"`
	Result  SilenceGetResponse                `json:"result"`
	JSON    silenceGetResponseEnvelopeJSON    `json:"-"`
}

func (*SilenceGetResponseEnvelope) UnmarshalJSON

func (r *SilenceGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)

type SilenceGetResponseEnvelopeErrors

type SilenceGetResponseEnvelopeErrors struct {
	Message string                               `json:"message" api:"required"`
	Code    int64                                `json:"code"`
	JSON    silenceGetResponseEnvelopeErrorsJSON `json:"-"`
}

func (*SilenceGetResponseEnvelopeErrors) UnmarshalJSON

func (r *SilenceGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)

type SilenceGetResponseEnvelopeMessages

type SilenceGetResponseEnvelopeMessages struct {
	Message string                                 `json:"message" api:"required"`
	Code    int64                                  `json:"code"`
	JSON    silenceGetResponseEnvelopeMessagesJSON `json:"-"`
}

func (*SilenceGetResponseEnvelopeMessages) UnmarshalJSON

func (r *SilenceGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)

type SilenceGetResponseEnvelopeSuccess

type SilenceGetResponseEnvelopeSuccess bool

Whether the API call was successful

const (
	SilenceGetResponseEnvelopeSuccessTrue SilenceGetResponseEnvelopeSuccess = true
)

func (SilenceGetResponseEnvelopeSuccess) IsKnown

type SilenceListParams

type SilenceListParams struct {
	// The account id
	AccountID param.Field[string] `path:"account_id" api:"required"`
}

type SilenceListResponse

type SilenceListResponse struct {
	// Silence ID
	ID string `json:"id"`
	// When the silence was created.
	CreatedAt string `json:"created_at"`
	// When the silence ends.
	EndTime string `json:"end_time"`
	// The unique identifier of a notification policy
	PolicyID string `json:"policy_id"`
	// When the silence starts.
	StartTime string `json:"start_time"`
	// When the silence was modified.
	UpdatedAt string                  `json:"updated_at"`
	JSON      silenceListResponseJSON `json:"-"`
}

func (*SilenceListResponse) UnmarshalJSON

func (r *SilenceListResponse) UnmarshalJSON(data []byte) (err error)

type SilenceNewParams

type SilenceNewParams struct {
	// The account id
	AccountID param.Field[string]    `path:"account_id" api:"required"`
	Body      []SilenceNewParamsBody `json:"body" api:"required"`
}

func (SilenceNewParams) MarshalJSON

func (r SilenceNewParams) MarshalJSON() (data []byte, err error)

type SilenceNewParamsBody

type SilenceNewParamsBody struct {
	// When the silence ends.
	EndTime param.Field[string] `json:"end_time"`
	// The unique identifier of a notification policy
	PolicyID param.Field[string] `json:"policy_id"`
	// When the silence starts.
	StartTime param.Field[string] `json:"start_time"`
}

func (SilenceNewParamsBody) MarshalJSON

func (r SilenceNewParamsBody) MarshalJSON() (data []byte, err error)

type SilenceNewResponse

type SilenceNewResponse struct {
	Errors   []SilenceNewResponseError   `json:"errors" api:"required"`
	Messages []SilenceNewResponseMessage `json:"messages" api:"required"`
	// Whether the API call was successful
	Success SilenceNewResponseSuccess `json:"success" api:"required"`
	JSON    silenceNewResponseJSON    `json:"-"`
}

func (*SilenceNewResponse) UnmarshalJSON

func (r *SilenceNewResponse) UnmarshalJSON(data []byte) (err error)

type SilenceNewResponseError

type SilenceNewResponseError struct {
	Message string                      `json:"message" api:"required"`
	Code    int64                       `json:"code"`
	JSON    silenceNewResponseErrorJSON `json:"-"`
}

func (*SilenceNewResponseError) UnmarshalJSON

func (r *SilenceNewResponseError) UnmarshalJSON(data []byte) (err error)

type SilenceNewResponseMessage

type SilenceNewResponseMessage struct {
	Message string                        `json:"message" api:"required"`
	Code    int64                         `json:"code"`
	JSON    silenceNewResponseMessageJSON `json:"-"`
}

func (*SilenceNewResponseMessage) UnmarshalJSON

func (r *SilenceNewResponseMessage) UnmarshalJSON(data []byte) (err error)

type SilenceNewResponseSuccess

type SilenceNewResponseSuccess bool

Whether the API call was successful

const (
	SilenceNewResponseSuccessTrue SilenceNewResponseSuccess = true
)

func (SilenceNewResponseSuccess) IsKnown

func (r SilenceNewResponseSuccess) IsKnown() bool

type SilenceService

type SilenceService struct {
	Options []option.RequestOption
}

SilenceService contains methods and other services that help with interacting with the cloudflare API.

Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewSilenceService method instead.

func NewSilenceService

func NewSilenceService(opts ...option.RequestOption) (r *SilenceService)

NewSilenceService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.

func (*SilenceService) Delete

func (r *SilenceService) Delete(ctx context.Context, silenceID string, body SilenceDeleteParams, opts ...option.RequestOption) (res *SilenceDeleteResponse, err error)

Deletes an existing silence for an account.

func (*SilenceService) Get

func (r *SilenceService) Get(ctx context.Context, silenceID string, query SilenceGetParams, opts ...option.RequestOption) (res *SilenceGetResponse, err error)

Gets a specific silence for an account.

func (*SilenceService) List

Gets a list of silences for an account.

func (*SilenceService) ListAutoPaging

Gets a list of silences for an account.

func (*SilenceService) New

Creates a new silence for an account.

func (*SilenceService) Update

Updates existing silences for an account.

func (*SilenceService) UpdateAutoPaging

Updates existing silences for an account.

type SilenceUpdateParams

type SilenceUpdateParams struct {
	// The account id
	AccountID param.Field[string]       `path:"account_id" api:"required"`
	Body      []SilenceUpdateParamsBody `json:"body" api:"required"`
}

func (SilenceUpdateParams) MarshalJSON

func (r SilenceUpdateParams) MarshalJSON() (data []byte, err error)

type SilenceUpdateParamsBody

type SilenceUpdateParamsBody struct {
	// Silence ID
	ID param.Field[string] `json:"id"`
	// When the silence ends.
	EndTime param.Field[string] `json:"end_time"`
	// When the silence starts.
	StartTime param.Field[string] `json:"start_time"`
}

func (SilenceUpdateParamsBody) MarshalJSON

func (r SilenceUpdateParamsBody) MarshalJSON() (data []byte, err error)

type SilenceUpdateResponse

type SilenceUpdateResponse struct {
	// Silence ID
	ID string `json:"id"`
	// When the silence was created.
	CreatedAt string `json:"created_at"`
	// When the silence ends.
	EndTime string `json:"end_time"`
	// The unique identifier of a notification policy
	PolicyID string `json:"policy_id"`
	// When the silence starts.
	StartTime string `json:"start_time"`
	// When the silence was modified.
	UpdatedAt string                    `json:"updated_at"`
	JSON      silenceUpdateResponseJSON `json:"-"`
}

func (*SilenceUpdateResponse) UnmarshalJSON

func (r *SilenceUpdateResponse) UnmarshalJSON(data []byte) (err error)

type SortDirection

type SortDirection = shared.SortDirection

Direction to order DNS records in.

This is an alias to an internal type.

type Subscription

type Subscription = shared.Subscription

This is an alias to an internal type.

type SubscriptionFrequency

type SubscriptionFrequency = shared.SubscriptionFrequency

How often the subscription is renewed automatically.

This is an alias to an internal type.

type SubscriptionParam

type SubscriptionParam = shared.SubscriptionParam

This is an alias to an internal type.

type SubscriptionState

type SubscriptionState = shared.SubscriptionState

The state that the subscription is in.

This is an alias to an internal type.

type Token

type Token = shared.Token

This is an alias to an internal type.

type TokenCondition

type TokenCondition = shared.TokenCondition

This is an alias to an internal type.

type TokenConditionCIDRList

type TokenConditionCIDRList = shared.TokenConditionCIDRList

IPv4/IPv6 CIDR.

This is an alias to an internal type.

type TokenConditionCIDRListParam

type TokenConditionCIDRListParam = shared.TokenConditionCIDRListParam

IPv4/IPv6 CIDR.

This is an alias to an internal type.

type TokenConditionParam

type TokenConditionParam = shared.TokenConditionParam

This is an alias to an internal type.

type TokenConditionRequestIP

type TokenConditionRequestIP = shared.TokenConditionRequestIP

Client IP restrictions.

This is an alias to an internal type.

type TokenConditionRequestIPParam

type TokenConditionRequestIPParam = shared.TokenConditionRequestIPParam

Client IP restrictions.

This is an alias to an internal type.

type TokenParam

type TokenParam = shared.TokenParam

This is an alias to an internal type.

type TokenPolicy

type TokenPolicy = shared.TokenPolicy

This is an alias to an internal type.

type TokenPolicyEffect

type TokenPolicyEffect = shared.TokenPolicyEffect

Allow or deny operations against the resources.

This is an alias to an internal type.

type TokenPolicyParam

type TokenPolicyParam = shared.TokenPolicyParam

This is an alias to an internal type.

type TokenPolicyPermissionGroup

type TokenPolicyPermissionGroup = shared.TokenPolicyPermissionGroup

A named group of permissions that map to a group of operations against resources.

This is an alias to an internal type.

type TokenPolicyPermissionGroupParam

type TokenPolicyPermissionGroupParam = shared.TokenPolicyPermissionGroupParam

A named group of permissions that map to a group of operations against resources.

This is an alias to an internal type.

type TokenPolicyPermissionGroupsMeta

type TokenPolicyPermissionGroupsMeta = shared.TokenPolicyPermissionGroupsMeta

Attributes associated to the permission group.

This is an alias to an internal type.

type TokenPolicyPermissionGroupsMetaParam

type TokenPolicyPermissionGroupsMetaParam = shared.TokenPolicyPermissionGroupsMetaParam

Attributes associated to the permission group.

This is an alias to an internal type.

type TokenPolicyResourcesIAMResourcesTypeObjectNested

type TokenPolicyResourcesIAMResourcesTypeObjectNested = shared.TokenPolicyResourcesIAMResourcesTypeObjectNested

Map of nested resource permissions

This is an alias to an internal type.

type TokenPolicyResourcesIAMResourcesTypeObjectNestedParam

type TokenPolicyResourcesIAMResourcesTypeObjectNestedParam = shared.TokenPolicyResourcesIAMResourcesTypeObjectNestedParam

Map of nested resource permissions

This is an alias to an internal type.

type TokenPolicyResourcesIAMResourcesTypeObjectString

type TokenPolicyResourcesIAMResourcesTypeObjectString = shared.TokenPolicyResourcesIAMResourcesTypeObjectString

Map of simple string resource permissions

This is an alias to an internal type.

type TokenPolicyResourcesIAMResourcesTypeObjectStringParam

type TokenPolicyResourcesIAMResourcesTypeObjectStringParam = shared.TokenPolicyResourcesIAMResourcesTypeObjectStringParam

Map of simple string resource permissions

This is an alias to an internal type.

type TokenPolicyResourcesUnion

type TokenPolicyResourcesUnion = shared.TokenPolicyResourcesUnion

A list of resource names that the policy applies to.

This is an alias to an internal type.

type TokenPolicyResourcesUnionParam

type TokenPolicyResourcesUnionParam = shared.TokenPolicyResourcesUnionParam

A list of resource names that the policy applies to.

This is an alias to an internal type.

type TokenStatus

type TokenStatus = shared.TokenStatus

Status of the token.

This is an alias to an internal type.

type TokenValue

type TokenValue = shared.TokenValue

The token value.

This is an alias to an internal type.

type Webhooks

type Webhooks struct {
	// The unique identifier of a webhook
	ID string `json:"id"`
	// Timestamp of when the webhook destination was created.
	CreatedAt time.Time `json:"created_at" format:"date-time"`
	// Timestamp of the last time an attempt to dispatch a notification to this webhook
	// failed.
	LastFailure time.Time `json:"last_failure" format:"date-time"`
	// Timestamp of the last time Cloudflare was able to successfully dispatch a
	// notification using this webhook.
	LastSuccess time.Time `json:"last_success" format:"date-time"`
	// The name of the webhook destination. This will be included in the request body
	// when you receive a webhook notification.
	Name string `json:"name"`
	// Type of webhook endpoint.
	Type WebhooksType `json:"type"`
	// The POST endpoint to call when dispatching a notification.
	URL  string       `json:"url"`
	JSON webhooksJSON `json:"-"`
}

func (*Webhooks) UnmarshalJSON

func (r *Webhooks) UnmarshalJSON(data []byte) (err error)

type WebhooksType

type WebhooksType string

Type of webhook endpoint.

const (
	WebhooksTypeDatadog  WebhooksType = "datadog"
	WebhooksTypeDiscord  WebhooksType = "discord"
	WebhooksTypeFeishu   WebhooksType = "feishu"
	WebhooksTypeGchat    WebhooksType = "gchat"
	WebhooksTypeGeneric  WebhooksType = "generic"
	WebhooksTypeOpsgenie WebhooksType = "opsgenie"
	WebhooksTypeSlack    WebhooksType = "slack"
	WebhooksTypeSplunk   WebhooksType = "splunk"
)

func (WebhooksType) IsKnown

func (r WebhooksType) IsKnown() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL