Documentation ¶
Overview ¶
+groupName=slo.dynatrace.kubeform.com
Index ¶
- Variables
- func GetDecoder() map[string]jsoniter.ValDecoder
- func GetEncoder() map[string]jsoniter.ValEncoder
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Slo
- func (in *Slo) DeepCopy() *Slo
- func (in *Slo) DeepCopyInto(out *Slo)
- func (in *Slo) DeepCopyObject() runtime.Object
- func (r *Slo) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Slo) ValidateCreate() error
- func (r *Slo) ValidateDelete() error
- func (r *Slo) ValidateUpdate(old runtime.Object) error
- type SloList
- type SloSpec
- type SloSpecResource
- type SloStatus
Constants ¶
This section is empty.
Variables ¶
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 )
var SchemeGroupVersion = schema.GroupVersion{Group: slo.GroupName, Version: "v1alpha1"}
Functions ¶
func GetDecoder ¶
func GetDecoder() map[string]jsoniter.ValDecoder
func GetEncoder ¶
func GetEncoder() map[string]jsoniter.ValEncoder
func Kind ¶
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 Slo ¶
type Slo struct { metav1.TypeMeta `json:",inline,omitempty"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SloSpec `json:"spec,omitempty"` Status SloStatus `json:"status,omitempty"` }
func (*Slo) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Slo.
func (*Slo) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Slo) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Slo) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Slo) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type SloList ¶
type SloList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // Items is a list of Slo CRD objects Items []Slo `json:"items,omitempty"` }
SloList is a list of Slos
func (*SloList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SloList.
func (*SloList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SloSpec ¶
type SloSpec struct { State *SloSpecResource `json:"state,omitempty" tf:"-"` Resource SloSpecResource `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 (*SloSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SloSpec.
type SloSpecResource ¶
type SloSpecResource struct { ID string `json:"id,omitempty" tf:"id,omitempty"` // The total count metric (the denominator in rate calculation) // +optional Denominator *string `json:"denominator,omitempty" tf:"denominator"` // The custom description of the SLO (optional) // +optional Description *string `json:"description,omitempty" tf:"description"` // The SLO is enabled (`false`) or disabled (`true`) // +optional Disabled *bool `json:"disabled,omitempty" tf:"disabled"` // The evaluation type of the SLO. Currently only `AGGREGATE` is supported Evaluation *string `json:"evaluation" tf:"evaluation"` // The entity filter for the SLO evaluation. Use the [syntax of entity selector](https://dt-url.net/entityselector) // +optional Filter *string `json:"filter,omitempty" tf:"filter"` // The percentage-based metric expression for the calculation of the SLO // +optional MetricExpression *string `json:"metricExpression,omitempty" tf:"metric_expression"` // The name of the rule Name *string `json:"name" tf:"name"` // The metric for the count of successes (the numerator in rate calculation) // +optional // Deprecated Numerator *string `json:"numerator,omitempty" tf:"numerator"` // The percentage-based metric for the calculation of the SLO // +optional Rate *string `json:"rate,omitempty" tf:"rate"` // The target value of the SLO Target *float64 `json:"target" tf:"target"` // The timeframe for the SLO evaluation. Use the syntax of the global timeframe selector Timeframe *string `json:"timeframe" tf:"timeframe"` // The warning value of the SLO. At warning state the SLO is still fulfilled but is getting close to failure Warning *float64 `json:"warning" tf:"warning"` }
func (*SloSpecResource) DeepCopy ¶
func (in *SloSpecResource) DeepCopy() *SloSpecResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SloSpecResource.
func (*SloSpecResource) DeepCopyInto ¶
func (in *SloSpecResource) DeepCopyInto(out *SloSpecResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SloStatus ¶
type SloStatus 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 (*SloStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SloStatus.