logpush
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
- Constants
- type ASN
- type ASNParam
- type AuditLog
- type AuditLogAction
- type AuditLogActor
- type AuditLogActorType
- type AuditLogOwner
- type AuditLogResource
- type CertificateCA
- type CertificateRequestType
- type CloudflareTunnel
- type CloudflareTunnelConnection
- type CloudflareTunnelStatus
- type CloudflareTunnelTunType
- type DatasetFieldGetParams
- type DatasetFieldGetParamsDatasetID
- type DatasetFieldGetResponse
- type DatasetFieldGetResponseEnvelope
- type DatasetFieldGetResponseEnvelopeErrors
- type DatasetFieldGetResponseEnvelopeErrorsSource
- type DatasetFieldGetResponseEnvelopeMessages
- type DatasetFieldGetResponseEnvelopeMessagesSource
- type DatasetFieldGetResponseEnvelopeSuccess
- type DatasetFieldService
- type DatasetJobGetParams
- type DatasetJobGetParamsDatasetID
- type DatasetJobService
- func (r *DatasetJobService) Get(ctx context.Context, datasetID DatasetJobGetParamsDatasetID, ...) (res *pagination.SinglePage[LogpushJob], err error)
- func (r *DatasetJobService) GetAutoPaging(ctx context.Context, datasetID DatasetJobGetParamsDatasetID, ...) *pagination.SinglePageAutoPager[LogpushJob]
- type DatasetService
- type EdgeGetParams
- type EdgeNewParams
- type EdgeNewResponseEnvelope
- type EdgeNewResponseEnvelopeErrors
- type EdgeNewResponseEnvelopeErrorsSource
- type EdgeNewResponseEnvelopeMessages
- type EdgeNewResponseEnvelopeMessagesSource
- type EdgeNewResponseEnvelopeSuccess
- type EdgeService
- func (r *EdgeService) Get(ctx context.Context, query EdgeGetParams, opts ...option.RequestOption) (res *pagination.SinglePage[InstantLogpushJob], err error)
- func (r *EdgeService) GetAutoPaging(ctx context.Context, query EdgeGetParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[InstantLogpushJob]
- func (r *EdgeService) New(ctx context.Context, params EdgeNewParams, opts ...option.RequestOption) (res *InstantLogpushJob, err error)
- type Error
- type ErrorData
- type ErrorDataSource
- type InstantLogpushJob
- type JobDeleteParams
- type JobDeleteResponse
- type JobDeleteResponseEnvelope
- type JobDeleteResponseEnvelopeErrors
- type JobDeleteResponseEnvelopeErrorsSource
- type JobDeleteResponseEnvelopeMessages
- type JobDeleteResponseEnvelopeMessagesSource
- type JobDeleteResponseEnvelopeSuccess
- type JobGetParams
- type JobGetResponseEnvelope
- type JobGetResponseEnvelopeErrors
- type JobGetResponseEnvelopeErrorsSource
- type JobGetResponseEnvelopeMessages
- type JobGetResponseEnvelopeMessagesSource
- type JobGetResponseEnvelopeSuccess
- type JobListParams
- type JobNewParams
- type JobNewParamsDataset
- type JobNewParamsFrequency
- type JobNewParamsKind
- type JobNewParamsMaxUploadBytes
- type JobNewParamsMaxUploadIntervalSeconds
- type JobNewParamsMaxUploadRecords
- type JobNewResponseEnvelope
- type JobNewResponseEnvelopeErrors
- type JobNewResponseEnvelopeErrorsSource
- type JobNewResponseEnvelopeMessages
- type JobNewResponseEnvelopeMessagesSource
- type JobNewResponseEnvelopeSuccess
- type JobService
- func (r *JobService) Delete(ctx context.Context, jobID int64, body JobDeleteParams, ...) (res *JobDeleteResponse, err error)
- func (r *JobService) Get(ctx context.Context, jobID int64, query JobGetParams, ...) (res *LogpushJob, err error)
- func (r *JobService) List(ctx context.Context, query JobListParams, opts ...option.RequestOption) (res *pagination.SinglePage[LogpushJob], err error)
- func (r *JobService) ListAutoPaging(ctx context.Context, query JobListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[LogpushJob]
- func (r *JobService) New(ctx context.Context, params JobNewParams, opts ...option.RequestOption) (res *LogpushJob, err error)
- func (r *JobService) Update(ctx context.Context, jobID int64, params JobUpdateParams, ...) (res *LogpushJob, err error)
- type JobUpdateParams
- type JobUpdateParamsFrequency
- type JobUpdateParamsKind
- type JobUpdateParamsMaxUploadBytes
- type JobUpdateParamsMaxUploadIntervalSeconds
- type JobUpdateParamsMaxUploadRecords
- type JobUpdateResponseEnvelope
- type JobUpdateResponseEnvelopeErrors
- type JobUpdateResponseEnvelopeErrorsSource
- type JobUpdateResponseEnvelopeMessages
- type JobUpdateResponseEnvelopeMessagesSource
- type JobUpdateResponseEnvelopeSuccess
- type LogpushJob
- type LogpushJobDataset
- type LogpushJobFrequency
- type LogpushJobKind
- type LogpushJobMaxUploadBytes
- type LogpushJobMaxUploadIntervalSeconds
- type LogpushJobMaxUploadRecords
- type LogpushService
- type Member
- type MemberPoliciesAccess
- type MemberPoliciesPermissionGroup
- type MemberPoliciesPermissionGroupsMeta
- type MemberPoliciesResourceGroup
- type MemberPoliciesResourceGroupsMeta
- type MemberPoliciesResourceGroupsScope
- type MemberPoliciesResourceGroupsScopeObject
- type MemberPolicy
- type MemberStatus
- type MemberUser
- type OutputOptions
- type OutputOptionsOutputType
- type OutputOptionsParam
- type OutputOptionsTimestampFormat
- type OwnershipNewParams
- type OwnershipNewResponse
- type OwnershipNewResponseEnvelope
- type OwnershipNewResponseEnvelopeErrors
- type OwnershipNewResponseEnvelopeErrorsSource
- type OwnershipNewResponseEnvelopeMessages
- type OwnershipNewResponseEnvelopeMessagesSource
- type OwnershipNewResponseEnvelopeSuccess
- type OwnershipService
- type OwnershipValidateParams
- type OwnershipValidateResponseEnvelope
- type OwnershipValidateResponseEnvelopeErrors
- type OwnershipValidateResponseEnvelopeErrorsSource
- type OwnershipValidateResponseEnvelopeMessages
- type OwnershipValidateResponseEnvelopeMessagesSource
- type OwnershipValidateResponseEnvelopeSuccess
- type OwnershipValidation
- type Permission
- type PermissionGrant
- type PermissionGrantParam
- type RatePlan
- type RatePlanID
- type RatePlanParam
- type ResponseInfo
- type ResponseInfoSource
- type Role
- type RoleParam
- type RolePermissions
- type RolePermissionsParam
- type SortDirection
- type Subscription
- type SubscriptionFrequency
- type SubscriptionParam
- type SubscriptionState
- type Token
- type TokenCondition
- type TokenConditionCIDRList
- type TokenConditionCIDRListParam
- type TokenConditionParam
- type TokenConditionRequestIP
- type TokenConditionRequestIPParam
- type TokenParam
- type TokenPolicy
- type TokenPolicyEffect
- type TokenPolicyParam
- type TokenPolicyPermissionGroup
- type TokenPolicyPermissionGroupParam
- type TokenPolicyPermissionGroupsMeta
- type TokenPolicyPermissionGroupsMetaParam
- type TokenPolicyResourcesMap
- type TokenPolicyResourcesMapParam
- type TokenPolicyResourcesUnion
- type TokenPolicyResourcesUnionParam
- type TokenStatus
- type TokenValue
- type ValidateDestinationExistsParams
- type ValidateDestinationExistsResponse
- type ValidateDestinationExistsResponseEnvelope
- type ValidateDestinationExistsResponseEnvelopeErrors
- type ValidateDestinationExistsResponseEnvelopeErrorsSource
- type ValidateDestinationExistsResponseEnvelopeMessages
- type ValidateDestinationExistsResponseEnvelopeMessagesSource
- type ValidateDestinationExistsResponseEnvelopeSuccess
- type ValidateDestinationParams
- type ValidateDestinationResponse
- type ValidateDestinationResponseEnvelope
- type ValidateDestinationResponseEnvelopeErrors
- type ValidateDestinationResponseEnvelopeErrorsSource
- type ValidateDestinationResponseEnvelopeMessages
- type ValidateDestinationResponseEnvelopeMessagesSource
- type ValidateDestinationResponseEnvelopeSuccess
- type ValidateOriginParams
- type ValidateOriginResponse
- type ValidateOriginResponseEnvelope
- type ValidateOriginResponseEnvelopeErrors
- type ValidateOriginResponseEnvelopeErrorsSource
- type ValidateOriginResponseEnvelopeMessages
- type ValidateOriginResponseEnvelopeMessagesSource
- type ValidateOriginResponseEnvelopeSuccess
- type ValidateService
- func (r *ValidateService) Destination(ctx context.Context, params ValidateDestinationParams, ...) (res *ValidateDestinationResponse, err error)
- func (r *ValidateService) DestinationExists(ctx context.Context, params ValidateDestinationExistsParams, ...) (res *ValidateDestinationExistsResponse, err error)
- func (r *ValidateService) Origin(ctx context.Context, params ValidateOriginParams, opts ...option.RequestOption) (res *ValidateOriginResponse, err error)
Constants¶
const AuditLogActorTypeAdmin =shared.AuditLogActorTypeAdmin
This is an alias to an internal value.
const AuditLogActorTypeCloudflare =shared.AuditLogActorTypeCloudflare
This is an alias to an internal value.
const AuditLogActorTypeUser =shared.AuditLogActorTypeUser
This is an alias to an internal value.
const CertificateCADigicert =shared.CertificateCADigicert
This is an alias to an internal value.
const CertificateCAGoogle =shared.CertificateCAGoogle
This is an alias to an internal value.
const CertificateCALetsEncrypt =shared.CertificateCALetsEncrypt
This is an alias to an internal value.
const CertificateCASSLCom =shared.CertificateCASSLCom
This is an alias to an internal value.
const CertificateRequestTypeKeylessCertificate =shared.CertificateRequestTypeKeylessCertificate
This is an alias to an internal value.
const CertificateRequestTypeOriginECC =shared.CertificateRequestTypeOriginECC
This is an alias to an internal value.
const CertificateRequestTypeOriginRSA =shared.CertificateRequestTypeOriginRSA
This is an alias to an internal value.
const CloudflareTunnelStatusDegraded =shared.CloudflareTunnelStatusDegraded
This is an alias to an internal value.
const CloudflareTunnelStatusDown =shared.CloudflareTunnelStatusDown
This is an alias to an internal value.
const CloudflareTunnelStatusHealthy =shared.CloudflareTunnelStatusHealthy
This is an alias to an internal value.
const CloudflareTunnelStatusInactive =shared.CloudflareTunnelStatusInactive
This is an alias to an internal value.
const CloudflareTunnelTunTypeCNI =shared.CloudflareTunnelTunTypeCNI
This is an alias to an internal value.
const CloudflareTunnelTunTypeCfdTunnel =shared.CloudflareTunnelTunTypeCfdTunnel
This is an alias to an internal value.
const CloudflareTunnelTunTypeGRE =shared.CloudflareTunnelTunTypeGRE
This is an alias to an internal value.
const CloudflareTunnelTunTypeIPSec =shared.CloudflareTunnelTunTypeIPSec
This is an alias to an internal value.
const CloudflareTunnelTunTypeMagic =shared.CloudflareTunnelTunTypeMagic
This is an alias to an internal value.
const CloudflareTunnelTunTypeWARP =shared.CloudflareTunnelTunTypeWARP
This is an alias to an internal value.
const CloudflareTunnelTunTypeWARPConnector =shared.CloudflareTunnelTunTypeWARPConnector
This is an alias to an internal value.
const MemberPoliciesAccessAllow =shared.MemberPoliciesAccessAllow
This is an alias to an internal value.
const MemberPoliciesAccessDeny =shared.MemberPoliciesAccessDeny
This is an alias to an internal value.
const MemberStatusAccepted =shared.MemberStatusAccepted
This is an alias to an internal value.
const MemberStatusPending =shared.MemberStatusPending
This is an alias to an internal value.
const RatePlanIDBusiness =shared.RatePlanIDBusiness
This is an alias to an internal value.
const RatePlanIDEnterprise =shared.RatePlanIDEnterprise
This is an alias to an internal value.
const RatePlanIDFree =shared.RatePlanIDFree
This is an alias to an internal value.
const RatePlanIDLite =shared.RatePlanIDLite
This is an alias to an internal value.
const RatePlanIDPartnersBusiness =shared.RatePlanIDPartnersBusiness
This is an alias to an internal value.
const RatePlanIDPartnersEnterprise =shared.RatePlanIDPartnersEnterprise
This is an alias to an internal value.
const RatePlanIDPartnersFree =shared.RatePlanIDPartnersFree
This is an alias to an internal value.
const RatePlanIDPartnersPro =shared.RatePlanIDPartnersPro
This is an alias to an internal value.
const RatePlanIDPro =shared.RatePlanIDPro
This is an alias to an internal value.
const RatePlanIDProPlus =shared.RatePlanIDProPlus
This is an alias to an internal value.
const SortDirectionAsc =shared.SortDirectionAsc
This is an alias to an internal value.
const SortDirectionDesc =shared.SortDirectionDesc
This is an alias to an internal value.
const SubscriptionFrequencyMonthly =shared.SubscriptionFrequencyMonthly
This is an alias to an internal value.
const SubscriptionFrequencyQuarterly =shared.SubscriptionFrequencyQuarterly
This is an alias to an internal value.
const SubscriptionFrequencyWeekly =shared.SubscriptionFrequencyWeekly
This is an alias to an internal value.
const SubscriptionFrequencyYearly =shared.SubscriptionFrequencyYearly
This is an alias to an internal value.
const SubscriptionStateAwaitingPayment =shared.SubscriptionStateAwaitingPayment
This is an alias to an internal value.
const SubscriptionStateCancelled =shared.SubscriptionStateCancelled
This is an alias to an internal value.
const SubscriptionStateExpired =shared.SubscriptionStateExpired
This is an alias to an internal value.
const SubscriptionStateFailed =shared.SubscriptionStateFailed
This is an alias to an internal value.
const SubscriptionStatePaid =shared.SubscriptionStatePaid
This is an alias to an internal value.
const SubscriptionStateProvisioned =shared.SubscriptionStateProvisioned
This is an alias to an internal value.
const SubscriptionStateTrial =shared.SubscriptionStateTrial
This is an alias to an internal value.
const TokenPolicyEffectAllow =shared.TokenPolicyEffectAllow
This is an alias to an internal value.
const TokenPolicyEffectDeny =shared.TokenPolicyEffectDeny
This is an alias to an internal value.
const TokenStatusActive =shared.TokenStatusActive
This is an alias to an internal value.
const TokenStatusDisabled =shared.TokenStatusDisabled
This is an alias to an internal value.
const TokenStatusExpired =shared.TokenStatusExpired
This is an alias to an internal value.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeAuditLogActorType¶
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.
typeAuditLogResource¶
type AuditLogResource =shared.AuditLogResource
This is an alias to an internal type.
typeCertificateCA¶
type CertificateCA =shared.CertificateCA
The Certificate Authority that will issue the certificate
This is an alias to an internal type.
typeCertificateRequestType¶
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.
typeCloudflareTunnel¶
type CloudflareTunnel =shared.CloudflareTunnel
A Cloudflare Tunnel that connects your origin to Cloudflare's edge.
This is an alias to an internal type.
typeCloudflareTunnelConnection¶
type CloudflareTunnelConnection =shared.CloudflareTunnelConnection
This is an alias to an internal type.
typeCloudflareTunnelStatus¶
type CloudflareTunnelStatus =shared.CloudflareTunnelStatus
The status of the tunnel. Valid values are `inactive` (tunnel has never beenrun), `degraded` (tunnel is active and able to serve traffic but in an unhealthystate), `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.
typeCloudflareTunnelTunType¶
type CloudflareTunnelTunType =shared.CloudflareTunnelTunType
The type of tunnel.
This is an alias to an internal type.
typeDatasetFieldGetParamsDatasetID¶added inv4.3.0
type DatasetFieldGetParamsDatasetIDstring
Name of the dataset. A list of supported datasets can be found on the[Developer Docs](https://developers.cloudflare.com/logs/reference/log-fields/).
const (DatasetFieldGetParamsDatasetIDAccessRequestsDatasetFieldGetParamsDatasetID = "access_requests"DatasetFieldGetParamsDatasetIDAuditLogsDatasetFieldGetParamsDatasetID = "audit_logs"DatasetFieldGetParamsDatasetIDBISOUserActionsDatasetFieldGetParamsDatasetID = "biso_user_actions"DatasetFieldGetParamsDatasetIDCasbFindingsDatasetFieldGetParamsDatasetID = "casb_findings"DatasetFieldGetParamsDatasetIDDevicePostureResultsDatasetFieldGetParamsDatasetID = "device_posture_results"DatasetFieldGetParamsDatasetIDDLPForensicCopiesDatasetFieldGetParamsDatasetID = "dlp_forensic_copies"DatasetFieldGetParamsDatasetIDDNSFirewallLogsDatasetFieldGetParamsDatasetID = "dns_firewall_logs"DatasetFieldGetParamsDatasetIDDNSLogsDatasetFieldGetParamsDatasetID = "dns_logs"DatasetFieldGetParamsDatasetIDEmailSecurityAlertsDatasetFieldGetParamsDatasetID = "email_security_alerts"DatasetFieldGetParamsDatasetIDFirewallEventsDatasetFieldGetParamsDatasetID = "firewall_events"DatasetFieldGetParamsDatasetIDGatewayDNSDatasetFieldGetParamsDatasetID = "gateway_dns"DatasetFieldGetParamsDatasetIDGatewayHTTPDatasetFieldGetParamsDatasetID = "gateway_http"DatasetFieldGetParamsDatasetIDGatewayNetworkDatasetFieldGetParamsDatasetID = "gateway_network"DatasetFieldGetParamsDatasetIDHTTPRequestsDatasetFieldGetParamsDatasetID = "http_requests"DatasetFieldGetParamsDatasetIDMagicIDsDetectionsDatasetFieldGetParamsDatasetID = "magic_ids_detections"DatasetFieldGetParamsDatasetIDNELReportsDatasetFieldGetParamsDatasetID = "nel_reports"DatasetFieldGetParamsDatasetIDNetworkAnalyticsLogsDatasetFieldGetParamsDatasetID = "network_analytics_logs"DatasetFieldGetParamsDatasetIDPageShieldEventsDatasetFieldGetParamsDatasetID = "page_shield_events"DatasetFieldGetParamsDatasetIDSinkholeHTTPLogsDatasetFieldGetParamsDatasetID = "sinkhole_http_logs"DatasetFieldGetParamsDatasetIDSpectrumEventsDatasetFieldGetParamsDatasetID = "spectrum_events"DatasetFieldGetParamsDatasetIDSSHLogsDatasetFieldGetParamsDatasetID = "ssh_logs"DatasetFieldGetParamsDatasetIDWorkersTraceEventsDatasetFieldGetParamsDatasetID = "workers_trace_events"DatasetFieldGetParamsDatasetIDZarazEventsDatasetFieldGetParamsDatasetID = "zaraz_events"DatasetFieldGetParamsDatasetIDZeroTrustNetworkSessionsDatasetFieldGetParamsDatasetID = "zero_trust_network_sessions")
func (DatasetFieldGetParamsDatasetID)IsKnown¶added inv4.3.0
func (rDatasetFieldGetParamsDatasetID) IsKnown()bool
typeDatasetFieldGetResponse¶
type DatasetFieldGetResponse = interface{}
typeDatasetFieldGetResponseEnvelope¶
type DatasetFieldGetResponseEnvelope struct {Errors []DatasetFieldGetResponseEnvelopeErrors `json:"errors,required"`Messages []DatasetFieldGetResponseEnvelopeMessages `json:"messages,required"`// Whether the API call was successful.SuccessDatasetFieldGetResponseEnvelopeSuccess `json:"success,required"`ResultDatasetFieldGetResponse `json:"result"`JSON datasetFieldGetResponseEnvelopeJSON `json:"-"`}
func (*DatasetFieldGetResponseEnvelope)UnmarshalJSON¶
func (r *DatasetFieldGetResponseEnvelope) UnmarshalJSON(data []byte) (errerror)
typeDatasetFieldGetResponseEnvelopeErrors¶added inv4.3.0
type DatasetFieldGetResponseEnvelopeErrors struct {Codeint64 `json:"code,required"`Messagestring `json:"message,required"`DocumentationURLstring `json:"documentation_url"`SourceDatasetFieldGetResponseEnvelopeErrorsSource `json:"source"`JSON datasetFieldGetResponseEnvelopeErrorsJSON `json:"-"`}
func (*DatasetFieldGetResponseEnvelopeErrors)UnmarshalJSON¶added inv4.3.0
func (r *DatasetFieldGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (errerror)
typeDatasetFieldGetResponseEnvelopeErrorsSource¶added inv4.3.0
type DatasetFieldGetResponseEnvelopeErrorsSource struct {Pointerstring `json:"pointer"`JSON datasetFieldGetResponseEnvelopeErrorsSourceJSON `json:"-"`}
func (*DatasetFieldGetResponseEnvelopeErrorsSource)UnmarshalJSON¶added inv4.3.0
func (r *DatasetFieldGetResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (errerror)
typeDatasetFieldGetResponseEnvelopeMessages¶added inv4.3.0
type DatasetFieldGetResponseEnvelopeMessages struct {Codeint64 `json:"code,required"`Messagestring `json:"message,required"`DocumentationURLstring `json:"documentation_url"`SourceDatasetFieldGetResponseEnvelopeMessagesSource `json:"source"`JSON datasetFieldGetResponseEnvelopeMessagesJSON `json:"-"`}
func (*DatasetFieldGetResponseEnvelopeMessages)UnmarshalJSON¶added inv4.3.0
func (r *DatasetFieldGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (errerror)
typeDatasetFieldGetResponseEnvelopeMessagesSource¶added inv4.3.0
type DatasetFieldGetResponseEnvelopeMessagesSource struct {Pointerstring `json:"pointer"`JSON datasetFieldGetResponseEnvelopeMessagesSourceJSON `json:"-"`}
func (*DatasetFieldGetResponseEnvelopeMessagesSource)UnmarshalJSON¶added inv4.3.0
func (r *DatasetFieldGetResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (errerror)
typeDatasetFieldGetResponseEnvelopeSuccess¶
type DatasetFieldGetResponseEnvelopeSuccessbool
Whether the API call was successful.
const (DatasetFieldGetResponseEnvelopeSuccessTrueDatasetFieldGetResponseEnvelopeSuccess =true)
func (DatasetFieldGetResponseEnvelopeSuccess)IsKnown¶
func (rDatasetFieldGetResponseEnvelopeSuccess) IsKnown()bool
typeDatasetFieldService¶
type DatasetFieldService struct {Options []option.RequestOption}
DatasetFieldService contains methods and other services that help withinteracting with the cloudflare API.
Note, unlike clients, this service does not read variables from the environmentautomatically. You should not instantiate this service directly, and instead usetheNewDatasetFieldService method instead.
funcNewDatasetFieldService¶
func NewDatasetFieldService(opts ...option.RequestOption) (r *DatasetFieldService)
NewDatasetFieldService generates a new service that applies the given options toeach request. These options are applied after the parent client's options (ifthere is one), and before any request-specific options.
func (*DatasetFieldService)Get¶
func (r *DatasetFieldService) Get(ctxcontext.Context, datasetIDDatasetFieldGetParamsDatasetID, queryDatasetFieldGetParams, opts ...option.RequestOption) (res *DatasetFieldGetResponse, errerror)
Lists all fields available for a dataset. The response result is an object withkey-value pairs, where keys are field names, and values are descriptions.
typeDatasetJobGetParamsDatasetID¶added inv4.3.0
type DatasetJobGetParamsDatasetIDstring
Name of the dataset. A list of supported datasets can be found on the[Developer Docs](https://developers.cloudflare.com/logs/reference/log-fields/).
const (DatasetJobGetParamsDatasetIDAccessRequestsDatasetJobGetParamsDatasetID = "access_requests"DatasetJobGetParamsDatasetIDAuditLogsDatasetJobGetParamsDatasetID = "audit_logs"DatasetJobGetParamsDatasetIDBISOUserActionsDatasetJobGetParamsDatasetID = "biso_user_actions"DatasetJobGetParamsDatasetIDCasbFindingsDatasetJobGetParamsDatasetID = "casb_findings"DatasetJobGetParamsDatasetIDDevicePostureResultsDatasetJobGetParamsDatasetID = "device_posture_results"DatasetJobGetParamsDatasetIDDLPForensicCopiesDatasetJobGetParamsDatasetID = "dlp_forensic_copies"DatasetJobGetParamsDatasetIDDNSFirewallLogsDatasetJobGetParamsDatasetID = "dns_firewall_logs"DatasetJobGetParamsDatasetIDDNSLogsDatasetJobGetParamsDatasetID = "dns_logs"DatasetJobGetParamsDatasetIDEmailSecurityAlertsDatasetJobGetParamsDatasetID = "email_security_alerts"DatasetJobGetParamsDatasetIDFirewallEventsDatasetJobGetParamsDatasetID = "firewall_events"DatasetJobGetParamsDatasetIDGatewayDNSDatasetJobGetParamsDatasetID = "gateway_dns"DatasetJobGetParamsDatasetIDGatewayHTTPDatasetJobGetParamsDatasetID = "gateway_http"DatasetJobGetParamsDatasetIDGatewayNetworkDatasetJobGetParamsDatasetID = "gateway_network"DatasetJobGetParamsDatasetIDHTTPRequestsDatasetJobGetParamsDatasetID = "http_requests"DatasetJobGetParamsDatasetIDMagicIDsDetectionsDatasetJobGetParamsDatasetID = "magic_ids_detections"DatasetJobGetParamsDatasetIDNELReportsDatasetJobGetParamsDatasetID = "nel_reports"DatasetJobGetParamsDatasetIDNetworkAnalyticsLogsDatasetJobGetParamsDatasetID = "network_analytics_logs"DatasetJobGetParamsDatasetIDPageShieldEventsDatasetJobGetParamsDatasetID = "page_shield_events"DatasetJobGetParamsDatasetIDSinkholeHTTPLogsDatasetJobGetParamsDatasetID = "sinkhole_http_logs"DatasetJobGetParamsDatasetIDSpectrumEventsDatasetJobGetParamsDatasetID = "spectrum_events"DatasetJobGetParamsDatasetIDSSHLogsDatasetJobGetParamsDatasetID = "ssh_logs"DatasetJobGetParamsDatasetIDWorkersTraceEventsDatasetJobGetParamsDatasetID = "workers_trace_events"DatasetJobGetParamsDatasetIDZarazEventsDatasetJobGetParamsDatasetID = "zaraz_events"DatasetJobGetParamsDatasetIDZeroTrustNetworkSessionsDatasetJobGetParamsDatasetID = "zero_trust_network_sessions")
func (DatasetJobGetParamsDatasetID)IsKnown¶added inv4.3.0
func (rDatasetJobGetParamsDatasetID) IsKnown()bool
typeDatasetJobService¶
type DatasetJobService struct {Options []option.RequestOption}
DatasetJobService contains methods and other services that help with interactingwith the cloudflare API.
Note, unlike clients, this service does not read variables from the environmentautomatically. You should not instantiate this service directly, and instead usetheNewDatasetJobService method instead.
funcNewDatasetJobService¶
func NewDatasetJobService(opts ...option.RequestOption) (r *DatasetJobService)
NewDatasetJobService generates a new service that applies the given options toeach request. These options are applied after the parent client's options (ifthere is one), and before any request-specific options.
func (*DatasetJobService)Get¶
func (r *DatasetJobService) Get(ctxcontext.Context, datasetIDDatasetJobGetParamsDatasetID, queryDatasetJobGetParams, opts ...option.RequestOption) (res *pagination.SinglePage[LogpushJob], errerror)
Lists Logpush jobs for an account or zone for a dataset.
func (*DatasetJobService)GetAutoPaging¶added inv4.1.0
func (r *DatasetJobService) GetAutoPaging(ctxcontext.Context, datasetIDDatasetJobGetParamsDatasetID, queryDatasetJobGetParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[LogpushJob]
Lists Logpush jobs for an account or zone for a dataset.
typeDatasetService¶
type DatasetService struct {Options []option.RequestOptionFields *DatasetFieldServiceJobs *DatasetJobService}
DatasetService contains methods and other services that help with interactingwith the cloudflare API.
Note, unlike clients, this service does not read variables from the environmentautomatically. You should not instantiate this service directly, and instead usetheNewDatasetService method instead.
funcNewDatasetService¶
func NewDatasetService(opts ...option.RequestOption) (r *DatasetService)
NewDatasetService generates a new service that applies the given options to eachrequest. These options are applied after the parent client's options (if thereis one), and before any request-specific options.
typeEdgeGetParams¶
typeEdgeNewParams¶
type EdgeNewParams struct {// Identifier.ZoneIDparam.Field[string] `path:"zone_id,required"`// Comma-separated list of fields.Fieldsparam.Field[string] `json:"fields"`// Filters to drill down into specific events.Filterparam.Field[string] `json:"filter"`// The sample parameter is the sample rate of the records set by the client:// "sample": 1 is 100% of records "sample": 10 is 10% and so on.Sampleparam.Field[int64] `json:"sample"`}
func (EdgeNewParams)MarshalJSON¶
func (rEdgeNewParams) MarshalJSON() (data []byte, errerror)
typeEdgeNewResponseEnvelope¶
type EdgeNewResponseEnvelope struct {Errors []EdgeNewResponseEnvelopeErrors `json:"errors,required"`Messages []EdgeNewResponseEnvelopeMessages `json:"messages,required"`// Whether the API call was successful.SuccessEdgeNewResponseEnvelopeSuccess `json:"success,required"`ResultInstantLogpushJob `json:"result,nullable"`JSON edgeNewResponseEnvelopeJSON `json:"-"`}
func (*EdgeNewResponseEnvelope)UnmarshalJSON¶
func (r *EdgeNewResponseEnvelope) UnmarshalJSON(data []byte) (errerror)
typeEdgeNewResponseEnvelopeErrors¶added inv4.3.0
type EdgeNewResponseEnvelopeErrors struct {Codeint64 `json:"code,required"`Messagestring `json:"message,required"`DocumentationURLstring `json:"documentation_url"`SourceEdgeNewResponseEnvelopeErrorsSource `json:"source"`JSON edgeNewResponseEnvelopeErrorsJSON `json:"-"`}
func (*EdgeNewResponseEnvelopeErrors)UnmarshalJSON¶added inv4.3.0
func (r *EdgeNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (errerror)
typeEdgeNewResponseEnvelopeErrorsSource¶added inv4.3.0
type EdgeNewResponseEnvelopeErrorsSource struct {Pointerstring `json:"pointer"`JSON edgeNewResponseEnvelopeErrorsSourceJSON `json:"-"`}
func (*EdgeNewResponseEnvelopeErrorsSource)UnmarshalJSON¶added inv4.3.0
func (r *EdgeNewResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (errerror)
typeEdgeNewResponseEnvelopeMessages¶added inv4.3.0
type EdgeNewResponseEnvelopeMessages struct {Codeint64 `json:"code,required"`Messagestring `json:"message,required"`DocumentationURLstring `json:"documentation_url"`SourceEdgeNewResponseEnvelopeMessagesSource `json:"source"`JSON edgeNewResponseEnvelopeMessagesJSON `json:"-"`}
func (*EdgeNewResponseEnvelopeMessages)UnmarshalJSON¶added inv4.3.0
func (r *EdgeNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (errerror)
typeEdgeNewResponseEnvelopeMessagesSource¶added inv4.3.0
type EdgeNewResponseEnvelopeMessagesSource struct {Pointerstring `json:"pointer"`JSON edgeNewResponseEnvelopeMessagesSourceJSON `json:"-"`}
func (*EdgeNewResponseEnvelopeMessagesSource)UnmarshalJSON¶added inv4.3.0
func (r *EdgeNewResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (errerror)
typeEdgeNewResponseEnvelopeSuccess¶
type EdgeNewResponseEnvelopeSuccessbool
Whether the API call was successful.
const (EdgeNewResponseEnvelopeSuccessTrueEdgeNewResponseEnvelopeSuccess =true)
func (EdgeNewResponseEnvelopeSuccess)IsKnown¶
func (rEdgeNewResponseEnvelopeSuccess) IsKnown()bool
typeEdgeService¶
type EdgeService struct {Options []option.RequestOption}
EdgeService contains methods and other services that help with interacting withthe cloudflare API.
Note, unlike clients, this service does not read variables from the environmentautomatically. You should not instantiate this service directly, and instead usetheNewEdgeService method instead.
funcNewEdgeService¶
func NewEdgeService(opts ...option.RequestOption) (r *EdgeService)
NewEdgeService generates a new service that applies the given options to eachrequest. These options are applied after the parent client's options (if thereis one), and before any request-specific options.
func (*EdgeService)Get¶
func (r *EdgeService) Get(ctxcontext.Context, queryEdgeGetParams, opts ...option.RequestOption) (res *pagination.SinglePage[InstantLogpushJob], errerror)
Lists Instant Logs jobs for a zone.
func (*EdgeService)GetAutoPaging¶added inv4.1.0
func (r *EdgeService) GetAutoPaging(ctxcontext.Context, queryEdgeGetParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[InstantLogpushJob]
Lists Instant Logs jobs for a zone.
func (*EdgeService)New¶
func (r *EdgeService) New(ctxcontext.Context, paramsEdgeNewParams, opts ...option.RequestOption) (res *InstantLogpushJob, errerror)
Creates a new Instant Logs job for a zone.
typeErrorDataSource¶added inv4.2.0
type ErrorDataSource =shared.ErrorDataSource
This is an alias to an internal type.
typeInstantLogpushJob¶
type InstantLogpushJob struct {// Unique WebSocket address that will receive messages from Cloudflare’s edge.DestinationConfstring `json:"destination_conf" format:"uri"`// Comma-separated list of fields.Fieldsstring `json:"fields"`// Filters to drill down into specific events.Filterstring `json:"filter"`// The sample parameter is the sample rate of the records set by the client:// "sample": 1 is 100% of records "sample": 10 is 10% and so on.Sampleint64 `json:"sample"`// Unique session id of the job.SessionIDstring `json:"session_id"`JSON instantLogpushJobJSON `json:"-"`}
func (*InstantLogpushJob)UnmarshalJSON¶
func (r *InstantLogpushJob) UnmarshalJSON(data []byte) (errerror)
typeJobDeleteParams¶
typeJobDeleteResponse¶
type JobDeleteResponse struct {// Unique id of the job.IDint64 `json:"id"`JSON jobDeleteResponseJSON `json:"-"`}
func (*JobDeleteResponse)UnmarshalJSON¶
func (r *JobDeleteResponse) UnmarshalJSON(data []byte) (errerror)
typeJobDeleteResponseEnvelope¶
type JobDeleteResponseEnvelope struct {Errors []JobDeleteResponseEnvelopeErrors `json:"errors,required"`Messages []JobDeleteResponseEnvelopeMessages `json:"messages,required"`// Whether the API call was successful.SuccessJobDeleteResponseEnvelopeSuccess `json:"success,required"`ResultJobDeleteResponse `json:"result"`JSON jobDeleteResponseEnvelopeJSON `json:"-"`}
func (*JobDeleteResponseEnvelope)UnmarshalJSON¶
func (r *JobDeleteResponseEnvelope) UnmarshalJSON(data []byte) (errerror)
typeJobDeleteResponseEnvelopeErrors¶added inv4.3.0
type JobDeleteResponseEnvelopeErrors struct {Codeint64 `json:"code,required"`Messagestring `json:"message,required"`DocumentationURLstring `json:"documentation_url"`SourceJobDeleteResponseEnvelopeErrorsSource `json:"source"`JSON jobDeleteResponseEnvelopeErrorsJSON `json:"-"`}
func (*JobDeleteResponseEnvelopeErrors)UnmarshalJSON¶added inv4.3.0
func (r *JobDeleteResponseEnvelopeErrors) UnmarshalJSON(data []byte) (errerror)
typeJobDeleteResponseEnvelopeErrorsSource¶added inv4.3.0
type JobDeleteResponseEnvelopeErrorsSource struct {Pointerstring `json:"pointer"`JSON jobDeleteResponseEnvelopeErrorsSourceJSON `json:"-"`}
func (*JobDeleteResponseEnvelopeErrorsSource)UnmarshalJSON¶added inv4.3.0
func (r *JobDeleteResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (errerror)
typeJobDeleteResponseEnvelopeMessages¶added inv4.3.0
type JobDeleteResponseEnvelopeMessages struct {Codeint64 `json:"code,required"`Messagestring `json:"message,required"`DocumentationURLstring `json:"documentation_url"`SourceJobDeleteResponseEnvelopeMessagesSource `json:"source"`JSON jobDeleteResponseEnvelopeMessagesJSON `json:"-"`}
func (*JobDeleteResponseEnvelopeMessages)UnmarshalJSON¶added inv4.3.0
func (r *JobDeleteResponseEnvelopeMessages) UnmarshalJSON(data []byte) (errerror)
typeJobDeleteResponseEnvelopeMessagesSource¶added inv4.3.0
type JobDeleteResponseEnvelopeMessagesSource struct {Pointerstring `json:"pointer"`JSON jobDeleteResponseEnvelopeMessagesSourceJSON `json:"-"`}
func (*JobDeleteResponseEnvelopeMessagesSource)UnmarshalJSON¶added inv4.3.0
func (r *JobDeleteResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (errerror)
typeJobDeleteResponseEnvelopeSuccess¶
type JobDeleteResponseEnvelopeSuccessbool
Whether the API call was successful.
const (JobDeleteResponseEnvelopeSuccessTrueJobDeleteResponseEnvelopeSuccess =true)
func (JobDeleteResponseEnvelopeSuccess)IsKnown¶
func (rJobDeleteResponseEnvelopeSuccess) IsKnown()bool
typeJobGetParams¶
typeJobGetResponseEnvelope¶
type JobGetResponseEnvelope struct {Errors []JobGetResponseEnvelopeErrors `json:"errors,required"`Messages []JobGetResponseEnvelopeMessages `json:"messages,required"`// Whether the API call was successful.SuccessJobGetResponseEnvelopeSuccess `json:"success,required"`ResultLogpushJob `json:"result,nullable"`JSON jobGetResponseEnvelopeJSON `json:"-"`}
func (*JobGetResponseEnvelope)UnmarshalJSON¶
func (r *JobGetResponseEnvelope) UnmarshalJSON(data []byte) (errerror)
typeJobGetResponseEnvelopeErrors¶added inv4.3.0
type JobGetResponseEnvelopeErrors struct {Codeint64 `json:"code,required"`Messagestring `json:"message,required"`DocumentationURLstring `json:"documentation_url"`SourceJobGetResponseEnvelopeErrorsSource `json:"source"`JSON jobGetResponseEnvelopeErrorsJSON `json:"-"`}
func (*JobGetResponseEnvelopeErrors)UnmarshalJSON¶added inv4.3.0
func (r *JobGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (errerror)
typeJobGetResponseEnvelopeErrorsSource¶added inv4.3.0
type JobGetResponseEnvelopeErrorsSource struct {Pointerstring `json:"pointer"`JSON jobGetResponseEnvelopeErrorsSourceJSON `json:"-"`}
func (*JobGetResponseEnvelopeErrorsSource)UnmarshalJSON¶added inv4.3.0
func (r *JobGetResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (errerror)
typeJobGetResponseEnvelopeMessages¶added inv4.3.0
type JobGetResponseEnvelopeMessages struct {Codeint64 `json:"code,required"`Messagestring `json:"message,required"`DocumentationURLstring `json:"documentation_url"`SourceJobGetResponseEnvelopeMessagesSource `json:"source"`JSON jobGetResponseEnvelopeMessagesJSON `json:"-"`}
func (*JobGetResponseEnvelopeMessages)UnmarshalJSON¶added inv4.3.0
func (r *JobGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (errerror)
typeJobGetResponseEnvelopeMessagesSource¶added inv4.3.0
type JobGetResponseEnvelopeMessagesSource struct {Pointerstring `json:"pointer"`JSON jobGetResponseEnvelopeMessagesSourceJSON `json:"-"`}
func (*JobGetResponseEnvelopeMessagesSource)UnmarshalJSON¶added inv4.3.0
func (r *JobGetResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (errerror)
typeJobGetResponseEnvelopeSuccess¶
type JobGetResponseEnvelopeSuccessbool
Whether the API call was successful.
const (JobGetResponseEnvelopeSuccessTrueJobGetResponseEnvelopeSuccess =true)
func (JobGetResponseEnvelopeSuccess)IsKnown¶
func (rJobGetResponseEnvelopeSuccess) IsKnown()bool
typeJobListParams¶
typeJobNewParams¶
type JobNewParams struct {// Uniquely identifies a resource (such as an s3 bucket) where data will be pushed.// Additional configuration parameters supported by the destination may be// included.DestinationConfparam.Field[string] `json:"destination_conf,required" format:"uri"`// The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.AccountIDparam.Field[string] `path:"account_id"`// The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.ZoneIDparam.Field[string] `path:"zone_id"`// Name of the dataset. A list of supported datasets can be found on the// [Developer Docs](https://developers.cloudflare.com/logs/reference/log-fields/).Datasetparam.Field[JobNewParamsDataset] `json:"dataset"`// Flag that indicates if the job is enabled.Enabledparam.Field[bool] `json:"enabled"`// The filters to select the events to include and/or remove from your logs. For// more information, refer to// [Filters](https://developers.cloudflare.com/logs/reference/filters/).Filterparam.Field[string] `json:"filter"`// This field is deprecated. Please use `max_upload_*` parameters instead. The// frequency at which Cloudflare sends batches of logs to your destination. Setting// frequency to high sends your logs in larger quantities of smaller files. Setting// frequency to low sends logs in smaller quantities of larger files.Frequencyparam.Field[JobNewParamsFrequency] `json:"frequency"`// The kind parameter (optional) is used to differentiate between Logpush and Edge// Log Delivery jobs (when supported by the dataset).Kindparam.Field[JobNewParamsKind] `json:"kind"`// This field is deprecated. Use `output_options` instead. Configuration string. It// specifies things like requested fields and timestamp formats. If migrating from// the logpull api, copy the url (full url or just the query string) of your call// here, and logpush will keep on making this call for you, setting start and end// times appropriately.LogpullOptionsparam.Field[string] `json:"logpull_options" format:"uri-reference"`// The maximum uncompressed file size of a batch of logs. This setting value must// be between `5 MB` and `1 GB`, or `0` to disable it. Note that you cannot set a// minimum file size; this means that log files may be much smaller than this batch// size.MaxUploadBytesparam.Field[JobNewParamsMaxUploadBytes] `json:"max_upload_bytes"`// The maximum interval in seconds for log batches. This setting must be between 30// and 300 seconds (5 minutes), or `0` to disable it. Note that you cannot specify// a minimum interval for log batches; this means that log files may be sent in// shorter intervals than this.MaxUploadIntervalSecondsparam.Field[JobNewParamsMaxUploadIntervalSeconds] `json:"max_upload_interval_seconds"`// The maximum number of log lines per batch. This setting must be between 1000 and// 1,000,000 lines, or `0` to disable it. Note that you cannot specify a minimum// number of log lines per batch; this means that log files may contain many fewer// lines than this.MaxUploadRecordsparam.Field[JobNewParamsMaxUploadRecords] `json:"max_upload_records"`// Optional human readable job name. Not unique. Cloudflare suggests that you set// this to a meaningful string, like the domain name, to make it easier to identify// your job.Nameparam.Field[string] `json:"name"`// The structured replacement for `logpull_options`. When including this field, the// `logpull_option` field will be ignored.OutputOptionsparam.Field[OutputOptionsParam] `json:"output_options"`// Ownership challenge token to prove destination ownership.OwnershipChallengeparam.Field[string] `json:"ownership_challenge"`}
func (JobNewParams)MarshalJSON¶
func (rJobNewParams) MarshalJSON() (data []byte, errerror)
typeJobNewParamsDataset¶added inv4.3.0
type JobNewParamsDatasetstring
Name of the dataset. A list of supported datasets can be found on the[Developer Docs](https://developers.cloudflare.com/logs/reference/log-fields/).
const (JobNewParamsDatasetAccessRequestsJobNewParamsDataset = "access_requests"JobNewParamsDatasetAuditLogsJobNewParamsDataset = "audit_logs"JobNewParamsDatasetBISOUserActionsJobNewParamsDataset = "biso_user_actions"JobNewParamsDatasetCasbFindingsJobNewParamsDataset = "casb_findings"JobNewParamsDatasetDevicePostureResultsJobNewParamsDataset = "device_posture_results"JobNewParamsDatasetDLPForensicCopiesJobNewParamsDataset = "dlp_forensic_copies"JobNewParamsDatasetDNSFirewallLogsJobNewParamsDataset = "dns_firewall_logs"JobNewParamsDatasetDNSLogsJobNewParamsDataset = "dns_logs"JobNewParamsDatasetEmailSecurityAlertsJobNewParamsDataset = "email_security_alerts"JobNewParamsDatasetFirewallEventsJobNewParamsDataset = "firewall_events"JobNewParamsDatasetGatewayDNSJobNewParamsDataset = "gateway_dns"JobNewParamsDatasetGatewayHTTPJobNewParamsDataset = "gateway_http"JobNewParamsDatasetGatewayNetworkJobNewParamsDataset = "gateway_network"JobNewParamsDatasetHTTPRequestsJobNewParamsDataset = "http_requests"JobNewParamsDatasetMagicIDsDetectionsJobNewParamsDataset = "magic_ids_detections"JobNewParamsDatasetNELReportsJobNewParamsDataset = "nel_reports"JobNewParamsDatasetNetworkAnalyticsLogsJobNewParamsDataset = "network_analytics_logs"JobNewParamsDatasetPageShieldEventsJobNewParamsDataset = "page_shield_events"JobNewParamsDatasetSinkholeHTTPLogsJobNewParamsDataset = "sinkhole_http_logs"JobNewParamsDatasetSpectrumEventsJobNewParamsDataset = "spectrum_events"JobNewParamsDatasetSSHLogsJobNewParamsDataset = "ssh_logs"JobNewParamsDatasetWorkersTraceEventsJobNewParamsDataset = "workers_trace_events"JobNewParamsDatasetZarazEventsJobNewParamsDataset = "zaraz_events"JobNewParamsDatasetZeroTrustNetworkSessionsJobNewParamsDataset = "zero_trust_network_sessions")
func (JobNewParamsDataset)IsKnown¶added inv4.3.0
func (rJobNewParamsDataset) IsKnown()bool
typeJobNewParamsFrequency¶
type JobNewParamsFrequencystring
This field is deprecated. Please use `max_upload_*` parameters instead. Thefrequency at which Cloudflare sends batches of logs to your destination. Settingfrequency to high sends your logs in larger quantities of smaller files. Settingfrequency to low sends logs in smaller quantities of larger files.
const (JobNewParamsFrequencyHighJobNewParamsFrequency = "high"JobNewParamsFrequencyLowJobNewParamsFrequency = "low")
func (JobNewParamsFrequency)IsKnown¶
func (rJobNewParamsFrequency) IsKnown()bool
typeJobNewParamsKind¶
type JobNewParamsKindstring
The kind parameter (optional) is used to differentiate between Logpush and EdgeLog Delivery jobs (when supported by the dataset).
const (JobNewParamsKindEmptyJobNewParamsKind = ""JobNewParamsKindEdgeJobNewParamsKind = "edge")
func (JobNewParamsKind)IsKnown¶
func (rJobNewParamsKind) IsKnown()bool
typeJobNewParamsMaxUploadBytes¶added inv4.6.0
type JobNewParamsMaxUploadBytesfloat64
The maximum uncompressed file size of a batch of logs. This setting value mustbe between `5 MB` and `1 GB`, or `0` to disable it. Note that you cannot set aminimum file size; this means that log files may be much smaller than this batchsize.
const (JobNewParamsMaxUploadBytes0JobNewParamsMaxUploadBytes = 0)
func (JobNewParamsMaxUploadBytes)IsKnown¶added inv4.6.0
func (rJobNewParamsMaxUploadBytes) IsKnown()bool
typeJobNewParamsMaxUploadIntervalSeconds¶added inv4.6.0
type JobNewParamsMaxUploadIntervalSecondsfloat64
The maximum interval in seconds for log batches. This setting must be between 30and 300 seconds (5 minutes), or `0` to disable it. Note that you cannot specifya minimum interval for log batches; this means that log files may be sent inshorter intervals than this.
const (JobNewParamsMaxUploadIntervalSeconds0JobNewParamsMaxUploadIntervalSeconds = 0)
func (JobNewParamsMaxUploadIntervalSeconds)IsKnown¶added inv4.6.0
func (rJobNewParamsMaxUploadIntervalSeconds) IsKnown()bool
typeJobNewParamsMaxUploadRecords¶added inv4.6.0
type JobNewParamsMaxUploadRecordsfloat64
The maximum number of log lines per batch. This setting must be between 1000 and1,000,000 lines, or `0` to disable it. Note that you cannot specify a minimumnumber of log lines per batch; this means that log files may contain many fewerlines than this.
const (JobNewParamsMaxUploadRecords0JobNewParamsMaxUploadRecords = 0)
func (JobNewParamsMaxUploadRecords)IsKnown¶added inv4.6.0
func (rJobNewParamsMaxUploadRecords) IsKnown()bool
typeJobNewResponseEnvelope¶
type JobNewResponseEnvelope struct {Errors []JobNewResponseEnvelopeErrors `json:"errors,required"`Messages []JobNewResponseEnvelopeMessages `json:"messages,required"`// Whether the API call was successful.SuccessJobNewResponseEnvelopeSuccess `json:"success,required"`ResultLogpushJob `json:"result,nullable"`JSON jobNewResponseEnvelopeJSON `json:"-"`}
func (*JobNewResponseEnvelope)UnmarshalJSON¶
func (r *JobNewResponseEnvelope) UnmarshalJSON(data []byte) (errerror)
typeJobNewResponseEnvelopeErrors¶added inv4.3.0
type JobNewResponseEnvelopeErrors struct {Codeint64 `json:"code,required"`Messagestring `json:"message,required"`DocumentationURLstring `json:"documentation_url"`SourceJobNewResponseEnvelopeErrorsSource `json:"source"`JSON jobNewResponseEnvelopeErrorsJSON `json:"-"`}
func (*JobNewResponseEnvelopeErrors)UnmarshalJSON¶added inv4.3.0
func (r *JobNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (errerror)
typeJobNewResponseEnvelopeErrorsSource¶added inv4.3.0
type JobNewResponseEnvelopeErrorsSource struct {Pointerstring `json:"pointer"`JSON jobNewResponseEnvelopeErrorsSourceJSON `json:"-"`}
func (*JobNewResponseEnvelopeErrorsSource)UnmarshalJSON¶added inv4.3.0
func (r *JobNewResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (errerror)
typeJobNewResponseEnvelopeMessages¶added inv4.3.0
type JobNewResponseEnvelopeMessages struct {Codeint64 `json:"code,required"`Messagestring `json:"message,required"`DocumentationURLstring `json:"documentation_url"`SourceJobNewResponseEnvelopeMessagesSource `json:"source"`JSON jobNewResponseEnvelopeMessagesJSON `json:"-"`}
func (*JobNewResponseEnvelopeMessages)UnmarshalJSON¶added inv4.3.0
func (r *JobNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (errerror)
typeJobNewResponseEnvelopeMessagesSource¶added inv4.3.0
type JobNewResponseEnvelopeMessagesSource struct {Pointerstring `json:"pointer"`JSON jobNewResponseEnvelopeMessagesSourceJSON `json:"-"`}
func (*JobNewResponseEnvelopeMessagesSource)UnmarshalJSON¶added inv4.3.0
func (r *JobNewResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (errerror)
typeJobNewResponseEnvelopeSuccess¶
type JobNewResponseEnvelopeSuccessbool
Whether the API call was successful.
const (JobNewResponseEnvelopeSuccessTrueJobNewResponseEnvelopeSuccess =true)
func (JobNewResponseEnvelopeSuccess)IsKnown¶
func (rJobNewResponseEnvelopeSuccess) IsKnown()bool
typeJobService¶
type JobService struct {Options []option.RequestOption}
JobService contains methods and other services that help with interacting withthe cloudflare API.
Note, unlike clients, this service does not read variables from the environmentautomatically. You should not instantiate this service directly, and instead usetheNewJobService method instead.
funcNewJobService¶
func NewJobService(opts ...option.RequestOption) (r *JobService)
NewJobService generates a new service that applies the given options to eachrequest. These options are applied after the parent client's options (if thereis one), and before any request-specific options.
func (*JobService)Delete¶
func (r *JobService) Delete(ctxcontext.Context, jobIDint64, bodyJobDeleteParams, opts ...option.RequestOption) (res *JobDeleteResponse, errerror)
Deletes a Logpush job.
func (*JobService)Get¶
func (r *JobService) Get(ctxcontext.Context, jobIDint64, queryJobGetParams, opts ...option.RequestOption) (res *LogpushJob, errerror)
Gets the details of a Logpush job.
func (*JobService)List¶
func (r *JobService) List(ctxcontext.Context, queryJobListParams, opts ...option.RequestOption) (res *pagination.SinglePage[LogpushJob], errerror)
Lists Logpush jobs for an account or zone.
func (*JobService)ListAutoPaging¶
func (r *JobService) ListAutoPaging(ctxcontext.Context, queryJobListParams, opts ...option.RequestOption) *pagination.SinglePageAutoPager[LogpushJob]
Lists Logpush jobs for an account or zone.
func (*JobService)New¶
func (r *JobService) New(ctxcontext.Context, paramsJobNewParams, opts ...option.RequestOption) (res *LogpushJob, errerror)
Creates a new Logpush job for an account or zone.
func (*JobService)Update¶
func (r *JobService) Update(ctxcontext.Context, jobIDint64, paramsJobUpdateParams, opts ...option.RequestOption) (res *LogpushJob, errerror)
Updates a Logpush job.
typeJobUpdateParams¶
type JobUpdateParams struct {// The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.AccountIDparam.Field[string] `path:"account_id"`// The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.ZoneIDparam.Field[string] `path:"zone_id"`// Uniquely identifies a resource (such as an s3 bucket) where data will be pushed.// Additional configuration parameters supported by the destination may be// included.DestinationConfparam.Field[string] `json:"destination_conf" format:"uri"`// Flag that indicates if the job is enabled.Enabledparam.Field[bool] `json:"enabled"`// The filters to select the events to include and/or remove from your logs. For// more information, refer to// [Filters](https://developers.cloudflare.com/logs/reference/filters/).Filterparam.Field[string] `json:"filter"`// This field is deprecated. Please use `max_upload_*` parameters instead. The// frequency at which Cloudflare sends batches of logs to your destination. Setting// frequency to high sends your logs in larger quantities of smaller files. Setting// frequency to low sends logs in smaller quantities of larger files.Frequencyparam.Field[JobUpdateParamsFrequency] `json:"frequency"`// The kind parameter (optional) is used to differentiate between Logpush and Edge// Log Delivery jobs (when supported by the dataset).Kindparam.Field[JobUpdateParamsKind] `json:"kind"`// This field is deprecated. Use `output_options` instead. Configuration string. It// specifies things like requested fields and timestamp formats. If migrating from// the logpull api, copy the url (full url or just the query string) of your call// here, and logpush will keep on making this call for you, setting start and end// times appropriately.LogpullOptionsparam.Field[string] `json:"logpull_options" format:"uri-reference"`// The maximum uncompressed file size of a batch of logs. This setting value must// be between `5 MB` and `1 GB`, or `0` to disable it. Note that you cannot set a// minimum file size; this means that log files may be much smaller than this batch// size.MaxUploadBytesparam.Field[JobUpdateParamsMaxUploadBytes] `json:"max_upload_bytes"`// The maximum interval in seconds for log batches. This setting must be between 30// and 300 seconds (5 minutes), or `0` to disable it. Note that you cannot specify// a minimum interval for log batches; this means that log files may be sent in// shorter intervals than this.MaxUploadIntervalSecondsparam.Field[JobUpdateParamsMaxUploadIntervalSeconds] `json:"max_upload_interval_seconds"`// The maximum number of log lines per batch. This setting must be between 1000 and// 1,000,000 lines, or `0` to disable it. Note that you cannot specify a minimum// number of log lines per batch; this means that log files may contain many fewer// lines than this.MaxUploadRecordsparam.Field[JobUpdateParamsMaxUploadRecords] `json:"max_upload_records"`// Optional human readable job name. Not unique. Cloudflare suggests that you set// this to a meaningful string, like the domain name, to make it easier to identify// your job.Nameparam.Field[string] `json:"name"`// The structured replacement for `logpull_options`. When including this field, the// `logpull_option` field will be ignored.OutputOptionsparam.Field[OutputOptionsParam] `json:"output_options"`// Ownership challenge token to prove destination ownership.OwnershipChallengeparam.Field[string] `json:"ownership_challenge"`}
func (JobUpdateParams)MarshalJSON¶
func (rJobUpdateParams) MarshalJSON() (data []byte, errerror)
typeJobUpdateParamsFrequency¶
type JobUpdateParamsFrequencystring
This field is deprecated. Please use `max_upload_*` parameters instead. Thefrequency at which Cloudflare sends batches of logs to your destination. Settingfrequency to high sends your logs in larger quantities of smaller files. Settingfrequency to low sends logs in smaller quantities of larger files.
const (JobUpdateParamsFrequencyHighJobUpdateParamsFrequency = "high"JobUpdateParamsFrequencyLowJobUpdateParamsFrequency = "low")
func (JobUpdateParamsFrequency)IsKnown¶
func (rJobUpdateParamsFrequency) IsKnown()bool
typeJobUpdateParamsKind¶
type JobUpdateParamsKindstring
The kind parameter (optional) is used to differentiate between Logpush and EdgeLog Delivery jobs (when supported by the dataset).
const (JobUpdateParamsKindEmptyJobUpdateParamsKind = ""JobUpdateParamsKindEdgeJobUpdateParamsKind = "edge")
func (JobUpdateParamsKind)IsKnown¶
func (rJobUpdateParamsKind) IsKnown()bool
typeJobUpdateParamsMaxUploadBytes¶added inv4.6.0
type JobUpdateParamsMaxUploadBytesfloat64
The maximum uncompressed file size of a batch of logs. This setting value mustbe between `5 MB` and `1 GB`, or `0` to disable it. Note that you cannot set aminimum file size; this means that log files may be much smaller than this batchsize.
const (JobUpdateParamsMaxUploadBytes0JobUpdateParamsMaxUploadBytes = 0)
func (JobUpdateParamsMaxUploadBytes)IsKnown¶added inv4.6.0
func (rJobUpdateParamsMaxUploadBytes) IsKnown()bool
typeJobUpdateParamsMaxUploadIntervalSeconds¶added inv4.6.0
type JobUpdateParamsMaxUploadIntervalSecondsfloat64
The maximum interval in seconds for log batches. This setting must be between 30and 300 seconds (5 minutes), or `0` to disable it. Note that you cannot specifya minimum interval for log batches; this means that log files may be sent inshorter intervals than this.
const (JobUpdateParamsMaxUploadIntervalSeconds0JobUpdateParamsMaxUploadIntervalSeconds = 0)
func (JobUpdateParamsMaxUploadIntervalSeconds)IsKnown¶added inv4.6.0
func (rJobUpdateParamsMaxUploadIntervalSeconds) IsKnown()bool
typeJobUpdateParamsMaxUploadRecords¶added inv4.6.0
type JobUpdateParamsMaxUploadRecordsfloat64
The maximum number of log lines per batch. This setting must be between 1000 and1,000,000 lines, or `0` to disable it. Note that you cannot specify a minimumnumber of log lines per batch; this means that log files may contain many fewerlines than this.
const (JobUpdateParamsMaxUploadRecords0JobUpdateParamsMaxUploadRecords = 0)
func (JobUpdateParamsMaxUploadRecords)IsKnown¶added inv4.6.0
func (rJobUpdateParamsMaxUploadRecords) IsKnown()bool
typeJobUpdateResponseEnvelope¶
type JobUpdateResponseEnvelope struct {Errors []JobUpdateResponseEnvelopeErrors `json:"errors,required"`Messages []JobUpdateResponseEnvelopeMessages `json:"messages,required"`// Whether the API call was successful.SuccessJobUpdateResponseEnvelopeSuccess `json:"success,required"`ResultLogpushJob `json:"result,nullable"`JSON jobUpdateResponseEnvelopeJSON `json:"-"`}
func (*JobUpdateResponseEnvelope)UnmarshalJSON¶
func (r *JobUpdateResponseEnvelope) UnmarshalJSON(data []byte) (errerror)
typeJobUpdateResponseEnvelopeErrors¶added inv4.3.0
type JobUpdateResponseEnvelopeErrors struct {Codeint64 `json:"code,required"`Messagestring `json:"message,required"`DocumentationURLstring `json:"documentation_url"`SourceJobUpdateResponseEnvelopeErrorsSource `json:"source"`JSON jobUpdateResponseEnvelopeErrorsJSON `json:"-"`}
func (*JobUpdateResponseEnvelopeErrors)UnmarshalJSON¶added inv4.3.0
func (r *JobUpdateResponseEnvelopeErrors) UnmarshalJSON(data []byte) (errerror)
typeJobUpdateResponseEnvelopeErrorsSource¶added inv4.3.0
type JobUpdateResponseEnvelopeErrorsSource struct {Pointerstring `json:"pointer"`JSON jobUpdateResponseEnvelopeErrorsSourceJSON `json:"-"`}
func (*JobUpdateResponseEnvelopeErrorsSource)UnmarshalJSON¶added inv4.3.0
func (r *JobUpdateResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (errerror)
typeJobUpdateResponseEnvelopeMessages¶added inv4.3.0
type JobUpdateResponseEnvelopeMessages struct {Codeint64 `json:"code,required"`Messagestring `json:"message,required"`DocumentationURLstring `json:"documentation_url"`SourceJobUpdateResponseEnvelopeMessagesSource `json:"source"`JSON jobUpdateResponseEnvelopeMessagesJSON `json:"-"`}
func (*JobUpdateResponseEnvelopeMessages)UnmarshalJSON¶added inv4.3.0
func (r *JobUpdateResponseEnvelopeMessages) UnmarshalJSON(data []byte) (errerror)
typeJobUpdateResponseEnvelopeMessagesSource¶added inv4.3.0
type JobUpdateResponseEnvelopeMessagesSource struct {Pointerstring `json:"pointer"`JSON jobUpdateResponseEnvelopeMessagesSourceJSON `json:"-"`}
func (*JobUpdateResponseEnvelopeMessagesSource)UnmarshalJSON¶added inv4.3.0
func (r *JobUpdateResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (errerror)
typeJobUpdateResponseEnvelopeSuccess¶
type JobUpdateResponseEnvelopeSuccessbool
Whether the API call was successful.
const (JobUpdateResponseEnvelopeSuccessTrueJobUpdateResponseEnvelopeSuccess =true)
func (JobUpdateResponseEnvelopeSuccess)IsKnown¶
func (rJobUpdateResponseEnvelopeSuccess) IsKnown()bool
typeLogpushJob¶
type LogpushJob struct {// Unique id of the job.IDint64 `json:"id"`// Name of the dataset. A list of supported datasets can be found on the// [Developer Docs](https://developers.cloudflare.com/logs/reference/log-fields/).DatasetLogpushJobDataset `json:"dataset,nullable"`// Uniquely identifies a resource (such as an s3 bucket) where data will be pushed.// Additional configuration parameters supported by the destination may be// included.DestinationConfstring `json:"destination_conf" format:"uri"`// Flag that indicates if the job is enabled.Enabledbool `json:"enabled"`// If not null, the job is currently failing. Failures are usually repetitive// (example: no permissions to write to destination bucket). Only the last failure// is recorded. On successful execution of a job the error_message and last_error// are set to null.ErrorMessagestring `json:"error_message,nullable"`// This field is deprecated. Please use `max_upload_*` parameters instead. The// frequency at which Cloudflare sends batches of logs to your destination. Setting// frequency to high sends your logs in larger quantities of smaller files. Setting// frequency to low sends logs in smaller quantities of larger files.//// Deprecated: deprecatedFrequencyLogpushJobFrequency `json:"frequency,nullable"`// The kind parameter (optional) is used to differentiate between Logpush and Edge// Log Delivery jobs (when supported by the dataset).KindLogpushJobKind `json:"kind"`// Records the last time for which logs have been successfully pushed. If the last// successful push was for logs range 2018-07-23T10:00:00Z to 2018-07-23T10:01:00Z// then the value of this field will be 2018-07-23T10:01:00Z. If the job has never// run or has just been enabled and hasn't run yet then the field will be empty.LastCompletetime.Time `json:"last_complete,nullable" format:"date-time"`// Records the last time the job failed. If not null, the job is currently failing.// If null, the job has either never failed or has run successfully at least once// since last failure. See also the error_message field.LastErrortime.Time `json:"last_error,nullable" format:"date-time"`// This field is deprecated. Use `output_options` instead. Configuration string. It// specifies things like requested fields and timestamp formats. If migrating from// the logpull api, copy the url (full url or just the query string) of your call// here, and logpush will keep on making this call for you, setting start and end// times appropriately.//// Deprecated: deprecatedLogpullOptionsstring `json:"logpull_options,nullable" format:"uri-reference"`// The maximum uncompressed file size of a batch of logs. This setting value must// be between `5 MB` and `1 GB`, or `0` to disable it. Note that you cannot set a// minimum file size; this means that log files may be much smaller than this batch// size.MaxUploadBytesLogpushJobMaxUploadBytes `json:"max_upload_bytes,nullable"`// The maximum interval in seconds for log batches. This setting must be between 30// and 300 seconds (5 minutes), or `0` to disable it. Note that you cannot specify// a minimum interval for log batches; this means that log files may be sent in// shorter intervals than this.MaxUploadIntervalSecondsLogpushJobMaxUploadIntervalSeconds `json:"max_upload_interval_seconds,nullable"`// The maximum number of log lines per batch. This setting must be between 1000 and// 1,000,000 lines, or `0` to disable it. Note that you cannot specify a minimum// number of log lines per batch; this means that log files may contain many fewer// lines than this.MaxUploadRecordsLogpushJobMaxUploadRecords `json:"max_upload_records,nullable"`// Optional human readable job name. Not unique. Cloudflare suggests that you set// this to a meaningful string, like the domain name, to make it easier to identify// your job.Namestring `json:"name,nullable"`// The structured replacement for `logpull_options`. When including this field, the// `logpull_option` field will be ignored.OutputOptionsOutputOptions `json:"output_options,nullable"`JSON logpushJobJSON `json:"-"`}
func (*LogpushJob)UnmarshalJSON¶
func (r *LogpushJob) UnmarshalJSON(data []byte) (errerror)
typeLogpushJobDataset¶added inv4.3.0
type LogpushJobDatasetstring
Name of the dataset. A list of supported datasets can be found on the[Developer Docs](https://developers.cloudflare.com/logs/reference/log-fields/).
const (LogpushJobDatasetAccessRequestsLogpushJobDataset = "access_requests"LogpushJobDatasetAuditLogsLogpushJobDataset = "audit_logs"LogpushJobDatasetBISOUserActionsLogpushJobDataset = "biso_user_actions"LogpushJobDatasetCasbFindingsLogpushJobDataset = "casb_findings"LogpushJobDatasetDevicePostureResultsLogpushJobDataset = "device_posture_results"LogpushJobDatasetDLPForensicCopiesLogpushJobDataset = "dlp_forensic_copies"LogpushJobDatasetDNSFirewallLogsLogpushJobDataset = "dns_firewall_logs"LogpushJobDatasetDNSLogsLogpushJobDataset = "dns_logs"LogpushJobDatasetEmailSecurityAlertsLogpushJobDataset = "email_security_alerts"LogpushJobDatasetFirewallEventsLogpushJobDataset = "firewall_events"LogpushJobDatasetGatewayDNSLogpushJobDataset = "gateway_dns"LogpushJobDatasetGatewayHTTPLogpushJobDataset = "gateway_http"LogpushJobDatasetGatewayNetworkLogpushJobDataset = "gateway_network"LogpushJobDatasetHTTPRequestsLogpushJobDataset = "http_requests"LogpushJobDatasetMagicIDsDetectionsLogpushJobDataset = "magic_ids_detections"LogpushJobDatasetNELReportsLogpushJobDataset = "nel_reports"LogpushJobDatasetNetworkAnalyticsLogsLogpushJobDataset = "network_analytics_logs"LogpushJobDatasetPageShieldEventsLogpushJobDataset = "page_shield_events"LogpushJobDatasetSinkholeHTTPLogsLogpushJobDataset = "sinkhole_http_logs"LogpushJobDatasetSpectrumEventsLogpushJobDataset = "spectrum_events"LogpushJobDatasetSSHLogsLogpushJobDataset = "ssh_logs"LogpushJobDatasetWorkersTraceEventsLogpushJobDataset = "workers_trace_events"LogpushJobDatasetZarazEventsLogpushJobDataset = "zaraz_events"LogpushJobDatasetZeroTrustNetworkSessionsLogpushJobDataset = "zero_trust_network_sessions")
func (LogpushJobDataset)IsKnown¶added inv4.3.0
func (rLogpushJobDataset) IsKnown()bool
typeLogpushJobFrequency¶
type LogpushJobFrequencystring
This field is deprecated. Please use `max_upload_*` parameters instead. Thefrequency at which Cloudflare sends batches of logs to your destination. Settingfrequency to high sends your logs in larger quantities of smaller files. Settingfrequency to low sends logs in smaller quantities of larger files.
const (LogpushJobFrequencyHighLogpushJobFrequency = "high"LogpushJobFrequencyLowLogpushJobFrequency = "low")
func (LogpushJobFrequency)IsKnown¶
func (rLogpushJobFrequency) IsKnown()bool
typeLogpushJobKind¶
type LogpushJobKindstring
The kind parameter (optional) is used to differentiate between Logpush and EdgeLog Delivery jobs (when supported by the dataset).
const (LogpushJobKindEmptyLogpushJobKind = ""LogpushJobKindEdgeLogpushJobKind = "edge")
func (LogpushJobKind)IsKnown¶
func (rLogpushJobKind) IsKnown()bool
typeLogpushJobMaxUploadBytes¶added inv4.6.0
type LogpushJobMaxUploadBytesfloat64
The maximum uncompressed file size of a batch of logs. This setting value mustbe between `5 MB` and `1 GB`, or `0` to disable it. Note that you cannot set aminimum file size; this means that log files may be much smaller than this batchsize.
const (LogpushJobMaxUploadBytes0LogpushJobMaxUploadBytes = 0)
func (LogpushJobMaxUploadBytes)IsKnown¶added inv4.6.0
func (rLogpushJobMaxUploadBytes) IsKnown()bool
typeLogpushJobMaxUploadIntervalSeconds¶added inv4.6.0
type LogpushJobMaxUploadIntervalSecondsfloat64
The maximum interval in seconds for log batches. This setting must be between 30and 300 seconds (5 minutes), or `0` to disable it. Note that you cannot specifya minimum interval for log batches; this means that log files may be sent inshorter intervals than this.
const (LogpushJobMaxUploadIntervalSeconds0LogpushJobMaxUploadIntervalSeconds = 0)
func (LogpushJobMaxUploadIntervalSeconds)IsKnown¶added inv4.6.0
func (rLogpushJobMaxUploadIntervalSeconds) IsKnown()bool
typeLogpushJobMaxUploadRecords¶added inv4.6.0
type LogpushJobMaxUploadRecordsfloat64
The maximum number of log lines per batch. This setting must be between 1000 and1,000,000 lines, or `0` to disable it. Note that you cannot specify a minimumnumber of log lines per batch; this means that log files may contain many fewerlines than this.
const (LogpushJobMaxUploadRecords0LogpushJobMaxUploadRecords = 0)
func (LogpushJobMaxUploadRecords)IsKnown¶added inv4.6.0
func (rLogpushJobMaxUploadRecords) IsKnown()bool
typeLogpushService¶
type LogpushService struct {Options []option.RequestOptionDatasets *DatasetServiceEdge *EdgeServiceJobs *JobServiceOwnership *OwnershipServiceValidate *ValidateService}
LogpushService contains methods and other services that help with interactingwith the cloudflare API.
Note, unlike clients, this service does not read variables from the environmentautomatically. You should not instantiate this service directly, and instead usetheNewLogpushService method instead.
funcNewLogpushService¶
func NewLogpushService(opts ...option.RequestOption) (r *LogpushService)
NewLogpushService generates a new service that applies the given options to eachrequest. These options are applied after the parent client's options (if thereis one), and before any request-specific options.
typeMemberPoliciesAccess¶
type MemberPoliciesAccess =shared.MemberPoliciesAccess
Allow or deny operations against the resources.
This is an alias to an internal type.
typeMemberPoliciesPermissionGroup¶
type MemberPoliciesPermissionGroup =shared.MemberPoliciesPermissionGroup
A named group of permissions that map to a group of operations againstresources.
This is an alias to an internal type.
typeMemberPoliciesPermissionGroupsMeta¶
type MemberPoliciesPermissionGroupsMeta =shared.MemberPoliciesPermissionGroupsMeta
Attributes associated to the permission group.
This is an alias to an internal type.
typeMemberPoliciesResourceGroup¶
type MemberPoliciesResourceGroup =shared.MemberPoliciesResourceGroup
A group of scoped resources.
This is an alias to an internal type.
typeMemberPoliciesResourceGroupsMeta¶
type MemberPoliciesResourceGroupsMeta =shared.MemberPoliciesResourceGroupsMeta
Attributes associated to the resource group.
This is an alias to an internal type.
typeMemberPoliciesResourceGroupsScope¶
type MemberPoliciesResourceGroupsScope =shared.MemberPoliciesResourceGroupsScope
A scope is a combination of scope objects which provides additional context.
This is an alias to an internal type.
typeMemberPoliciesResourceGroupsScopeObject¶
type MemberPoliciesResourceGroupsScopeObject =shared.MemberPoliciesResourceGroupsScopeObject
A scope object represents any resource that can have actions applied againstinvite.
This is an alias to an internal type.
typeMemberStatus¶
type MemberStatus =shared.MemberStatus
A member's status in the account.
This is an alias to an internal type.
typeMemberUser¶
type MemberUser =shared.MemberUser
Details of the user associated to the membership.
This is an alias to an internal type.
typeOutputOptions¶
type OutputOptions struct {// String to be prepended before each batch.BatchPrefixstring `json:"batch_prefix,nullable"`// String to be appended after each batch.BatchSuffixstring `json:"batch_suffix,nullable"`// If set to true, will cause all occurrences of `${` in the generated files to be// replaced with `x{`.Cve2021_44228bool `json:"CVE-2021-44228,nullable"`// String to join fields. This field be ignored when `record_template` is set.FieldDelimiterstring `json:"field_delimiter,nullable"`// List of field names to be included in the Logpush output. For the moment, there// is no option to add all fields at once, so you must specify all the fields names// you are interested in.FieldNames []string `json:"field_names"`// Specifies the output type, such as `ndjson` or `csv`. This sets default values// for the rest of the settings, depending on the chosen output type. Some// formatting rules, like string quoting, are different between output types.OutputTypeOutputOptionsOutputType `json:"output_type"`// String to be inserted in-between the records as separator.RecordDelimiterstring `json:"record_delimiter,nullable"`// String to be prepended before each record.RecordPrefixstring `json:"record_prefix,nullable"`// String to be appended after each record.RecordSuffixstring `json:"record_suffix,nullable"`// String to use as template for each record instead of the default json key value// mapping. All fields used in the template must be present in `field_names` as// well, otherwise they will end up as null. Format as a Go `text/template` without// any standard functions, like conditionals, loops, sub-templates, etc.RecordTemplatestring `json:"record_template,nullable"`// Floating number to specify sampling rate. Sampling is applied on top of// filtering, and regardless of the current `sample_interval` of the data.SampleRatefloat64 `json:"sample_rate,nullable"`// String to specify the format for timestamps, such as `unixnano`, `unix`, or// `rfc3339`.TimestampFormatOutputOptionsTimestampFormat `json:"timestamp_format"`JSON outputOptionsJSON `json:"-"`}
The structured replacement for `logpull_options`. When including this field, the`logpull_option` field will be ignored.
func (*OutputOptions)UnmarshalJSON¶
func (r *OutputOptions) UnmarshalJSON(data []byte) (errerror)
typeOutputOptionsOutputType¶
type OutputOptionsOutputTypestring
Specifies the output type, such as `ndjson` or `csv`. This sets default valuesfor the rest of the settings, depending on the chosen output type. Someformatting rules, like string quoting, are different between output types.
const (OutputOptionsOutputTypeNdjsonOutputOptionsOutputType = "ndjson"OutputOptionsOutputTypeCsvOutputOptionsOutputType = "csv")
func (OutputOptionsOutputType)IsKnown¶
func (rOutputOptionsOutputType) IsKnown()bool
typeOutputOptionsParam¶
type OutputOptionsParam struct {// String to be prepended before each batch.BatchPrefixparam.Field[string] `json:"batch_prefix"`// String to be appended after each batch.BatchSuffixparam.Field[string] `json:"batch_suffix"`// If set to true, will cause all occurrences of `${` in the generated files to be// replaced with `x{`.Cve2021_44228param.Field[bool] `json:"CVE-2021-44228"`// String to join fields. This field be ignored when `record_template` is set.FieldDelimiterparam.Field[string] `json:"field_delimiter"`// List of field names to be included in the Logpush output. For the moment, there// is no option to add all fields at once, so you must specify all the fields names// you are interested in.FieldNamesparam.Field[[]string] `json:"field_names"`// Specifies the output type, such as `ndjson` or `csv`. This sets default values// for the rest of the settings, depending on the chosen output type. Some// formatting rules, like string quoting, are different between output types.OutputTypeparam.Field[OutputOptionsOutputType] `json:"output_type"`// String to be inserted in-between the records as separator.RecordDelimiterparam.Field[string] `json:"record_delimiter"`// String to be prepended before each record.RecordPrefixparam.Field[string] `json:"record_prefix"`// String to be appended after each record.RecordSuffixparam.Field[string] `json:"record_suffix"`// String to use as template for each record instead of the default json key value// mapping. All fields used in the template must be present in `field_names` as// well, otherwise they will end up as null. Format as a Go `text/template` without// any standard functions, like conditionals, loops, sub-templates, etc.RecordTemplateparam.Field[string] `json:"record_template"`// Floating number to specify sampling rate. Sampling is applied on top of// filtering, and regardless of the current `sample_interval` of the data.SampleRateparam.Field[float64] `json:"sample_rate"`// String to specify the format for timestamps, such as `unixnano`, `unix`, or// `rfc3339`.TimestampFormatparam.Field[OutputOptionsTimestampFormat] `json:"timestamp_format"`}
The structured replacement for `logpull_options`. When including this field, the`logpull_option` field will be ignored.
func (OutputOptionsParam)MarshalJSON¶
func (rOutputOptionsParam) MarshalJSON() (data []byte, errerror)
typeOutputOptionsTimestampFormat¶
type OutputOptionsTimestampFormatstring
String to specify the format for timestamps, such as `unixnano`, `unix`, or`rfc3339`.
const (OutputOptionsTimestampFormatUnixnanoOutputOptionsTimestampFormat = "unixnano"OutputOptionsTimestampFormatUnixOutputOptionsTimestampFormat = "unix"OutputOptionsTimestampFormatRfc3339OutputOptionsTimestampFormat = "rfc3339")
func (OutputOptionsTimestampFormat)IsKnown¶
func (rOutputOptionsTimestampFormat) IsKnown()bool
typeOwnershipNewParams¶
type OwnershipNewParams struct {// Uniquely identifies a resource (such as an s3 bucket) where data will be pushed.// Additional configuration parameters supported by the destination may be// included.DestinationConfparam.Field[string] `json:"destination_conf,required" format:"uri"`// The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.AccountIDparam.Field[string] `path:"account_id"`// The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.ZoneIDparam.Field[string] `path:"zone_id"`}
func (OwnershipNewParams)MarshalJSON¶
func (rOwnershipNewParams) MarshalJSON() (data []byte, errerror)
typeOwnershipNewResponse¶
type OwnershipNewResponse struct {Filenamestring `json:"filename"`Messagestring `json:"message"`Validbool `json:"valid"`JSON ownershipNewResponseJSON `json:"-"`}
func (*OwnershipNewResponse)UnmarshalJSON¶
func (r *OwnershipNewResponse) UnmarshalJSON(data []byte) (errerror)
typeOwnershipNewResponseEnvelope¶
type OwnershipNewResponseEnvelope struct {Errors []OwnershipNewResponseEnvelopeErrors `json:"errors,required"`Messages []OwnershipNewResponseEnvelopeMessages `json:"messages,required"`// Whether the API call was successful.SuccessOwnershipNewResponseEnvelopeSuccess `json:"success,required"`ResultOwnershipNewResponse `json:"result,nullable"`JSON ownershipNewResponseEnvelopeJSON `json:"-"`}
func (*OwnershipNewResponseEnvelope)UnmarshalJSON¶
func (r *OwnershipNewResponseEnvelope) UnmarshalJSON(data []byte) (errerror)
typeOwnershipNewResponseEnvelopeErrors¶added inv4.3.0
type OwnershipNewResponseEnvelopeErrors struct {Codeint64 `json:"code,required"`Messagestring `json:"message,required"`DocumentationURLstring `json:"documentation_url"`SourceOwnershipNewResponseEnvelopeErrorsSource `json:"source"`JSON ownershipNewResponseEnvelopeErrorsJSON `json:"-"`}
func (*OwnershipNewResponseEnvelopeErrors)UnmarshalJSON¶added inv4.3.0
func (r *OwnershipNewResponseEnvelopeErrors) UnmarshalJSON(data []byte) (errerror)
typeOwnershipNewResponseEnvelopeErrorsSource¶added inv4.3.0
type OwnershipNewResponseEnvelopeErrorsSource struct {Pointerstring `json:"pointer"`JSON ownershipNewResponseEnvelopeErrorsSourceJSON `json:"-"`}
func (*OwnershipNewResponseEnvelopeErrorsSource)UnmarshalJSON¶added inv4.3.0
func (r *OwnershipNewResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (errerror)
typeOwnershipNewResponseEnvelopeMessages¶added inv4.3.0
type OwnershipNewResponseEnvelopeMessages struct {Codeint64 `json:"code,required"`Messagestring `json:"message,required"`DocumentationURLstring `json:"documentation_url"`SourceOwnershipNewResponseEnvelopeMessagesSource `json:"source"`JSON ownershipNewResponseEnvelopeMessagesJSON `json:"-"`}
func (*OwnershipNewResponseEnvelopeMessages)UnmarshalJSON¶added inv4.3.0
func (r *OwnershipNewResponseEnvelopeMessages) UnmarshalJSON(data []byte) (errerror)
typeOwnershipNewResponseEnvelopeMessagesSource¶added inv4.3.0
type OwnershipNewResponseEnvelopeMessagesSource struct {Pointerstring `json:"pointer"`JSON ownershipNewResponseEnvelopeMessagesSourceJSON `json:"-"`}
func (*OwnershipNewResponseEnvelopeMessagesSource)UnmarshalJSON¶added inv4.3.0
func (r *OwnershipNewResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (errerror)
typeOwnershipNewResponseEnvelopeSuccess¶
type OwnershipNewResponseEnvelopeSuccessbool
Whether the API call was successful.
const (OwnershipNewResponseEnvelopeSuccessTrueOwnershipNewResponseEnvelopeSuccess =true)
func (OwnershipNewResponseEnvelopeSuccess)IsKnown¶
func (rOwnershipNewResponseEnvelopeSuccess) IsKnown()bool
typeOwnershipService¶
type OwnershipService struct {Options []option.RequestOption}
OwnershipService contains methods and other services that help with interactingwith the cloudflare API.
Note, unlike clients, this service does not read variables from the environmentautomatically. You should not instantiate this service directly, and instead usetheNewOwnershipService method instead.
funcNewOwnershipService¶
func NewOwnershipService(opts ...option.RequestOption) (r *OwnershipService)
NewOwnershipService generates a new service that applies the given options toeach request. These options are applied after the parent client's options (ifthere is one), and before any request-specific options.
func (*OwnershipService)New¶
func (r *OwnershipService) New(ctxcontext.Context, paramsOwnershipNewParams, opts ...option.RequestOption) (res *OwnershipNewResponse, errerror)
Gets a new ownership challenge sent to your destination.
func (*OwnershipService)Validate¶
func (r *OwnershipService) Validate(ctxcontext.Context, paramsOwnershipValidateParams, opts ...option.RequestOption) (res *OwnershipValidation, errerror)
Validates ownership challenge of the destination.
typeOwnershipValidateParams¶
type OwnershipValidateParams struct {// Uniquely identifies a resource (such as an s3 bucket) where data will be pushed.// Additional configuration parameters supported by the destination may be// included.DestinationConfparam.Field[string] `json:"destination_conf,required" format:"uri"`// Ownership challenge token to prove destination ownership.OwnershipChallengeparam.Field[string] `json:"ownership_challenge,required"`// The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.AccountIDparam.Field[string] `path:"account_id"`// The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.ZoneIDparam.Field[string] `path:"zone_id"`}
func (OwnershipValidateParams)MarshalJSON¶
func (rOwnershipValidateParams) MarshalJSON() (data []byte, errerror)
typeOwnershipValidateResponseEnvelope¶
type OwnershipValidateResponseEnvelope struct {Errors []OwnershipValidateResponseEnvelopeErrors `json:"errors,required"`Messages []OwnershipValidateResponseEnvelopeMessages `json:"messages,required"`// Whether the API call was successful.SuccessOwnershipValidateResponseEnvelopeSuccess `json:"success,required"`ResultOwnershipValidation `json:"result,nullable"`JSON ownershipValidateResponseEnvelopeJSON `json:"-"`}
func (*OwnershipValidateResponseEnvelope)UnmarshalJSON¶
func (r *OwnershipValidateResponseEnvelope) UnmarshalJSON(data []byte) (errerror)
typeOwnershipValidateResponseEnvelopeErrors¶added inv4.3.0
type OwnershipValidateResponseEnvelopeErrors struct {Codeint64 `json:"code,required"`Messagestring `json:"message,required"`DocumentationURLstring `json:"documentation_url"`SourceOwnershipValidateResponseEnvelopeErrorsSource `json:"source"`JSON ownershipValidateResponseEnvelopeErrorsJSON `json:"-"`}
func (*OwnershipValidateResponseEnvelopeErrors)UnmarshalJSON¶added inv4.3.0
func (r *OwnershipValidateResponseEnvelopeErrors) UnmarshalJSON(data []byte) (errerror)
typeOwnershipValidateResponseEnvelopeErrorsSource¶added inv4.3.0
type OwnershipValidateResponseEnvelopeErrorsSource struct {Pointerstring `json:"pointer"`JSON ownershipValidateResponseEnvelopeErrorsSourceJSON `json:"-"`}
func (*OwnershipValidateResponseEnvelopeErrorsSource)UnmarshalJSON¶added inv4.3.0
func (r *OwnershipValidateResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (errerror)
typeOwnershipValidateResponseEnvelopeMessages¶added inv4.3.0
type OwnershipValidateResponseEnvelopeMessages struct {Codeint64 `json:"code,required"`Messagestring `json:"message,required"`DocumentationURLstring `json:"documentation_url"`SourceOwnershipValidateResponseEnvelopeMessagesSource `json:"source"`JSON ownershipValidateResponseEnvelopeMessagesJSON `json:"-"`}
func (*OwnershipValidateResponseEnvelopeMessages)UnmarshalJSON¶added inv4.3.0
func (r *OwnershipValidateResponseEnvelopeMessages) UnmarshalJSON(data []byte) (errerror)
typeOwnershipValidateResponseEnvelopeMessagesSource¶added inv4.3.0
type OwnershipValidateResponseEnvelopeMessagesSource struct {Pointerstring `json:"pointer"`JSON ownershipValidateResponseEnvelopeMessagesSourceJSON `json:"-"`}
func (*OwnershipValidateResponseEnvelopeMessagesSource)UnmarshalJSON¶added inv4.3.0
func (r *OwnershipValidateResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (errerror)
typeOwnershipValidateResponseEnvelopeSuccess¶
type OwnershipValidateResponseEnvelopeSuccessbool
Whether the API call was successful.
const (OwnershipValidateResponseEnvelopeSuccessTrueOwnershipValidateResponseEnvelopeSuccess =true)
func (OwnershipValidateResponseEnvelopeSuccess)IsKnown¶
func (rOwnershipValidateResponseEnvelopeSuccess) IsKnown()bool
typeOwnershipValidation¶
type OwnershipValidation struct {Validbool `json:"valid"`JSON ownershipValidationJSON `json:"-"`}
func (*OwnershipValidation)UnmarshalJSON¶
func (r *OwnershipValidation) UnmarshalJSON(data []byte) (errerror)
typePermissionGrant¶
type PermissionGrant =shared.PermissionGrant
This is an alias to an internal type.
typePermissionGrantParam¶
type PermissionGrantParam =shared.PermissionGrantParam
This is an alias to an internal type.
typeRatePlanID¶added inv4.1.0
type RatePlanID =shared.RatePlanID
The ID of the rate plan.
This is an alias to an internal type.
typeRatePlanParam¶
type RatePlanParam =shared.RatePlanParam
The rate plan applied to the subscription.
This is an alias to an internal type.
typeResponseInfoSource¶added inv4.3.0
type ResponseInfoSource =shared.ResponseInfoSource
This is an alias to an internal type.
typeRolePermissions¶
type RolePermissions =shared.RolePermissions
This is an alias to an internal type.
typeRolePermissionsParam¶
type RolePermissionsParam =shared.RolePermissionsParam
This is an alias to an internal type.
typeSortDirection¶
type SortDirection =shared.SortDirection
Direction to order DNS records in.
This is an alias to an internal type.
typeSubscriptionFrequency¶
type SubscriptionFrequency =shared.SubscriptionFrequency
How often the subscription is renewed automatically.
This is an alias to an internal type.
typeSubscriptionParam¶
type SubscriptionParam =shared.SubscriptionParam
This is an alias to an internal type.
typeSubscriptionState¶
type SubscriptionState =shared.SubscriptionState
The state that the subscription is in.
This is an alias to an internal type.
typeTokenConditionCIDRList¶
type TokenConditionCIDRList =shared.TokenConditionCIDRList
IPv4/IPv6 CIDR.
This is an alias to an internal type.
typeTokenConditionCIDRListParam¶
type TokenConditionCIDRListParam =shared.TokenConditionCIDRListParam
IPv4/IPv6 CIDR.
This is an alias to an internal type.
typeTokenConditionParam¶
type TokenConditionParam =shared.TokenConditionParam
This is an alias to an internal type.
typeTokenConditionRequestIP¶
type TokenConditionRequestIP =shared.TokenConditionRequestIP
Client IP restrictions.
This is an alias to an internal type.
typeTokenConditionRequestIPParam¶
type TokenConditionRequestIPParam =shared.TokenConditionRequestIPParam
Client IP restrictions.
This is an alias to an internal type.
typeTokenPolicyEffect¶
type TokenPolicyEffect =shared.TokenPolicyEffect
Allow or deny operations against the resources.
This is an alias to an internal type.
typeTokenPolicyParam¶
type TokenPolicyParam =shared.TokenPolicyParam
This is an alias to an internal type.
typeTokenPolicyPermissionGroup¶
type TokenPolicyPermissionGroup =shared.TokenPolicyPermissionGroup
A named group of permissions that map to a group of operations againstresources.
This is an alias to an internal type.
typeTokenPolicyPermissionGroupParam¶
type TokenPolicyPermissionGroupParam =shared.TokenPolicyPermissionGroupParam
A named group of permissions that map to a group of operations againstresources.
This is an alias to an internal type.
typeTokenPolicyPermissionGroupsMeta¶
type TokenPolicyPermissionGroupsMeta =shared.TokenPolicyPermissionGroupsMeta
Attributes associated to the permission group.
This is an alias to an internal type.
typeTokenPolicyPermissionGroupsMetaParam¶
type TokenPolicyPermissionGroupsMetaParam =shared.TokenPolicyPermissionGroupsMetaParam
Attributes associated to the permission group.
This is an alias to an internal type.
typeTokenPolicyResourcesMap¶added inv4.6.0
type TokenPolicyResourcesMap =shared.TokenPolicyResourcesMap
A nested permission grant for further scoping.
This is an alias to an internal type.
typeTokenPolicyResourcesMapParam¶added inv4.6.0
type TokenPolicyResourcesMapParam =shared.TokenPolicyResourcesMapParam
A nested permission grant for further scoping.
This is an alias to an internal type.
typeTokenPolicyResourcesUnion¶added inv4.6.0
type TokenPolicyResourcesUnion =shared.TokenPolicyResourcesUnion
A simple wildcard permission, e.g., "\*".
This is an alias to an internal type.
typeTokenPolicyResourcesUnionParam¶added inv4.6.0
type TokenPolicyResourcesUnionParam =shared.TokenPolicyResourcesUnionParam
A simple wildcard permission, e.g., "\*".
This is an alias to an internal type.
typeTokenStatus¶
type TokenStatus =shared.TokenStatus
Status of the token.
This is an alias to an internal type.
typeTokenValue¶
type TokenValue =shared.TokenValue
The token value.
This is an alias to an internal type.
typeValidateDestinationExistsParams¶added inv4.1.0
type ValidateDestinationExistsParams struct {// Uniquely identifies a resource (such as an s3 bucket) where data will be pushed.// Additional configuration parameters supported by the destination may be// included.DestinationConfparam.Field[string] `json:"destination_conf,required" format:"uri"`// The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.AccountIDparam.Field[string] `path:"account_id"`// The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.ZoneIDparam.Field[string] `path:"zone_id"`}
func (ValidateDestinationExistsParams)MarshalJSON¶added inv4.1.0
func (rValidateDestinationExistsParams) MarshalJSON() (data []byte, errerror)
typeValidateDestinationExistsResponse¶added inv4.1.0
type ValidateDestinationExistsResponse struct {Existsbool `json:"exists"`JSON validateDestinationExistsResponseJSON `json:"-"`}
func (*ValidateDestinationExistsResponse)UnmarshalJSON¶added inv4.1.0
func (r *ValidateDestinationExistsResponse) UnmarshalJSON(data []byte) (errerror)
typeValidateDestinationExistsResponseEnvelope¶added inv4.1.0
type ValidateDestinationExistsResponseEnvelope struct {Errors []ValidateDestinationExistsResponseEnvelopeErrors `json:"errors,required"`Messages []ValidateDestinationExistsResponseEnvelopeMessages `json:"messages,required"`// Whether the API call was successful.SuccessValidateDestinationExistsResponseEnvelopeSuccess `json:"success,required"`ResultValidateDestinationExistsResponse `json:"result,nullable"`JSON validateDestinationExistsResponseEnvelopeJSON `json:"-"`}
func (*ValidateDestinationExistsResponseEnvelope)UnmarshalJSON¶added inv4.1.0
func (r *ValidateDestinationExistsResponseEnvelope) UnmarshalJSON(data []byte) (errerror)
typeValidateDestinationExistsResponseEnvelopeErrors¶added inv4.3.0
type ValidateDestinationExistsResponseEnvelopeErrors struct {Codeint64 `json:"code,required"`Messagestring `json:"message,required"`DocumentationURLstring `json:"documentation_url"`SourceValidateDestinationExistsResponseEnvelopeErrorsSource `json:"source"`JSON validateDestinationExistsResponseEnvelopeErrorsJSON `json:"-"`}
func (*ValidateDestinationExistsResponseEnvelopeErrors)UnmarshalJSON¶added inv4.3.0
func (r *ValidateDestinationExistsResponseEnvelopeErrors) UnmarshalJSON(data []byte) (errerror)
typeValidateDestinationExistsResponseEnvelopeErrorsSource¶added inv4.3.0
type ValidateDestinationExistsResponseEnvelopeErrorsSource struct {Pointerstring `json:"pointer"`JSON validateDestinationExistsResponseEnvelopeErrorsSourceJSON `json:"-"`}
func (*ValidateDestinationExistsResponseEnvelopeErrorsSource)UnmarshalJSON¶added inv4.3.0
func (r *ValidateDestinationExistsResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (errerror)
typeValidateDestinationExistsResponseEnvelopeMessages¶added inv4.3.0
type ValidateDestinationExistsResponseEnvelopeMessages struct {Codeint64 `json:"code,required"`Messagestring `json:"message,required"`DocumentationURLstring `json:"documentation_url"`SourceValidateDestinationExistsResponseEnvelopeMessagesSource `json:"source"`JSON validateDestinationExistsResponseEnvelopeMessagesJSON `json:"-"`}
func (*ValidateDestinationExistsResponseEnvelopeMessages)UnmarshalJSON¶added inv4.3.0
func (r *ValidateDestinationExistsResponseEnvelopeMessages) UnmarshalJSON(data []byte) (errerror)
typeValidateDestinationExistsResponseEnvelopeMessagesSource¶added inv4.3.0
type ValidateDestinationExistsResponseEnvelopeMessagesSource struct {Pointerstring `json:"pointer"`JSON validateDestinationExistsResponseEnvelopeMessagesSourceJSON `json:"-"`}
func (*ValidateDestinationExistsResponseEnvelopeMessagesSource)UnmarshalJSON¶added inv4.3.0
func (r *ValidateDestinationExistsResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (errerror)
typeValidateDestinationExistsResponseEnvelopeSuccess¶added inv4.1.0
type ValidateDestinationExistsResponseEnvelopeSuccessbool
Whether the API call was successful.
const (ValidateDestinationExistsResponseEnvelopeSuccessTrueValidateDestinationExistsResponseEnvelopeSuccess =true)
func (ValidateDestinationExistsResponseEnvelopeSuccess)IsKnown¶added inv4.1.0
func (rValidateDestinationExistsResponseEnvelopeSuccess) IsKnown()bool
typeValidateDestinationParams¶
type ValidateDestinationParams struct {// Uniquely identifies a resource (such as an s3 bucket) where data will be pushed.// Additional configuration parameters supported by the destination may be// included.DestinationConfparam.Field[string] `json:"destination_conf,required" format:"uri"`// The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.AccountIDparam.Field[string] `path:"account_id"`// The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.ZoneIDparam.Field[string] `path:"zone_id"`}
func (ValidateDestinationParams)MarshalJSON¶
func (rValidateDestinationParams) MarshalJSON() (data []byte, errerror)
typeValidateDestinationResponse¶
type ValidateDestinationResponse struct {Messagestring `json:"message"`Validbool `json:"valid"`JSON validateDestinationResponseJSON `json:"-"`}
func (*ValidateDestinationResponse)UnmarshalJSON¶
func (r *ValidateDestinationResponse) UnmarshalJSON(data []byte) (errerror)
typeValidateDestinationResponseEnvelope¶
type ValidateDestinationResponseEnvelope struct {Errors []ValidateDestinationResponseEnvelopeErrors `json:"errors,required"`Messages []ValidateDestinationResponseEnvelopeMessages `json:"messages,required"`// Whether the API call was successful.SuccessValidateDestinationResponseEnvelopeSuccess `json:"success,required"`ResultValidateDestinationResponse `json:"result,nullable"`JSON validateDestinationResponseEnvelopeJSON `json:"-"`}
func (*ValidateDestinationResponseEnvelope)UnmarshalJSON¶
func (r *ValidateDestinationResponseEnvelope) UnmarshalJSON(data []byte) (errerror)
typeValidateDestinationResponseEnvelopeErrors¶added inv4.3.0
type ValidateDestinationResponseEnvelopeErrors struct {Codeint64 `json:"code,required"`Messagestring `json:"message,required"`DocumentationURLstring `json:"documentation_url"`SourceValidateDestinationResponseEnvelopeErrorsSource `json:"source"`JSON validateDestinationResponseEnvelopeErrorsJSON `json:"-"`}
func (*ValidateDestinationResponseEnvelopeErrors)UnmarshalJSON¶added inv4.3.0
func (r *ValidateDestinationResponseEnvelopeErrors) UnmarshalJSON(data []byte) (errerror)
typeValidateDestinationResponseEnvelopeErrorsSource¶added inv4.3.0
type ValidateDestinationResponseEnvelopeErrorsSource struct {Pointerstring `json:"pointer"`JSON validateDestinationResponseEnvelopeErrorsSourceJSON `json:"-"`}
func (*ValidateDestinationResponseEnvelopeErrorsSource)UnmarshalJSON¶added inv4.3.0
func (r *ValidateDestinationResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (errerror)
typeValidateDestinationResponseEnvelopeMessages¶added inv4.3.0
type ValidateDestinationResponseEnvelopeMessages struct {Codeint64 `json:"code,required"`Messagestring `json:"message,required"`DocumentationURLstring `json:"documentation_url"`SourceValidateDestinationResponseEnvelopeMessagesSource `json:"source"`JSON validateDestinationResponseEnvelopeMessagesJSON `json:"-"`}
func (*ValidateDestinationResponseEnvelopeMessages)UnmarshalJSON¶added inv4.3.0
func (r *ValidateDestinationResponseEnvelopeMessages) UnmarshalJSON(data []byte) (errerror)
typeValidateDestinationResponseEnvelopeMessagesSource¶added inv4.3.0
type ValidateDestinationResponseEnvelopeMessagesSource struct {Pointerstring `json:"pointer"`JSON validateDestinationResponseEnvelopeMessagesSourceJSON `json:"-"`}
func (*ValidateDestinationResponseEnvelopeMessagesSource)UnmarshalJSON¶added inv4.3.0
func (r *ValidateDestinationResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (errerror)
typeValidateDestinationResponseEnvelopeSuccess¶
type ValidateDestinationResponseEnvelopeSuccessbool
Whether the API call was successful.
const (ValidateDestinationResponseEnvelopeSuccessTrueValidateDestinationResponseEnvelopeSuccess =true)
func (ValidateDestinationResponseEnvelopeSuccess)IsKnown¶
func (rValidateDestinationResponseEnvelopeSuccess) IsKnown()bool
typeValidateOriginParams¶
type ValidateOriginParams struct {// This field is deprecated. Use `output_options` instead. Configuration string. It// specifies things like requested fields and timestamp formats. If migrating from// the logpull api, copy the url (full url or just the query string) of your call// here, and logpush will keep on making this call for you, setting start and end// times appropriately.LogpullOptionsparam.Field[string] `json:"logpull_options,required" format:"uri-reference"`// The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.AccountIDparam.Field[string] `path:"account_id"`// The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.ZoneIDparam.Field[string] `path:"zone_id"`}
func (ValidateOriginParams)MarshalJSON¶
func (rValidateOriginParams) MarshalJSON() (data []byte, errerror)
typeValidateOriginResponse¶
type ValidateOriginResponse struct {Messagestring `json:"message"`Validbool `json:"valid"`JSON validateOriginResponseJSON `json:"-"`}
func (*ValidateOriginResponse)UnmarshalJSON¶
func (r *ValidateOriginResponse) UnmarshalJSON(data []byte) (errerror)
typeValidateOriginResponseEnvelope¶
type ValidateOriginResponseEnvelope struct {Errors []ValidateOriginResponseEnvelopeErrors `json:"errors,required"`Messages []ValidateOriginResponseEnvelopeMessages `json:"messages,required"`// Whether the API call was successful.SuccessValidateOriginResponseEnvelopeSuccess `json:"success,required"`ResultValidateOriginResponse `json:"result,nullable"`JSON validateOriginResponseEnvelopeJSON `json:"-"`}
func (*ValidateOriginResponseEnvelope)UnmarshalJSON¶
func (r *ValidateOriginResponseEnvelope) UnmarshalJSON(data []byte) (errerror)
typeValidateOriginResponseEnvelopeErrors¶added inv4.3.0
type ValidateOriginResponseEnvelopeErrors struct {Codeint64 `json:"code,required"`Messagestring `json:"message,required"`DocumentationURLstring `json:"documentation_url"`SourceValidateOriginResponseEnvelopeErrorsSource `json:"source"`JSON validateOriginResponseEnvelopeErrorsJSON `json:"-"`}
func (*ValidateOriginResponseEnvelopeErrors)UnmarshalJSON¶added inv4.3.0
func (r *ValidateOriginResponseEnvelopeErrors) UnmarshalJSON(data []byte) (errerror)
typeValidateOriginResponseEnvelopeErrorsSource¶added inv4.3.0
type ValidateOriginResponseEnvelopeErrorsSource struct {Pointerstring `json:"pointer"`JSON validateOriginResponseEnvelopeErrorsSourceJSON `json:"-"`}
func (*ValidateOriginResponseEnvelopeErrorsSource)UnmarshalJSON¶added inv4.3.0
func (r *ValidateOriginResponseEnvelopeErrorsSource) UnmarshalJSON(data []byte) (errerror)
typeValidateOriginResponseEnvelopeMessages¶added inv4.3.0
type ValidateOriginResponseEnvelopeMessages struct {Codeint64 `json:"code,required"`Messagestring `json:"message,required"`DocumentationURLstring `json:"documentation_url"`SourceValidateOriginResponseEnvelopeMessagesSource `json:"source"`JSON validateOriginResponseEnvelopeMessagesJSON `json:"-"`}
func (*ValidateOriginResponseEnvelopeMessages)UnmarshalJSON¶added inv4.3.0
func (r *ValidateOriginResponseEnvelopeMessages) UnmarshalJSON(data []byte) (errerror)
typeValidateOriginResponseEnvelopeMessagesSource¶added inv4.3.0
type ValidateOriginResponseEnvelopeMessagesSource struct {Pointerstring `json:"pointer"`JSON validateOriginResponseEnvelopeMessagesSourceJSON `json:"-"`}
func (*ValidateOriginResponseEnvelopeMessagesSource)UnmarshalJSON¶added inv4.3.0
func (r *ValidateOriginResponseEnvelopeMessagesSource) UnmarshalJSON(data []byte) (errerror)
typeValidateOriginResponseEnvelopeSuccess¶
type ValidateOriginResponseEnvelopeSuccessbool
Whether the API call was successful.
const (ValidateOriginResponseEnvelopeSuccessTrueValidateOriginResponseEnvelopeSuccess =true)
func (ValidateOriginResponseEnvelopeSuccess)IsKnown¶
func (rValidateOriginResponseEnvelopeSuccess) IsKnown()bool
typeValidateService¶
type ValidateService struct {Options []option.RequestOption}
ValidateService contains methods and other services that help with interactingwith the cloudflare API.
Note, unlike clients, this service does not read variables from the environmentautomatically. You should not instantiate this service directly, and instead usetheNewValidateService method instead.
funcNewValidateService¶
func NewValidateService(opts ...option.RequestOption) (r *ValidateService)
NewValidateService generates a new service that applies the given options toeach request. These options are applied after the parent client's options (ifthere is one), and before any request-specific options.
func (*ValidateService)Destination¶
func (r *ValidateService) Destination(ctxcontext.Context, paramsValidateDestinationParams, opts ...option.RequestOption) (res *ValidateDestinationResponse, errerror)
Validates destination.
func (*ValidateService)DestinationExists¶added inv4.1.0
func (r *ValidateService) DestinationExists(ctxcontext.Context, paramsValidateDestinationExistsParams, opts ...option.RequestOption) (res *ValidateDestinationExistsResponse, errerror)
Checks if there is an existing job with a destination.
func (*ValidateService)Origin¶
func (r *ValidateService) Origin(ctxcontext.Context, paramsValidateOriginParams, opts ...option.RequestOption) (res *ValidateOriginResponse, errerror)
Validates logpull origin with logpull_options.