v1

package
v0.0.0-...-a280385 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the openslo v1 API group +kubebuilder:object:generate=true +groupName=openslo.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "openslo.com", Version: "v1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type AlertCondition

type AlertCondition struct {
	metav1.TypeMeta   `json:",inline"`
	ObjectMetaOpenSLO `json:"metadata,omitempty"`

	Spec   AlertConditionSpec   `json:"spec,omitempty"`
	Status AlertConditionStatus `json:"status,omitempty"`
}

AlertCondition is the Schema for the alertconditions API

func (*AlertCondition) DeepCopy

func (in *AlertCondition) DeepCopy() *AlertCondition

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

func (*AlertCondition) DeepCopyInto

func (in *AlertCondition) DeepCopyInto(out *AlertCondition)

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

func (*AlertCondition) DeepCopyObject

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

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

type AlertConditionList

type AlertConditionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []AlertCondition `json:"items"`
}

AlertConditionList contains a list of AlertCondition

func (*AlertConditionList) DeepCopy

func (in *AlertConditionList) DeepCopy() *AlertConditionList

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

func (*AlertConditionList) DeepCopyInto

func (in *AlertConditionList) DeepCopyInto(out *AlertConditionList)

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

func (*AlertConditionList) DeepCopyObject

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

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

type AlertConditionSpec

type AlertConditionSpec struct {
	Description Description   `json:"description,omitempty"`
	Severity    string        `json:"severity,omitempty"`
	Condition   ConditionSpec `json:"condition,omitempty"`
}

AlertConditionSpec defines the desired state of AlertCondition

func (*AlertConditionSpec) DeepCopy

func (in *AlertConditionSpec) DeepCopy() *AlertConditionSpec

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

func (*AlertConditionSpec) DeepCopyInto

func (in *AlertConditionSpec) DeepCopyInto(out *AlertConditionSpec)

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

type AlertConditionStatus

type AlertConditionStatus struct {
}

AlertConditionStatus defines the observed state of AlertCondition

func (*AlertConditionStatus) DeepCopy

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

func (*AlertConditionStatus) DeepCopyInto

func (in *AlertConditionStatus) DeepCopyInto(out *AlertConditionStatus)

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

type AlertNotificationTarget

type AlertNotificationTarget struct {
	metav1.TypeMeta   `json:",inline"`
	ObjectMetaOpenSLO `json:"metadata,omitempty"`

	Spec   AlertNotificationTargetSpec   `json:"spec,omitempty"`
	Status AlertNotificationTargetStatus `json:"status,omitempty"`
}

AlertNotificationTarget is the Schema for the alertnotificationtargets API

func (*AlertNotificationTarget) DeepCopy

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

func (*AlertNotificationTarget) DeepCopyInto

func (in *AlertNotificationTarget) DeepCopyInto(out *AlertNotificationTarget)

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

func (*AlertNotificationTarget) DeepCopyObject

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

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

type AlertNotificationTargetList

type AlertNotificationTargetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []AlertNotificationTarget `json:"items"`
}

AlertNotificationTargetList contains a list of AlertNotificationTarget

func (*AlertNotificationTargetList) DeepCopy

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

func (*AlertNotificationTargetList) DeepCopyInto

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

func (*AlertNotificationTargetList) DeepCopyObject

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

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

type AlertNotificationTargetSpec

type AlertNotificationTargetSpec struct {
	Description Description `json:"description,omitempty"`
	Target      string      `json:"target,omitempty"`
}

AlertNotificationTargetSpec defines the desired state of AlertNotificationTarget

func (*AlertNotificationTargetSpec) DeepCopy

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

func (*AlertNotificationTargetSpec) DeepCopyInto

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

type AlertNotificationTargetStatus

type AlertNotificationTargetStatus struct {
}

AlertNotificationTargetStatus defines the observed state of AlertNotificationTarget

func (*AlertNotificationTargetStatus) DeepCopy

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

func (*AlertNotificationTargetStatus) DeepCopyInto

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

type AlertPolicy

type AlertPolicy struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AlertPolicySpec   `json:"spec,omitempty"`
	Status AlertPolicyStatus `json:"status,omitempty"`
}

AlertPolicy is the Schema for the alertpolicies API

func (*AlertPolicy) DeepCopy

func (in *AlertPolicy) DeepCopy() *AlertPolicy

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

func (*AlertPolicy) DeepCopyInto

func (in *AlertPolicy) DeepCopyInto(out *AlertPolicy)

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

func (*AlertPolicy) DeepCopyObject

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

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

type AlertPolicyCondition

