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=database.dynatrace.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: database.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 Anomalies

type Anomalies struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              AnomaliesSpec   `json:"spec,omitempty"`
	Status            AnomaliesStatus `json:"status,omitempty"`
}

func (*Anomalies) DeepCopy

func (in *Anomalies) DeepCopy() *Anomalies

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

func (*Anomalies) DeepCopyInto

func (in *Anomalies) DeepCopyInto(out *Anomalies)

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

func (*Anomalies) DeepCopyObject

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

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

func (*Anomalies) SetupWebhookWithManager

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

func (*Anomalies) ValidateCreate

func (r *Anomalies) ValidateCreate() error

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

func (*Anomalies) ValidateDelete

func (r *Anomalies) ValidateDelete() error

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

func (*Anomalies) ValidateUpdate

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

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

type AnomaliesList

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

AnomaliesList is a list of Anomaliess

func (*AnomaliesList) DeepCopy

func (in *AnomaliesList) DeepCopy() *AnomaliesList

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

func (*AnomaliesList) DeepCopyInto

func (in *AnomaliesList) DeepCopyInto(out *AnomaliesList)

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

func (*AnomaliesList) DeepCopyObject

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

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

type AnomaliesSpec

type AnomaliesSpec struct {
	State *AnomaliesSpecResource `json:"state,omitempty" tf:"-"`

	Resource AnomaliesSpecResource `json:"resource" tf:"resource"`

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

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

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

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

func (*AnomaliesSpec) DeepCopy

func (in *AnomaliesSpec) DeepCopy() *AnomaliesSpec

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

func (*AnomaliesSpec) DeepCopyInto

func (in *AnomaliesSpec) DeepCopyInto(out *AnomaliesSpec)

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

type AnomaliesSpecDbConnectFailures

type AnomaliesSpecDbConnectFailures struct {
	// Number of failed database connections during any **eval_period** minutes period to trigger an alert
	// +optional
	ConnectionFailsCount *int64 `json:"connectionFailsCount,omitempty" tf:"connection_fails_count"`
	// The *X* minutes time period during which the **connection_fails_count** is evaluated
	// +optional
	EvalPeriod *int64 `json:"evalPeriod,omitempty" tf:"eval_period"`
}

func (*AnomaliesSpecDbConnectFailures) DeepCopy

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

func (*AnomaliesSpecDbConnectFailures) DeepCopyInto

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

type AnomaliesSpecDbConnectFailuresCodec

type AnomaliesSpecDbConnectFailuresCodec struct {
}

+k8s:deepcopy-gen=false

func (AnomaliesSpecDbConnectFailuresCodec) Decode

func (AnomaliesSpecDbConnectFailuresCodec) Encode

func (AnomaliesSpecDbConnectFailuresCodec) IsEmpty

type AnomaliesSpecFailureRate

type AnomaliesSpecFailureRate struct {
	// Parameters of failure rate increase auto-detection. Example: If the expected error rate is 1.5%, and you set an absolute increase of 1%, and a relative increase of 50%, the thresholds will be:  Absolute: 1.5% + **1%** = 2.5%  Relative: 1.5% + 1.5% * **50%** = 2.25%
	// +optional
	Auto *AnomaliesSpecFailureRateAuto `json:"auto,omitempty" tf:"auto"`
	// Fixed thresholds for failure rate increase detection
	// +optional
	Thresholds *AnomaliesSpecFailureRateThresholds `json:"thresholds,omitempty" tf:"thresholds"`
}

func (*AnomaliesSpecFailureRate) DeepCopy

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

func (*AnomaliesSpecFailureRate) DeepCopyInto

func (in *AnomaliesSpecFailureRate) DeepCopyInto(out *AnomaliesSpecFailureRate)

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

type AnomaliesSpecFailureRateAuto

type AnomaliesSpecFailureRateAuto struct {
	// Absolute increase of failing service calls to trigger an alert, %
	Absolute *int64 `json:"absolute" tf:"absolute"`
	// Relative increase of failing service calls to trigger an alert, %
	Relative *int64 `json:"relative" tf:"relative"`
	// allows for configuring properties that are not explicitly supported by the current version of this provider
	// +optional
	Unknowns *string `json:"unknowns,omitempty" tf:"unknowns"`
}

func (*AnomaliesSpecFailureRateAuto) DeepCopy

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

func (*AnomaliesSpecFailureRateAuto) DeepCopyInto

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

type AnomaliesSpecFailureRateAutoCodec

type AnomaliesSpecFailureRateAutoCodec struct {
}

+k8s:deepcopy-gen=false

func (AnomaliesSpecFailureRateAutoCodec) Decode

func (AnomaliesSpecFailureRateAutoCodec) Encode

func (AnomaliesSpecFailureRateAutoCodec) IsEmpty

type AnomaliesSpecFailureRateCodec

type AnomaliesSpecFailureRateCodec struct {
}

+k8s:deepcopy-gen=false

func (AnomaliesSpecFailureRateCodec) Decode

func (AnomaliesSpecFailureRateCodec) Encode

func (AnomaliesSpecFailureRateCodec) IsEmpty

type AnomaliesSpecFailureRateThresholds

type AnomaliesSpecFailureRateThresholds struct {
	// Sensitivity of the threshold.  With `low` sensitivity, high statistical confidence is used. Brief violations (for example, due to a surge in load) won't trigger alerts.  With `high` sensitivity, no statistical confidence is used. Each violation triggers alert
	Sensitivity *string `json:"sensitivity" tf:"sensitivity"`
	// Failure rate during any 5-minute period to trigger an alert, %
	Threshold *int64 `json:"threshold" tf:"threshold"`
	// allows for configuring properties that are not explicitly supported by the current version of this provider
	// +optional
	Unknowns *string `json:"unknowns,omitempty" tf:"unknowns"`
}

func (*AnomaliesSpecFailureRateThresholds) DeepCopy

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

func (*AnomaliesSpecFailureRateThresholds) DeepCopyInto

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

type AnomaliesSpecFailureRateThresholdsCodec

type AnomaliesSpecFailureRateThresholdsCodec struct {
}

+k8s:deepcopy-gen=false

func (AnomaliesSpecFailureRateThresholdsCodec) Decode

func (AnomaliesSpecFailureRateThresholdsCodec) Encode

func (AnomaliesSpecFailureRateThresholdsCodec) IsEmpty

type AnomaliesSpecLoad

type AnomaliesSpecLoad struct {
	// The configuration of traffic drops detection
	// +optional
	Drops *AnomaliesSpecLoadDrops `json:"drops,omitempty" tf:"drops"`
	// The configuration of traffic spikes detection
	// +optional
	Spikes *AnomaliesSpecLoadSpikes `json:"spikes,omitempty" tf:"spikes"`
}

func (*AnomaliesSpecLoad) DeepCopy

func (in *AnomaliesSpecLoad) DeepCopy() *AnomaliesSpecLoad

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

func (*AnomaliesSpecLoad) DeepCopyInto

func (in *AnomaliesSpecLoad) DeepCopyInto(out *AnomaliesSpecLoad)

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

type AnomaliesSpecLoadCodec

type AnomaliesSpecLoadCodec struct {
}

+k8s:deepcopy-gen=false

func (AnomaliesSpecLoadCodec) Decode

func (AnomaliesSpecLoadCodec) Encode

func (AnomaliesSpecLoadCodec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)

func (AnomaliesSpecLoadCodec) IsEmpty

type AnomaliesSpecLoadDrops

type AnomaliesSpecLoadDrops struct {
	// Alert if the service stays in abnormal state for at least *X* minutes
	// +optional
	Minutes *int64 `json:"minutes,omitempty" tf:"minutes"`
	// Alert if the observed load is more than *X* % of the expected value
	// +optional
	Percent *int64 `json:"percent,omitempty" tf:"percent"`
}

func (*AnomaliesSpecLoadDrops) DeepCopy

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

func (*AnomaliesSpecLoadDrops) DeepCopyInto

func (in *AnomaliesSpecLoadDrops) DeepCopyInto(out *AnomaliesSpecLoadDrops)

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

type AnomaliesSpecLoadDropsCodec

type AnomaliesSpecLoadDropsCodec struct {
}

+k8s:deepcopy-gen=false

func (AnomaliesSpecLoadDropsCodec) Decode

func (AnomaliesSpecLoadDropsCodec) Encode

func (AnomaliesSpecLoadDropsCodec) IsEmpty

type AnomaliesSpecLoadSpikes

type AnomaliesSpecLoadSpikes struct {
	// Alert if the service stays in abnormal state for at least *X* minutes
	// +optional
	Minutes *int64 `json:"minutes,omitempty" tf:"minutes"`
	// Alert if the observed load is more than *X* % of the expected value
	// +optional
	Percent *int64 `json:"percent,omitempty" tf:"percent"`
	// allows for configuring properties that are not explicitly supported by the current version of this provider
	// +optional
	Unknowns *string `json:"unknowns,omitempty" tf:"unknowns"`
}

func (*AnomaliesSpecLoadSpikes) DeepCopy

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

func (*AnomaliesSpecLoadSpikes) DeepCopyInto

func (in *AnomaliesSpecLoadSpikes) DeepCopyInto(out *AnomaliesSpecLoadSpikes)

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

type AnomaliesSpecLoadSpikesCodec

type AnomaliesSpecLoadSpikesCodec struct {
}

+k8s:deepcopy-gen=false

func (AnomaliesSpecLoadSpikesCodec) Decode

func (AnomaliesSpecLoadSpikesCodec) Encode

func (AnomaliesSpecLoadSpikesCodec) IsEmpty

type AnomaliesSpecResource

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

	// Parameters of the failed database connections detection.  The alert is triggered when failed connections number exceeds **connectionFailsCount** during any **timePeriodMinutes** minutes period
	// +optional
	DbConnectFailures *AnomaliesSpecDbConnectFailures `json:"dbConnectFailures,omitempty" tf:"db_connect_failures"`
	// Configuration of failure rate increase detection
	// +optional
	FailureRate *AnomaliesSpecFailureRate `json:"failureRate,omitempty" tf:"failure_rate"`
	// Configuration for anomalies regarding load drops and spikes
	// +optional
	Load *AnomaliesSpecLoad `json:"load,omitempty" tf:"load"`
	// Configuration of response time degradation detection
	// +optional
	ResponseTime *AnomaliesSpecResponseTime `json:"responseTime,omitempty" tf:"response_time"`
}

