v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

+groupName=synthetic.grafana.kubeform.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: synthetic.GroupName, Version: "v1alpha1"}

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type MonitoringCheck

type MonitoringCheck struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              MonitoringCheckSpec   `json:"spec,omitempty"`
	Status            MonitoringCheckStatus `json:"status,omitempty"`
}

func (*MonitoringCheck) DeepCopy

func (in *MonitoringCheck) DeepCopy() *MonitoringCheck

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringCheck.

func (*MonitoringCheck) DeepCopyInto

func (in *MonitoringCheck) DeepCopyInto(out *MonitoringCheck)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MonitoringCheck) DeepCopyObject

func (in *MonitoringCheck) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*MonitoringCheck) SetupWebhookWithManager

func (r *MonitoringCheck) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*MonitoringCheck) ValidateCreate

func (r *MonitoringCheck) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*MonitoringCheck) ValidateDelete

func (r *MonitoringCheck) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*MonitoringCheck) ValidateUpdate

func (r *MonitoringCheck) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type MonitoringCheckList

type MonitoringCheckList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of MonitoringCheck CRD objects
	Items []MonitoringCheck `json:"items,omitempty"`
}

MonitoringCheckList is a list of MonitoringChecks

func (*MonitoringCheckList) DeepCopy

func (in *MonitoringCheckList) DeepCopy() *MonitoringCheckList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringCheckList.

func (*MonitoringCheckList) DeepCopyInto

func (in *MonitoringCheckList) DeepCopyInto(out *MonitoringCheckList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MonitoringCheckList) DeepCopyObject