type AlertPolicyCondition struct {
	// +kubebuilder:validation:Enum=AlertCondition
	Kind         string              `json:"kind,omitempty"`
	Metadata     ObjectMetaOpenSLO   `json:"metadata,omitempty"`
	Spec         *AlertConditionSpec `json:"spec,omitempty"`
	ConditionRef *string             `json:"conditionRef,omitempty"`
}

func (*AlertPolicyCondition) DeepCopy

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

func (*AlertPolicyCondition) DeepCopyInto

func (in *AlertPolicyCondition) DeepCopyInto(out *AlertPolicyCondition)

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

type AlertPolicyList

type AlertPolicyList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []AlertPolicy `json:"items"`
}

AlertPolicyList contains a list of AlertPolicy

func (*AlertPolicyList) DeepCopy

func (in *AlertPolicyList) DeepCopy() *AlertPolicyList

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

func (*AlertPolicyList) DeepCopyInto

func (in *AlertPolicyList) DeepCopyInto(out *AlertPolicyList)

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

func (*AlertPolicyList) DeepCopyObject

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

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

type AlertPolicyNotificationTarget

type AlertPolicyNotificationTarget struct {
	// +kubebuilder:validation:Enum=AlertNotificationTarget
	Kind      string                       `json:"kind,omitempty"`
	Metadata  metav1.ObjectMeta            `json:"metadata,omitempty"`
	Spec      *AlertNotificationTargetSpec `json:"spec,omitempty"`
	TargetRef *string                      `json:"targetRef,omitempty"`
}

func (*AlertPolicyNotificationTarget) DeepCopy

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

func (*AlertPolicyNotificationTarget) DeepCopyInto

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

type AlertPolicySpec

type AlertPolicySpec struct {
	Description        Description `json:"description,omitempty"`
	AlertWhenNoData    bool        `json:"alertWhenNoData,omitempty"`
	AlertWhenResolved  bool        `json:"alertWhenResolved,omitempty"`
	AlertWhenBreaching bool        `json:"alertWhenBreaching,omitempty"`
	// +kubebuilder:validation:MaxItems=1
	Conditions          []AlertPolicyCondition          `json:"conditions,omitempty"`
	NotificationTargets []AlertPolicyNotificationTarget `json:"notificationTargets,omitempty"`
}

AlertPolicySpec defines the desired state of AlertPolicy

func (*AlertPolicySpec) DeepCopy

func (in *AlertPolicySpec) DeepCopy() *AlertPolicySpec

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

func (*AlertPolicySpec) DeepCopyInto

func (in *AlertPolicySpec) DeepCopyInto(out *AlertPolicySpec)

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

type AlertPolicyStatus

type AlertPolicyStatus struct {
}

AlertPolicyStatus defines the observed state of AlertPolicy

func (*AlertPolicyStatus) DeepCopy

func (in *AlertPolicyStatus) DeepCopy() *AlertPolicyStatus

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

func (*AlertPolicyStatus) DeepCopyInto

func (in *AlertPolicyStatus) DeepCopyInto(out *AlertPolicyStatus)

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

type CalendarSpec

type CalendarSpec struct {
	// Date with time in 24h format, format without time zone
	// +kubebuilder:example="2020-01-21 12:30:00"
	StartTime string `json:"startTime,omitempty"`

	// Name as in IANA Time Zone Database
	// +kubebuilder:example="America/New_York"
	TimeZone string `json:"timeZone,omitempty"`
}

func (*CalendarSpec) DeepCopy

func (in *CalendarSpec) DeepCopy() *CalendarSpec

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

func (*CalendarSpec) DeepCopyInto

func (in *CalendarSpec) DeepCopyInto(out *CalendarSpec)

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

type ConditionSpec

type ConditionSpec struct {
	// +kubebuilder:validation:Enum=Burnrate
	Kind string `json:"kind,omitempty"`
	// +kubebuilder:validation:Enum=lte;gte;lt;gt
	Op             string   `json:"op,omitempty"`
	Threshold      string   `json:"threshold,omitempty"`
	LookbackWindow Duration `json:"lookbackWindow,omitempty"`
	AlertAfter     Duration `json:"alertAfter,omitempty"`
}

func (*ConditionSpec) DeepCopy

func (in *ConditionSpec) DeepCopy() *ConditionSpec

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

func (*ConditionSpec) DeepCopyInto

func (in *ConditionSpec) DeepCopyInto(out *ConditionSpec)

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

type ConnectionDetails

type ConnectionDetails struct {
	Mimir  *osko.Mimir  `json:"mimir,omitempty"`
	Cortex *osko.Cortex `json:"cortex,omitempty"`
}