func (*AnomaliesSpecResource) DeepCopy

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

func (*AnomaliesSpecResource) DeepCopyInto

func (in *AnomaliesSpecResource) DeepCopyInto(out *AnomaliesSpecResource)

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

type AnomaliesSpecResponseTime

type AnomaliesSpecResponseTime struct {
	// Parameters of the response time degradation auto-detection. Violation of **any** criterion triggers an alert
	// +optional
	Auto *AnomaliesSpecResponseTimeAuto `json:"auto,omitempty" tf:"auto"`
	// Fixed thresholds for response time degradation detection
	// +optional
	Thresholds *AnomaliesSpecResponseTimeThresholds `json:"thresholds,omitempty" tf:"thresholds"`
}

func (*AnomaliesSpecResponseTime) DeepCopy

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

func (*AnomaliesSpecResponseTime) DeepCopyInto

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

type AnomaliesSpecResponseTimeAuto

type AnomaliesSpecResponseTimeAuto struct {
	// Minimal service load to detect response time degradation. Response time degradation of services with smaller load won't trigger alerts. Possible values are `FIFTEEN_REQUESTS_PER_MINUTE`, `FIVE_REQUESTS_PER_MINUTE`, `ONE_REQUEST_PER_MINUTE` and `TEN_REQUESTS_PER_MINUTE`
	Load *string `json:"load" tf:"load"`
	// Alert if the response time degrades by more than *X* milliseconds
	Milliseconds *int64 `json:"milliseconds" tf:"milliseconds"`
	// Alert if the response time degrades by more than *X* %
	Percent *int64 `json:"percent" tf:"percent"`
	// Alert if the response time of the slowest 10% degrades by more than *X* milliseconds
	SlowestMilliseconds *int64 `json:"slowestMilliseconds" tf:"slowest_milliseconds"`
	// Alert if the response time of the slowest 10% degrades by more than *X* milliseconds
	SlowestPercent *int64 `json:"slowestPercent" tf:"slowest_percent"`
	// allows for configuring properties that are not explicitly supported by the current version of this provider
	// +optional
	Unknowns *string `json:"unknowns,omitempty" tf:"unknowns"`
}