func (in *MonitoringCheckList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MonitoringCheckSpec

type MonitoringCheckSpec struct {
	State *MonitoringCheckSpecResource `json:"state,omitempty" tf:"-"`

	Resource MonitoringCheckSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	SecretRef *core.LocalObjectReference `json:"secretRef,omitempty" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*MonitoringCheckSpec) DeepCopy

func (in *MonitoringCheckSpec) DeepCopy() *MonitoringCheckSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringCheckSpec.

func (*MonitoringCheckSpec) DeepCopyInto

func (in *MonitoringCheckSpec) DeepCopyInto(out *MonitoringCheckSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MonitoringCheckSpecResource

type MonitoringCheckSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// Can be set to `none`, `low`, `medium`, or `high` to correspond to the check [alert levels](https://grafana.com/docs/grafana-cloud/synthetic-monitoring/synthetic-monitoring-alerting/).
	// +optional
	AlertSensitivity *string `json:"alertSensitivity,omitempty" tf:"alert_sensitivity"`
	// Metrics are reduced by default. Set this to `false` if you'd like to publish all metrics. We maintain a [full list of metrics](https://github.com/grafana/synthetic-monitoring-agent/tree/main/internal/scraper/testdata) collected for each.
	// +optional
	BasicMetricsOnly *bool `json:"basicMetricsOnly,omitempty" tf:"basic_metrics_only"`
	// Whether to enable the check.
	// +optional
	Enabled *bool `json:"enabled,omitempty" tf:"enabled"`
	// How often the check runs in milliseconds (the value is not truly a "frequency" but a "period"). The minimum acceptable value is 1 second (1000 ms), and the maximum is 120 seconds (120000 ms).
	// +optional
	Frequency *int64 `json:"frequency,omitempty" tf:"frequency"`
	// Name used for job label.
	Job *string `json:"job" tf:"job"`
	// Custom labels to be included with collected metrics and logs. The maximum number of labels that can be specified per check is 5. These are applied, along with the probe-specific labels, to the outgoing metrics. The names and values of the labels cannot be empty, and the maximum length is 32 bytes.
	// +optional
	Labels *map[string]string `json:"labels,omitempty" tf:"labels"`
	// List of probe location IDs where this target will be checked from.
	Probes []int64 `json:"probes" tf:"probes"`
	// Check settings. Should contain exactly one nested block.
	Settings *MonitoringCheckSpecSettings `json:"settings" tf:"settings"`
	// Hostname to ping.
	Target *string `json:"target" tf:"target"`
	// The tenant ID of the check.
	// +optional
	TenantID *int64 `json:"tenantID,omitempty" tf:"tenant_id"`
	// Specifies the maximum running time for the check in milliseconds. The minimum acceptable value is 1 second (1000 ms), and the maximum 10 seconds (10000 ms).
	// +optional
	Timeout *int64 `json:"timeout,omitempty" tf:"timeout"`
}

func (*MonitoringCheckSpecResource) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringCheckSpecResource.

func (*MonitoringCheckSpecResource) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MonitoringCheckSpecSettings

type MonitoringCheckSpecSettings struct {
	// Settings for DNS check. The target must be a valid hostname (or IP address for `PTR` records).
	// +optional
	Dns *MonitoringCheckSpecSettingsDns `json:"dns,omitempty" tf:"dns"`
	// Settings for HTTP check. The target must be a URL (http or https).
	// +optional
	Http *MonitoringCheckSpecSettingsHttp `json:"http,omitempty" tf:"http"`
	// Settings for ping (ICMP) check. The target must be a valid hostname or IP address.
	// +optional
	Ping *MonitoringCheckSpecSettingsPing `json:"ping,omitempty" tf:"ping"`
	// Settings for TCP check. The target must be of the form `<host>:<port>`, where the host portion must be a valid hostname or IP address.
	// +optional
	Tcp *MonitoringCheckSpecSettingsTcp `json:"tcp,omitempty" tf:"tcp"`
	// Settings for traceroute check. The target must be a valid hostname or IP address
	// +optional
	Traceroute *MonitoringCheckSpecSettingsTraceroute `json:"traceroute,omitempty" tf:"traceroute"`
}

func (*MonitoringCheckSpecSettings) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringCheckSpecSettings.

func (*MonitoringCheckSpecSettings) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MonitoringCheckSpecSettingsCodec

type MonitoringCheckSpecSettingsCodec struct {
}

+k8s:deepcopy-gen=false

func (MonitoringCheckSpecSettingsCodec) Decode

func (MonitoringCheckSpecSettingsCodec) Encode

func (MonitoringCheckSpecSettingsCodec) IsEmpty

type MonitoringCheckSpecSettingsDns

type MonitoringCheckSpecSettingsDns struct {
	// Options are `V4`, `V6`, `Any`. Specifies whether the corresponding check will be performed using IPv4 or IPv6. The `Any` value indicates that IPv6 should be used, falling back to IPv4 if that's not available.
	// +optional
	IpVersion *string `json:"ipVersion,omitempty" tf:"ip_version"`
	// Port to target.
	// +optional
	Port *int64 `json:"port,omitempty" tf:"port"`
	// `TCP` or `UDP`.
	// +optional
	Protocol *string `json:"protocol,omitempty" tf:"protocol"`
	// One of `ANY`, `A`, `AAAA`, `CNAME`, `MX`, `NS`, `PTR`, `SOA`, `SRV`, `TXT`.
	// +optional
	RecordType *string `json:"recordType,omitempty" tf:"record_type"`
	// DNS server address to target.
	// +optional
	Server *string `json:"server,omitempty" tf:"server"`
	// Source IP address.
	// +optional
	SourceIPAddress *string `json:"sourceIPAddress,omitempty" tf:"source_ip_address"`
	// List of valid response codes. Options include `NOERROR`, `BADALG`, `BADMODE`, `BADKEY`, `BADCOOKIE`, `BADNAME`, `BADSIG`, `BADTIME`, `BADTRUNC`, `BADVERS`, `FORMERR`, `NOTIMP`, `NOTAUTH`, `NOTZONE`, `NXDOMAIN`, `NXRRSET`, `REFUSED`, `SERVFAIL`, `YXDOMAIN`, `YXRRSET`.
	// +optional
	ValidRCodes []string `json:"validRCodes,omitempty" tf:"valid_r_codes"`
	// Validate additional matches.
	// +optional
	ValidateAdditionalRrs []MonitoringCheckSpecSettingsDnsValidateAdditionalRrs `json:"validateAdditionalRrs,omitempty" tf:"validate_additional_rrs"`
	// Validate response answer.
	// +optional
	ValidateAnswerRrs *MonitoringCheckSpecSettingsDnsValidateAnswerRrs `json:"validateAnswerRrs,omitempty" tf:"validate_answer_rrs"`
	// Validate response authority.
	// +optional
	ValidateAuthorityRrs *MonitoringCheckSpecSettingsDnsValidateAuthorityRrs `json:"validateAuthorityRrs,omitempty" tf:"validate_authority_rrs"`
}

func (*MonitoringCheckSpecSettingsDns) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringCheckSpecSettingsDns.

func (*MonitoringCheckSpecSettingsDns) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MonitoringCheckSpecSettingsDnsCodec

type MonitoringCheckSpecSettingsDnsCodec struct {
}

+k8s:deepcopy-gen=false

func (MonitoringCheckSpecSettingsDnsCodec) Decode

func (MonitoringCheckSpecSettingsDnsCodec) Encode

func (MonitoringCheckSpecSettingsDnsCodec) IsEmpty

type MonitoringCheckSpecSettingsDnsValidateAdditionalRrs

type MonitoringCheckSpecSettingsDnsValidateAdditionalRrs struct {
	// Fail if value matches regex.
	// +optional
	FailIfMatchesRegexp []string `json:"failIfMatchesRegexp,omitempty" tf:"fail_if_matches_regexp"`
	// Fail if value does not match regex.
	// +optional
	FailIfNotMatchesRegexp []string `json:"failIfNotMatchesRegexp,omitempty" tf:"fail_if_not_matches_regexp"`
}

func (*MonitoringCheckSpecSettingsDnsValidateAdditionalRrs) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringCheckSpecSettingsDnsValidateAdditionalRrs.

func (*MonitoringCheckSpecSettingsDnsValidateAdditionalRrs) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MonitoringCheckSpecSettingsDnsValidateAnswerRrs

type MonitoringCheckSpecSettingsDnsValidateAnswerRrs struct {
	// Fail if value matches regex.
	// +optional
	FailIfMatchesRegexp []string `json:"failIfMatchesRegexp,omitempty" tf:"fail_if_matches_regexp"`
	// Fail if value does not match regex.
	// +optional
	FailIfNotMatchesRegexp []string `json:"failIfNotMatchesRegexp,omitempty" tf:"fail_if_not_matches_regexp"`
}

func (*MonitoringCheckSpecSettingsDnsValidateAnswerRrs) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringCheckSpecSettingsDnsValidateAnswerRrs.

func (*MonitoringCheckSpecSettingsDnsValidateAnswerRrs) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MonitoringCheckSpecSettingsDnsValidateAnswerRrsCodec

type MonitoringCheckSpecSettingsDnsValidateAnswerRrsCodec struct {
}

+k8s:deepcopy-gen=false

func (MonitoringCheckSpecSettingsDnsValidateAnswerRrsCodec) Decode

func (MonitoringCheckSpecSettingsDnsValidateAnswerRrsCodec) Encode

func (MonitoringCheckSpecSettingsDnsValidateAnswerRrsCodec) IsEmpty

type MonitoringCheckSpecSettingsDnsValidateAuthorityRrs

type MonitoringCheckSpecSettingsDnsValidateAuthorityRrs struct {
	// Fail if value matches regex.
	// +optional
	FailIfMatchesRegexp []string `json:"failIfMatchesRegexp,omitempty" tf:"fail_if_matches_regexp"`
	// Fail if value does not match regex.
	// +optional
	FailIfNotMatchesRegexp []string `json:"failIfNotMatchesRegexp,omitempty" tf:"fail_if_not_matches_regexp"`
}

func (*MonitoringCheckSpecSettingsDnsValidateAuthorityRrs) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringCheckSpecSettingsDnsValidateAuthorityRrs.

func (*MonitoringCheckSpecSettingsDnsValidateAuthorityRrs) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MonitoringCheckSpecSettingsDnsValidateAuthorityRrsCodec

type MonitoringCheckSpecSettingsDnsValidateAuthorityRrsCodec struct {
}

+k8s:deepcopy-gen=false

func (MonitoringCheckSpecSettingsDnsValidateAuthorityRrsCodec) Decode

func (MonitoringCheckSpecSettingsDnsValidateAuthorityRrsCodec) Encode

func (MonitoringCheckSpecSettingsDnsValidateAuthorityRrsCodec) IsEmpty

type MonitoringCheckSpecSettingsHttp

type MonitoringCheckSpecSettingsHttp struct {
	// Basic auth settings.
	// +optional
	BasicAuth *MonitoringCheckSpecSettingsHttpBasicAuth `json:"basicAuth,omitempty" tf:"basic_auth"`
	// Token for use with bearer authorization header.
	// +optional
	BearerToken *string `json:"bearerToken,omitempty" tf:"bearer_token"`
	// The body of the HTTP request used in probe.
	// +optional
	Body *string `json:"body,omitempty" tf:"body"`
	// The name of the query parameter used to prevent the server from using a cached response. Each probe will assign a random value to this parameter each time a request is made.
	// +optional
	CacheBustingQueryParamName *string `json:"cacheBustingQueryParamName,omitempty" tf:"cache_busting_query_param_name"`
	// List of regexes. If any match the response body, the check will fail.
	// +optional
	FailIfBodyMatchesRegexp []string `json:"failIfBodyMatchesRegexp,omitempty" tf:"fail_if_body_matches_regexp"`
	// List of regexes. If any do not match the response body, the check will fail.
	// +optional
	FailIfBodyNotMatchesRegexp []string `json:"failIfBodyNotMatchesRegexp,omitempty" tf:"fail_if_body_not_matches_regexp"`
	// Check fails if headers match.
	// +optional
	FailIfHeaderMatchesRegexp []MonitoringCheckSpecSettingsHttpFailIfHeaderMatchesRegexp `json:"failIfHeaderMatchesRegexp,omitempty" tf:"fail_if_header_matches_regexp"`
	// Check fails if headers do not match.
	// +optional
	FailIfHeaderNotMatchesRegexp []MonitoringCheckSpecSettingsHttpFailIfHeaderNotMatchesRegexp `json:"failIfHeaderNotMatchesRegexp,omitempty" tf:"fail_if_header_not_matches_regexp"`
	// Fail if SSL is not present.
	// +optional
	FailIfNotSsl *bool `json:"failIfNotSsl,omitempty" tf:"fail_if_not_ssl"`
	// Fail if SSL is present.
	// +optional
	FailIfSsl *bool `json:"failIfSsl,omitempty" tf:"fail_if_ssl"`
	// The HTTP headers set for the probe.
	// +optional
	Headers []string `json:"headers,omitempty" tf:"headers"`
	// Options are `V4`, `V6`, `Any`. Specifies whether the corresponding check will be performed using IPv4 or IPv6. The `Any` value indicates that IPv6 should be used, falling back to IPv4 if that's not available.
	// +optional
	IpVersion *string `json:"ipVersion,omitempty" tf:"ip_version"`
	// Request method. One of `GET`, `CONNECT`, `DELETE`, `HEAD`, `OPTIONS`, `POST`, `PUT`, `TRACE`
	// +optional
	Method *string `json:"method,omitempty" tf:"method"`
	// Do not follow redirects.
	// +optional
	NoFollowRedirects *bool `json:"noFollowRedirects,omitempty" tf:"no_follow_redirects"`
	// Proxy URL.
	// +optional
	ProxyURL *string `json:"proxyURL,omitempty" tf:"proxy_url"`
	// TLS config.
	// +optional
	TlsConfig *MonitoringCheckSpecSettingsHttpTlsConfig `json:"tlsConfig,omitempty" tf:"tls_config"`
	// List of valid HTTP versions. Options include `HTTP/1.0`, `HTTP/1.1`, `HTTP/2`
	// +optional
	ValidHTTPVersions []string `json:"validHTTPVersions,omitempty" tf:"valid_http_versions"`
	// Accepted status codes. If unset, defaults to 2xx.
	// +optional
	ValidStatusCodes []int64 `json:"validStatusCodes,omitempty" tf:"valid_status_codes"`
}

func (*MonitoringCheckSpecSettingsHttp) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringCheckSpecSettingsHttp.

func (*MonitoringCheckSpecSettingsHttp) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MonitoringCheckSpecSettingsHttpBasicAuth

type MonitoringCheckSpecSettingsHttpBasicAuth struct {
	// Basic auth password.
	Password *string `json:"password" tf:"password"`
	// Basic auth username.
	Username *string `json:"username" tf:"username"`
}

func (*MonitoringCheckSpecSettingsHttpBasicAuth) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringCheckSpecSettingsHttpBasicAuth.

func (*MonitoringCheckSpecSettingsHttpBasicAuth) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MonitoringCheckSpecSettingsHttpBasicAuthCodec

type MonitoringCheckSpecSettingsHttpBasicAuthCodec struct {
}

+k8s:deepcopy-gen=false

func (MonitoringCheckSpecSettingsHttpBasicAuthCodec) Decode

func (MonitoringCheckSpecSettingsHttpBasicAuthCodec) Encode

func (MonitoringCheckSpecSettingsHttpBasicAuthCodec) IsEmpty

type MonitoringCheckSpecSettingsHttpCodec

type MonitoringCheckSpecSettingsHttpCodec struct {
}

+k8s:deepcopy-gen=false

func (MonitoringCheckSpecSettingsHttpCodec) Decode

func (MonitoringCheckSpecSettingsHttpCodec) Encode

func (MonitoringCheckSpecSettingsHttpCodec) IsEmpty

type MonitoringCheckSpecSettingsHttpFailIfHeaderMatchesRegexp

type MonitoringCheckSpecSettingsHttpFailIfHeaderMatchesRegexp struct {
	// Allow header to be missing from responses.
	// +optional
	AllowMissing *bool `json:"allowMissing,omitempty" tf:"allow_missing"`
	// Header name.
	Header *string `json:"header" tf:"header"`
	// Regex that header value should match.
	Regexp *string `json:"regexp" tf:"regexp"`
}

func (*MonitoringCheckSpecSettingsHttpFailIfHeaderMatchesRegexp) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringCheckSpecSettingsHttpFailIfHeaderMatchesRegexp.

func (*MonitoringCheckSpecSettingsHttpFailIfHeaderMatchesRegexp) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MonitoringCheckSpecSettingsHttpFailIfHeaderNotMatchesRegexp

type MonitoringCheckSpecSettingsHttpFailIfHeaderNotMatchesRegexp struct {
	// Allow header to be missing from responses.
	// +optional
	AllowMissing *bool `json:"allowMissing,omitempty" tf:"allow_missing"`
	// Header name.
	Header *string `json:"header" tf:"header"`
	// Regex that header value should match.
	Regexp *string `json:"regexp" tf:"regexp"`
}

func (*MonitoringCheckSpecSettingsHttpFailIfHeaderNotMatchesRegexp) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringCheckSpecSettingsHttpFailIfHeaderNotMatchesRegexp.

func (*MonitoringCheckSpecSettingsHttpFailIfHeaderNotMatchesRegexp) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MonitoringCheckSpecSettingsHttpTlsConfig

type MonitoringCheckSpecSettingsHttpTlsConfig struct {
	// CA certificate in PEM format.
	// +optional
	CaCert *string `json:"caCert,omitempty" tf:"ca_cert"`
	// Client certificate in PEM format.
	// +optional
	ClientCert *string `json:"clientCert,omitempty" tf:"client_cert"`
	// Client key in PEM format.
	// +optional
	ClientKey *string `json:"-" sensitive:"true" tf:"client_key"`
	// Disable target certificate validation.
	// +optional
	InsecureSkipVerify *bool `json:"insecureSkipVerify,omitempty" tf:"insecure_skip_verify"`
	// Used to verify the hostname for the targets.
	// +optional
	ServerName *string `json:"serverName,omitempty" tf:"server_name"`
}

func (*MonitoringCheckSpecSettingsHttpTlsConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringCheckSpecSettingsHttpTlsConfig.

func (*MonitoringCheckSpecSettingsHttpTlsConfig) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MonitoringCheckSpecSettingsHttpTlsConfigCodec

type MonitoringCheckSpecSettingsHttpTlsConfigCodec struct {
}

+k8s:deepcopy-gen=false

func (MonitoringCheckSpecSettingsHttpTlsConfigCodec) Decode

func (MonitoringCheckSpecSettingsHttpTlsConfigCodec) Encode

func (MonitoringCheckSpecSettingsHttpTlsConfigCodec) IsEmpty

type MonitoringCheckSpecSettingsPing

type MonitoringCheckSpecSettingsPing struct {
	// Set the DF-bit in the IP-header. Only works with ipV4.
	// +optional
	DontFragment *bool `json:"dontFragment,omitempty" tf:"dont_fragment"`
	// Options are `V4`, `V6`, `Any`. Specifies whether the corresponding check will be performed using IPv4 or IPv6. The `Any` value indicates that IPv6 should be used, falling back to IPv4 if that's not available.
	// +optional
	IpVersion *string `json:"ipVersion,omitempty" tf:"ip_version"`
	// Payload size.
	// +optional
	PayloadSize *int64 `json:"payloadSize,omitempty" tf:"payload_size"`
	// Source IP address.
	// +optional
	SourceIPAddress *string `json:"sourceIPAddress,omitempty" tf:"source_ip_address"`
}

func (*MonitoringCheckSpecSettingsPing) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringCheckSpecSettingsPing.

func (*MonitoringCheckSpecSettingsPing) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MonitoringCheckSpecSettingsPingCodec

type MonitoringCheckSpecSettingsPingCodec struct {
}

+k8s:deepcopy-gen=false

func (MonitoringCheckSpecSettingsPingCodec) Decode

func (MonitoringCheckSpecSettingsPingCodec) Encode

func (MonitoringCheckSpecSettingsPingCodec) IsEmpty

type MonitoringCheckSpecSettingsTcp

type MonitoringCheckSpecSettingsTcp struct {
	// Options are `V4`, `V6`, `Any`. Specifies whether the corresponding check will be performed using IPv4 or IPv6. The `Any` value indicates that IPv6 should be used, falling back to IPv4 if that's not available.
	// +optional
	IpVersion *string `json:"ipVersion,omitempty" tf:"ip_version"`
	// The query sent in the TCP probe and the expected associated response.
	// +optional
	QueryResponse []MonitoringCheckSpecSettingsTcpQueryResponse `json:"queryResponse,omitempty" tf:"query_response"`
	// Source IP address.
	// +optional
	SourceIPAddress *string `json:"sourceIPAddress,omitempty" tf:"source_ip_address"`
	// Whether or not TLS is used when the connection is initiated.
	// +optional
	Tls *bool `json:"tls,omitempty" tf:"tls"`
	// TLS config.
	// +optional
	TlsConfig *MonitoringCheckSpecSettingsTcpTlsConfig `json:"tlsConfig,omitempty" tf:"tls_config"`
}

func (*MonitoringCheckSpecSettingsTcp) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringCheckSpecSettingsTcp.

func (*MonitoringCheckSpecSettingsTcp) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MonitoringCheckSpecSettingsTcpCodec

type MonitoringCheckSpecSettingsTcpCodec struct {
}

+k8s:deepcopy-gen=false

func (MonitoringCheckSpecSettingsTcpCodec) Decode

func (MonitoringCheckSpecSettingsTcpCodec) Encode

func (MonitoringCheckSpecSettingsTcpCodec) IsEmpty

type MonitoringCheckSpecSettingsTcpQueryResponse

type MonitoringCheckSpecSettingsTcpQueryResponse struct {
	// Response to expect.
	Expect *string `json:"expect" tf:"expect"`
	// Data to send.
	Send *string `json:"send" tf:"send"`
	// Upgrade TCP connection to TLS.
	// +optional
	StartTls *bool `json:"startTls,omitempty" tf:"start_tls"`
}

func (*MonitoringCheckSpecSettingsTcpQueryResponse) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringCheckSpecSettingsTcpQueryResponse.

func (*MonitoringCheckSpecSettingsTcpQueryResponse) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MonitoringCheckSpecSettingsTcpTlsConfig

type MonitoringCheckSpecSettingsTcpTlsConfig struct {
	// CA certificate in PEM format.
	// +optional
	CaCert *string `json:"caCert,omitempty" tf:"ca_cert"`
	// Client certificate in PEM format.
	// +optional
	ClientCert *string `json:"clientCert,omitempty" tf:"client_cert"`
	// Client key in PEM format.
	// +optional
	ClientKey *string `json:"-" sensitive:"true" tf:"client_key"`
	// Disable target certificate validation.
	// +optional
	InsecureSkipVerify *bool `json:"insecureSkipVerify,omitempty" tf:"insecure_skip_verify"`
	// Used to verify the hostname for the targets.
	// +optional
	ServerName *string `json:"serverName,omitempty" tf:"server_name"`
}

func (*MonitoringCheckSpecSettingsTcpTlsConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringCheckSpecSettingsTcpTlsConfig.

func (*MonitoringCheckSpecSettingsTcpTlsConfig) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MonitoringCheckSpecSettingsTcpTlsConfigCodec

type MonitoringCheckSpecSettingsTcpTlsConfigCodec struct {
}

+k8s:deepcopy-gen=false

func (MonitoringCheckSpecSettingsTcpTlsConfigCodec) Decode

func (MonitoringCheckSpecSettingsTcpTlsConfigCodec) Encode

func (MonitoringCheckSpecSettingsTcpTlsConfigCodec) IsEmpty

type MonitoringCheckSpecSettingsTraceroute added in v0.5.0

type MonitoringCheckSpecSettingsTraceroute struct {
	// Maximum TTL for the trace
	// +optional
	MaxHops *int64 `json:"maxHops,omitempty" tf:"max_hops"`
	// Maximum number of hosts to travers that give no response
	// +optional
	MaxUnknownHops *int64 `json:"maxUnknownHops,omitempty" tf:"max_unknown_hops"`
	// Reverse lookup hostnames from IP addresses
	// +optional
	PtrLookup *bool `json:"ptrLookup,omitempty" tf:"ptr_lookup"`
}

func (*MonitoringCheckSpecSettingsTraceroute) DeepCopy added in v0.5.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringCheckSpecSettingsTraceroute.

func (*MonitoringCheckSpecSettingsTraceroute) DeepCopyInto added in v0.5.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MonitoringCheckSpecSettingsTracerouteCodec added in v0.5.0

type MonitoringCheckSpecSettingsTracerouteCodec struct {
}

+k8s:deepcopy-gen=false

func (MonitoringCheckSpecSettingsTracerouteCodec) Decode added in v0.5.0

func (MonitoringCheckSpecSettingsTracerouteCodec) Encode added in v0.5.0

func (MonitoringCheckSpecSettingsTracerouteCodec) IsEmpty added in v0.5.0

type MonitoringCheckStatus

type MonitoringCheckStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*MonitoringCheckStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringCheckStatus.

func (*MonitoringCheckStatus) DeepCopyInto

func (in *MonitoringCheckStatus) DeepCopyInto(out *MonitoringCheckStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MonitoringProbe

type MonitoringProbe struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              MonitoringProbeSpec   `json:"spec,omitempty"`
	Status            MonitoringProbeStatus `json:"status,omitempty"`
}

func (*MonitoringProbe) DeepCopy

func (in *MonitoringProbe) DeepCopy() *MonitoringProbe

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringProbe.

func (*MonitoringProbe) DeepCopyInto

func (in *MonitoringProbe) DeepCopyInto(out *MonitoringProbe)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MonitoringProbe) DeepCopyObject

func (in *MonitoringProbe) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*MonitoringProbe) SetupWebhookWithManager

func (r *MonitoringProbe) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*MonitoringProbe) ValidateCreate

func (r *MonitoringProbe) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*MonitoringProbe) ValidateDelete

func (r *MonitoringProbe) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*MonitoringProbe) ValidateUpdate

func (r *MonitoringProbe) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type MonitoringProbeList

type MonitoringProbeList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of MonitoringProbe CRD objects
	Items []MonitoringProbe `json:"items,omitempty"`
}

MonitoringProbeList is a list of MonitoringProbes

func (*MonitoringProbeList) DeepCopy

func (in *MonitoringProbeList) DeepCopy() *MonitoringProbeList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringProbeList.

func (*MonitoringProbeList) DeepCopyInto

func (in *MonitoringProbeList) DeepCopyInto(out *MonitoringProbeList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MonitoringProbeList) DeepCopyObject

func (in *MonitoringProbeList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MonitoringProbeSpec

type MonitoringProbeSpec struct {
	State *MonitoringProbeSpecResource `json:"state,omitempty" tf:"-"`

	Resource MonitoringProbeSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	SecretRef *core.LocalObjectReference `json:"secretRef,omitempty" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*MonitoringProbeSpec) DeepCopy

func (in *MonitoringProbeSpec) DeepCopy() *MonitoringProbeSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringProbeSpec.

func (*MonitoringProbeSpec) DeepCopyInto

func (in *MonitoringProbeSpec) DeepCopyInto(out *MonitoringProbeSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MonitoringProbeSpecResource

type MonitoringProbeSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// The probe authentication token. Your probe must use this to authenticate with Grafana Cloud.
	// +optional
	AuthToken *string `json:"-" sensitive:"true" tf:"auth_token"`
	// Custom labels to be included with collected metrics and logs.
	// +optional
	Labels *map[string]string `json:"labels,omitempty" tf:"labels"`
	// Latitude coordinates.
	Latitude *float64 `json:"latitude" tf:"latitude"`
	// Longitude coordinates.
	Longitude *float64 `json:"longitude" tf:"longitude"`
	// Name of the probe.
	Name *string `json:"name" tf:"name"`
	// Public probes are run by Grafana Labs and can be used by all users. Only Grafana Labs managed public probes will be set to `true`.
	// +optional
	Public *bool `json:"public,omitempty" tf:"public"`
	// Region of the probe.
	Region *string `json:"region" tf:"region"`
	// The tenant ID of the probe.
	// +optional
	TenantID *int64 `json:"tenantID,omitempty" tf:"tenant_id"`
}

func (*MonitoringProbeSpecResource) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringProbeSpecResource.

func (*MonitoringProbeSpecResource) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MonitoringProbeStatus

type MonitoringProbeStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*MonitoringProbeStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringProbeStatus.

func (*MonitoringProbeStatus) DeepCopyInto

func (in *MonitoringProbeStatus) DeepCopyInto(out *MonitoringProbeStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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