ConnectionDetails specify how to connect to your metrics data provider +kubebuilder:validation:MinProperties=1 +kubebuilder:validation:MaxProperties=1

func (*ConnectionDetails) DeepCopy

func (in *ConnectionDetails) DeepCopy() *ConnectionDetails

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

func (*ConnectionDetails) DeepCopyInto

func (in *ConnectionDetails) DeepCopyInto(out *ConnectionDetails)

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

type Datasource

type Datasource struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   DatasourceSpec   `json:"spec,omitempty"`
	Status DatasourceStatus `json:"status,omitempty"`
}

Datasource is the Schema for the datasources API

func (*Datasource) DeepCopy

func (in *Datasource) DeepCopy() *Datasource

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

func (*Datasource) DeepCopyInto

func (in *Datasource) DeepCopyInto(out *Datasource)

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

func (*Datasource) DeepCopyObject

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

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

type DatasourceList

type DatasourceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Datasource `json:"items"`
}

DatasourceList contains a list of Datasource

func (*DatasourceList) DeepCopy

func (in *DatasourceList) DeepCopy() *DatasourceList

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

func (*DatasourceList) DeepCopyInto

func (in *DatasourceList) DeepCopyInto(out *DatasourceList)

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

func (*DatasourceList) DeepCopyObject

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

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

type DatasourceSpec

type DatasourceSpec struct {
	Description       Description            `json:"description,omitempty"`
	Type              string                 `json:"type,omitempty"`
	ConnectionDetails osko.ConnectionDetails `json:"connectionDetails,omitempty"`
}

DatasourceSpec defines the desired state of Datasource

func (*DatasourceSpec) DeepCopy

func (in *DatasourceSpec) DeepCopy() *DatasourceSpec

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

func (*DatasourceSpec) DeepCopyInto

func (in *DatasourceSpec) DeepCopyInto(out *DatasourceSpec)

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

type DatasourceStatus

type DatasourceStatus struct {
}

DatasourceStatus defines the observed state of Datasource

func (*DatasourceStatus) DeepCopy

func (in *DatasourceStatus) DeepCopy() *DatasourceStatus

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

func (*DatasourceStatus) DeepCopyInto

func (in *DatasourceStatus) DeepCopyInto(out *DatasourceStatus)

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

type Description

type Description string

+kubebuilder:validation:MaxLength=1050

type Duration

type Duration string

+kubebuilder:validation:Pattern=`^[1-9]\d*[s m h d]$`

type Indicator

type Indicator struct {
	Metadata metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec     SLISpec           `json:"spec,omitempty"`
}

func (*Indicator) DeepCopy

func (in *Indicator) DeepCopy() *Indicator

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

func (*Indicator) DeepCopyInto

func (in *Indicator) DeepCopyInto(out *Indicator)

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

type MetricSource

type MetricSource struct {
	MetricSourceRef string           `json:"metricSourceRef,omitempty"`
	Type            string           `json:"type,omitempty"`
	Spec            MetricSourceSpec `json:"spec,omitempty"`
}

func (*MetricSource) DeepCopy

func (in *MetricSource) DeepCopy() *MetricSource

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

func (*MetricSource) DeepCopyInto

func (in *MetricSource) DeepCopyInto(out *MetricSource)

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

type MetricSourceSpec

type MetricSourceSpec struct {
	Query string `json:"query,omitempty"`
}

func (*MetricSourceSpec) DeepCopy

func (in *MetricSourceSpec) DeepCopy() *MetricSourceSpec

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

func (*MetricSourceSpec) DeepCopyInto

func (in *MetricSourceSpec) DeepCopyInto(out *MetricSourceSpec)

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

type MetricSpec

type MetricSpec struct {
	MetricSource MetricSource `json:"metricSource,omitempty"`
}

func (*MetricSpec) DeepCopy

func (in *MetricSpec) DeepCopy() *MetricSpec

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

func (*MetricSpec) DeepCopyInto

func (in *MetricSpec) DeepCopyInto(out *MetricSpec)

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

type ObjectMetaOpenSLO

type ObjectMetaOpenSLO struct {
	metav1.ObjectMeta `json:",inline"`
	DisplayName       string `json:"displayName,omitempty"`
}

func (*ObjectMetaOpenSLO) DeepCopy

func (in *ObjectMetaOpenSLO) DeepCopy() *ObjectMetaOpenSLO

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

func (*ObjectMetaOpenSLO) DeepCopyInto

func (in *ObjectMetaOpenSLO) DeepCopyInto(out *ObjectMetaOpenSLO)

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

type ObjectivesSpec