func (*AnomaliesSpecResponseTimeAuto) DeepCopy

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

func (*AnomaliesSpecResponseTimeAuto) DeepCopyInto

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

type AnomaliesSpecResponseTimeAutoCodec

type AnomaliesSpecResponseTimeAutoCodec struct {
}

+k8s:deepcopy-gen=false

func (AnomaliesSpecResponseTimeAutoCodec) Decode

func (AnomaliesSpecResponseTimeAutoCodec) Encode

func (AnomaliesSpecResponseTimeAutoCodec) IsEmpty

type AnomaliesSpecResponseTimeCodec

type AnomaliesSpecResponseTimeCodec struct {
}

+k8s:deepcopy-gen=false

func (AnomaliesSpecResponseTimeCodec) Decode

func (AnomaliesSpecResponseTimeCodec) Encode

func (AnomaliesSpecResponseTimeCodec) IsEmpty

type AnomaliesSpecResponseTimeThresholds

type AnomaliesSpecResponseTimeThresholds struct {
	// Minimal service load to detect response time degradation. Response time degradation of services with smaller load won't trigger alerts. Possible values are `FIFTEEN_REQUESTS_PER_MINUTE`, `FIVE_REQUESTS_PER_MINUTE`, `ONE_REQUEST_PER_MINUTE` and `TEN_REQUESTS_PER_MINUTE`
	Load *string `json:"load" tf:"load"`
	// Response time during any 5-minute period to trigger an alert, in milliseconds
	Milliseconds *int64 `json:"milliseconds" tf:"milliseconds"`
	// Sensitivity of the threshold.  With `low` sensitivity, high statistical confidence is used. Brief violations (for example, due to a surge in load) won't trigger alerts.  With `high` sensitivity, no statistical confidence is used. Each violation triggers an alert
	Sensitivity *string `json:"sensitivity" tf:"sensitivity"`
	// Response time of the 10% slowest during any 5-minute period to trigger an alert, in milliseconds
	SlowestMilliseconds *int64 `json:"slowestMilliseconds" tf:"slowest_milliseconds"`
	// allows for configuring properties that are not explicitly supported by the current version of this provider
	// +optional
	Unknowns *string `json:"unknowns,omitempty" tf:"unknowns"`
}

func (*AnomaliesSpecResponseTimeThresholds) DeepCopy

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

func (*AnomaliesSpecResponseTimeThresholds) DeepCopyInto

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

type AnomaliesSpecResponseTimeThresholdsCodec

type AnomaliesSpecResponseTimeThresholdsCodec struct {
}

+k8s:deepcopy-gen=false

func (AnomaliesSpecResponseTimeThresholdsCodec) Decode

func (AnomaliesSpecResponseTimeThresholdsCodec) Encode

func (AnomaliesSpecResponseTimeThresholdsCodec) IsEmpty

type AnomaliesStatus

type AnomaliesStatus 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 (*AnomaliesStatus) DeepCopy

func (in *AnomaliesStatus) DeepCopy() *AnomaliesStatus

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

func (*AnomaliesStatus) DeepCopyInto

func (in *AnomaliesStatus) DeepCopyInto(out *AnomaliesStatus)

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