type ObjectivesSpec struct {
	// +optional
	DisplayName string `json:"displayName,omitempty"`
	// +kubebuilder:validation:Enum=lte;gte;lt;gt
	Op              string            `json:"op,omitempty"`
	Value           string            `json:"value,omitempty"`
	Target          string            `json:"target,omitempty"`
	TargetPercent   string            `json:"targetPercent,omitempty"`
	TimeSliceTarget string            `json:"timeSliceTarget,omitempty"`
	TimeSliceWindow Duration          `json:"timeSliceWindow,omitempty"`
	Indicator       *Indicator        `json:"indicator,omitempty"`
	IndicatorRef    *string           `json:"indicatorRef,omitempty"`
	CompositeWeight resource.Quantity `json:"compositeWeight,omitempty"`
}

func (*ObjectivesSpec) DeepCopy

func (in *ObjectivesSpec) DeepCopy() *ObjectivesSpec

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

func (*ObjectivesSpec) DeepCopyInto

func (in *ObjectivesSpec) DeepCopyInto(out *ObjectivesSpec)

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

type RatioMetricSpec

type RatioMetricSpec struct {
	Raw MetricSpec `json:"raw,omitempty"`
	// +kubebuilder:validation:Enum=success;failure
	RawType string     `json:"rawType,omitempty"`
	Good    MetricSpec `json:"good,omitempty"`
	Bad     MetricSpec `json:"bad,omitempty"`
	Total   MetricSpec `json:"total,omitempty"`
	Counter bool       `json:"counter,omitempty"`
}

func (*RatioMetricSpec) DeepCopy

func (in *RatioMetricSpec) DeepCopy() *RatioMetricSpec

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

func (*RatioMetricSpec) DeepCopyInto

func (in *RatioMetricSpec) DeepCopyInto(out *RatioMetricSpec)

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

type SLI

type SLI struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   SLISpec   `json:"spec,omitempty"`
	Status SLIStatus `json:"status,omitempty"`
}

SLI is the Schema for the slis API

func (*SLI) DeepCopy

func (in *SLI) DeepCopy() *SLI

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

func (*SLI) DeepCopyInto

func (in *SLI) DeepCopyInto(out *SLI)

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

func (*SLI) DeepCopyObject

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

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

type SLIList

type SLIList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []SLI `json:"items"`
}

SLIList contains a list of SLI

func (*SLIList) DeepCopy

func (in *SLIList) DeepCopy() *SLIList

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

func (*SLIList) DeepCopyInto

func (in *SLIList) DeepCopyInto(out *SLIList)

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

func (*SLIList) DeepCopyObject

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

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

type SLISpec

type SLISpec struct {
	Description     Description         `json:"description,omitempty"`
	ThresholdMetric ThresholdMetricSpec `json:"thresholdMetric,omitempty"`
	RatioMetric     RatioMetricSpec     `json:"ratioMetric,omitempty"`
}

SLISpec defines the desired state of SLI

func (*SLISpec) DeepCopy

func (in *SLISpec) DeepCopy() *SLISpec

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

func (*SLISpec) DeepCopyInto

func (in *SLISpec) DeepCopyInto(out *SLISpec)

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

type SLIStatus

type SLIStatus struct {
}

SLIStatus defines the observed state of SLI

func (*SLIStatus) DeepCopy

func (in *SLIStatus) DeepCopy() *SLIStatus

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

func (*SLIStatus) DeepCopyInto

func (in *SLIStatus) DeepCopyInto(out *SLIStatus)

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

type SLO

type SLO struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              SLOSpec   `json:"spec,omitempty"`
	Status            SLOStatus `json:"status,omitempty"`
}

SLO is the Schema for the slos API

func (*SLO) DeepCopy

func (in *SLO) DeepCopy() *SLO

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

func (*SLO) DeepCopyInto

func (in *SLO) DeepCopyInto(out *SLO)

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

func (*SLO) DeepCopyObject

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

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

type SLOAlertPolicy

type SLOAlertPolicy struct {
	// +kubebuilder:validation:Enum=AlertPolicy
	Kind string `json:"kind,omitempty"`
	// +kubebuilder:crd:generateEmbeddedObjectMeta=true
	Metadata       metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec           *AlertPolicySpec  `json:"spec,omitempty"`
	AlertPolicyRef *string           `json:"alertPolicyRef,omitempty"`
}

func (*SLOAlertPolicy) DeepCopy

func (in *SLOAlertPolicy) DeepCopy() *SLOAlertPolicy

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

func (*SLOAlertPolicy) DeepCopyInto

func (in *SLOAlertPolicy) DeepCopyInto(out *SLOAlertPolicy)

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

type SLOList

type SLOList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []SLO `json:"items"`
}

SLOList contains a list of SLO

func (*SLOList) DeepCopy

func (in *SLOList) DeepCopy() *SLOList

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

func (*SLOList) DeepCopyInto

func (in *SLOList) DeepCopyInto(out *SLOList)

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

func (*SLOList) DeepCopyObject

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

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

type SLOSpec

type SLOSpec struct {
	Description  Description `json:"description,omitempty"`
	Service      string      `json:"service,omitempty"`
	Indicator    *Indicator  `json:"indicator,omitempty"`
	IndicatorRef *string     `json:"indicatorRef,omitempty"`
	// +kubebuilder:validation:MaxItems=1
	TimeWindow []TimeWindowSpec `json:"timeWindow,omitempty"`
	// +kubebuilder:validation:Enum=Occurrences;Timeslices;RatioTimeslices
	BudgetingMethod string           `json:"budgetingMethod,omitempty"`
	Objectives      []ObjectivesSpec `json:"objectives,omitempty"`
	AlertPolicies   []SLOAlertPolicy `json:"alertPolicies,omitempty"`
}

SLOSpec defines the desired state of SLO

func (*SLOSpec) DeepCopy

func (in *SLOSpec) DeepCopy() *SLOSpec

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

func (*SLOSpec) DeepCopyInto

func (in *SLOSpec) DeepCopyInto(out *SLOSpec)

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

type SLOStatus

type SLOStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Conditions         []metav1.Condition `json:"conditions,omitempty"`
	CurrentSLO         string             `json:"currentSLO,omitempty"`
	LastEvaluationTime metav1.Time        `json:"lastEvaluationTime,omitempty"`
	Ready              string             `json:"ready,omitempty"`
}

SLOStatus defines the observed state of SLO

func (*SLOStatus) DeepCopy

func (in *SLOStatus) DeepCopy() *SLOStatus

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

func (*SLOStatus) DeepCopyInto

func (in *SLOStatus) DeepCopyInto(out *SLOStatus)

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

type Service

type Service struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ServiceSpec   `json:"spec,omitempty"`
	Status ServiceStatus `json:"status,omitempty"`
}

Service is the Schema for the services API

func (*Service) DeepCopy

func (in *Service) DeepCopy() *Service

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

func (*Service) DeepCopyInto

func (in *Service) DeepCopyInto(out *Service)

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

func (*Service) DeepCopyObject

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

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

type ServiceList

type ServiceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Service `json:"items"`
}

ServiceList contains a list of Service

func (*ServiceList) DeepCopy

func (in *ServiceList) DeepCopy() *ServiceList

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

func (*ServiceList) DeepCopyInto

func (in *ServiceList) DeepCopyInto(out *ServiceList)

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

func (*ServiceList) DeepCopyObject

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

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

type ServiceSpec

type ServiceSpec struct {
	Description Description `json:"description,omitempty"`
}

ServiceSpec defines the desired state of Service

func (*ServiceSpec) DeepCopy

func (in *ServiceSpec) DeepCopy() *ServiceSpec

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

func (*ServiceSpec) DeepCopyInto

func (in *ServiceSpec) DeepCopyInto(out *ServiceSpec)

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

type ServiceStatus

type ServiceStatus struct{}

func (*ServiceStatus) DeepCopy

func (in *ServiceStatus) DeepCopy() *ServiceStatus

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

func (*ServiceStatus) DeepCopyInto

func (in *ServiceStatus) DeepCopyInto(out *ServiceStatus)

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

type ThresholdMetricSpec

type ThresholdMetricSpec struct {
	MetricSource MetricSource `json:"metricSource,omitempty"`
}

func (*ThresholdMetricSpec) DeepCopy

func (in *ThresholdMetricSpec) DeepCopy() *ThresholdMetricSpec

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

func (*ThresholdMetricSpec) DeepCopyInto

func (in *ThresholdMetricSpec) DeepCopyInto(out *ThresholdMetricSpec)

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

type TimeWindowSpec

type TimeWindowSpec struct {
	Duration  Duration     `json:"duration,omitempty"`
	IsRolling bool         `json:"isRolling,omitempty"`
	Calendar  CalendarSpec `json:"calendar,omitempty"`
}

func (*TimeWindowSpec) DeepCopy

func (in *TimeWindowSpec) DeepCopy() *TimeWindowSpec

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

func (*TimeWindowSpec) DeepCopyInto

func (in *TimeWindowSpec) DeepCopyInto(out *TimeWindowSpec)

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