Documentation
¶
Overview ¶
Package v1alpha3 contains API Schema definitions for the metrics v1alpha3 API group +kubebuilder:object:generate=true +groupName=metrics.keptn.sh
Index ¶
- Variables
- type Analysis
- type AnalysisDefinition
- type AnalysisDefinitionList
- type AnalysisDefinitionSpec
- type AnalysisList
- type AnalysisSpec
- type AnalysisState
- type AnalysisStatus
- type AnalysisValueTemplate
- type AnalysisValueTemplateList
- type AnalysisValueTemplateSpec
- type IntervalResult
- type KeptnMetric
- type KeptnMetricList
- type KeptnMetricSpec
- type KeptnMetricStatus
- type KeptnMetricsProvider
- type KeptnMetricsProviderList
- type KeptnMetricsProviderSpec
- type ObjectReference
- type Objective
- type Operator
- type OperatorValue
- type ProviderRef
- type ProviderResult
- type RangeSpec
- type RangeValue
- type Target
- type Timeframe
- type TotalScore
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "metrics.keptn.sh", Version: "v1alpha3"} // 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 Analysis ¶
type Analysis struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // +optional Spec AnalysisSpec `json:"spec,omitempty"` // +optional Status AnalysisStatus `json:"status,omitempty"` }
Analysis is the Schema for the analyses API
func (*Analysis) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Analysis.
func (*Analysis) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Analysis) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AnalysisDefinition ¶
type AnalysisDefinition struct { metav1.TypeMeta `json:",inline" yaml:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"` // +optional Spec AnalysisDefinitionSpec `json:"spec,omitempty" yaml:"spec,omitempty"` // unused field // +optional Status string `json:"status,omitempty"` }
AnalysisDefinition is the Schema for the analysisdefinitions APIs
func (*AnalysisDefinition) DeepCopy ¶
func (in *AnalysisDefinition) DeepCopy() *AnalysisDefinition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AnalysisDefinition.
func (*AnalysisDefinition) DeepCopyInto ¶
func (in *AnalysisDefinition) DeepCopyInto(out *AnalysisDefinition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AnalysisDefinition) DeepCopyObject ¶
func (in *AnalysisDefinition) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AnalysisDefinitionList ¶
type AnalysisDefinitionList struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ListMeta `json:"metadata,omitempty"` Items []AnalysisDefinition `json:"items"` }
AnalysisDefinitionList contains a list of AnalysisDefinition
func (*AnalysisDefinitionList) DeepCopy ¶
func (in *AnalysisDefinitionList) DeepCopy() *AnalysisDefinitionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AnalysisDefinitionList.
func (*AnalysisDefinitionList) DeepCopyInto ¶
func (in *AnalysisDefinitionList) DeepCopyInto(out *AnalysisDefinitionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AnalysisDefinitionList) DeepCopyObject ¶
func (in *AnalysisDefinitionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AnalysisDefinitionSpec ¶
type AnalysisDefinitionSpec struct { // Objectives defines a list of objectives to evaluate for an analysis // +optional Objectives []Objective `json:"objectives,omitempty" yaml:"objectives,omitempty"` // TotalScore defines the required score for an analysis to be successful TotalScore TotalScore `json:"totalScore" yaml:"totalScore"` }
AnalysisDefinitionSpec defines the desired state of AnalysisDefinition
func (*AnalysisDefinitionSpec) DeepCopy ¶
func (in *AnalysisDefinitionSpec) DeepCopy() *AnalysisDefinitionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AnalysisDefinitionSpec.
func (*AnalysisDefinitionSpec) DeepCopyInto ¶
func (in *AnalysisDefinitionSpec) DeepCopyInto(out *AnalysisDefinitionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AnalysisList ¶
type AnalysisList struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ListMeta `json:"metadata,omitempty"` Items []Analysis `json:"items"` }
AnalysisList contains a list of Analysis
func (*AnalysisList) DeepCopy ¶
func (in *AnalysisList) DeepCopy() *AnalysisList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AnalysisList.
func (*AnalysisList) DeepCopyInto ¶
func (in *AnalysisList) DeepCopyInto(out *AnalysisList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AnalysisList) DeepCopyObject ¶
func (in *AnalysisList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AnalysisSpec ¶
type AnalysisSpec struct { // Timeframe specifies the range for the corresponding query in the AnalysisValueTemplate. Please note that either // a combination of 'from' and 'to' or the 'recent' property may be set. If neither is set, the Analysis can // not be added to the cluster. Timeframe `json:"timeframe"` // Args corresponds to a map of key/value pairs that can be used to substitute placeholders in the AnalysisValueTemplate query. i.e. for args foo:bar the query could be "query:percentile(95)?scope=tag(my_foo_label:{{.foo}})". // +optional Args map[string]string `json:"args,omitempty"` // AnalysisDefinition refers to the AnalysisDefinition, a CRD that stores the AnalysisValuesTemplates AnalysisDefinition ObjectReference `json:"analysisDefinition"` }
AnalysisSpec defines the desired state of Analysis
func (*AnalysisSpec) DeepCopy ¶
func (in *AnalysisSpec) DeepCopy() *AnalysisSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AnalysisSpec.
func (*AnalysisSpec) DeepCopyInto ¶
func (in *AnalysisSpec) DeepCopyInto(out *AnalysisSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AnalysisState ¶
type AnalysisState string
AnalysisState represents the state of the analysis
const ( StatePending AnalysisState = "Pending" StateProgressing AnalysisState = "Progressing" StateCompleted AnalysisState = "Completed" )
type AnalysisStatus ¶
type AnalysisStatus struct { // Timeframe describes the time frame which is evaluated by the Analysis Timeframe Timeframe `json:"timeframe"` // Raw contains the raw result of the SLO computation // +optional Raw string `json:"raw,omitempty"` // Pass returns whether the SLO is satisfied // +optional Pass bool `json:"pass,omitempty"` // Warning returns whether the analysis returned a warning // +optional Warning bool `json:"warning,omitempty"` // State describes the current state of the Analysis (Pending/Progressing/Completed) State AnalysisState `json:"state"` // StoredValues contains all analysis values that have already been retrieved successfully // +optional StoredValues map[string]ProviderResult `json:"storedValues,omitempty"` }
AnalysisStatus stores the status of the overall analysis returns also pass or warnings
func (*AnalysisStatus) DeepCopy ¶
func (in *AnalysisStatus) DeepCopy() *AnalysisStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AnalysisStatus.
func (*AnalysisStatus) DeepCopyInto ¶
func (in *AnalysisStatus) DeepCopyInto(out *AnalysisStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AnalysisValueTemplate ¶
type AnalysisValueTemplate struct { metav1.TypeMeta `json:",inline" yaml:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"` // Spec contains the specification for the AnalysisValueTemplate // +optional Spec AnalysisValueTemplateSpec `json:"spec,omitempty" yaml:"spec,omitempty"` // unused field // +optional Status string `json:"status,omitempty" yaml:"status,omitempty"` }
AnalysisValueTemplate is the Schema for the analysisvaluetemplates API
func (*AnalysisValueTemplate) DeepCopy ¶
func (in *AnalysisValueTemplate) DeepCopy() *AnalysisValueTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AnalysisValueTemplate.
func (*AnalysisValueTemplate) DeepCopyInto ¶
func (in *AnalysisValueTemplate) DeepCopyInto(out *AnalysisValueTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AnalysisValueTemplate) DeepCopyObject ¶
func (in *AnalysisValueTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AnalysisValueTemplateList ¶
type AnalysisValueTemplateList struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ListMeta `json:"metadata,omitempty"` Items []AnalysisValueTemplate `json:"items"` }
AnalysisValueTemplateList contains a list of AnalysisValueTemplate
func (*AnalysisValueTemplateList) DeepCopy ¶
func (in *AnalysisValueTemplateList) DeepCopy() *AnalysisValueTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AnalysisValueTemplateList.
func (*AnalysisValueTemplateList) DeepCopyInto ¶
func (in *AnalysisValueTemplateList) DeepCopyInto(out *AnalysisValueTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AnalysisValueTemplateList) DeepCopyObject ¶
func (in *AnalysisValueTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AnalysisValueTemplateSpec ¶
type AnalysisValueTemplateSpec struct { // Provider refers to the KeptnMetricsProvider which should be used to retrieve the data Provider ObjectReference `json:"provider" yaml:"provider"` // Query represents the query to be run. It can include placeholders that are defined using the go template // syntax. More info on go templating - https://pkg.go.dev/text/template Query string `json:"query" yaml:"query"` }
AnalysisValueTemplateSpec defines the desired state of AnalysisValueTemplate
func (*AnalysisValueTemplateSpec) DeepCopy ¶
func (in *AnalysisValueTemplateSpec) DeepCopy() *AnalysisValueTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AnalysisValueTemplateSpec.
func (*AnalysisValueTemplateSpec) DeepCopyInto ¶
func (in *AnalysisValueTemplateSpec) DeepCopyInto(out *AnalysisValueTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IntervalResult ¶
type IntervalResult struct { // Value represents the resulting value Value string `json:"value"` // Range represents the time range for which this data was queried Range *RangeSpec `json:"range"` // LastUpdated represents the time when the status data was last updated LastUpdated metav1.Time `json:"lastUpdated"` // ErrMsg represents the error details when the query could not be evaluated // +optional ErrMsg string `json:"errMsg,omitempty"` }
func (*IntervalResult) DeepCopy ¶
func (in *IntervalResult) DeepCopy() *IntervalResult
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IntervalResult.
func (*IntervalResult) DeepCopyInto ¶
func (in *IntervalResult) DeepCopyInto(out *IntervalResult)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KeptnMetric ¶
type KeptnMetric struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // +optional Spec KeptnMetricSpec `json:"spec,omitempty"` // +optional Status KeptnMetricStatus `json:"status,omitempty"` }
KeptnMetric is the Schema for the keptnmetrics API
func (*KeptnMetric) DeepCopy ¶
func (in *KeptnMetric) DeepCopy() *KeptnMetric
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeptnMetric.
func (*KeptnMetric) DeepCopyInto ¶
func (in *KeptnMetric) DeepCopyInto(out *KeptnMetric)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KeptnMetric) DeepCopyObject ¶
func (in *KeptnMetric) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KeptnMetricList ¶
type KeptnMetricList struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ListMeta `json:"metadata,omitempty"` Items []KeptnMetric `json:"items"` }
KeptnMetricList contains a list of KeptnMetric
func (*KeptnMetricList) DeepCopy ¶
func (in *KeptnMetricList) DeepCopy() *KeptnMetricList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeptnMetricList.
func (*KeptnMetricList) DeepCopyInto ¶
func (in *KeptnMetricList) DeepCopyInto(out *KeptnMetricList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KeptnMetricList) DeepCopyObject ¶
func (in *KeptnMetricList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KeptnMetricSpec ¶
type KeptnMetricSpec struct { // Provider represents the provider object Provider ProviderRef `json:"provider"` // Query represents the query to be run Query string `json:"query"` // FetchIntervalSeconds represents the update frequency in seconds that is used to update the metric FetchIntervalSeconds uint `json:"fetchIntervalSeconds"` // Range represents the time range for which data is to be queried // +optional Range *RangeSpec `json:"range,omitempty"` }
KeptnMetricSpec defines the desired state of KeptnMetric
func (*KeptnMetricSpec) DeepCopy ¶
func (in *KeptnMetricSpec) DeepCopy() *KeptnMetricSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeptnMetricSpec.
func (*KeptnMetricSpec) DeepCopyInto ¶
func (in *KeptnMetricSpec) DeepCopyInto(out *KeptnMetricSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KeptnMetricStatus ¶
type KeptnMetricStatus struct { // Value represents the resulting value // +optional Value string `json:"value,omitempty"` // RawValue represents the resulting value in raw format // +optional RawValue []byte `json:"rawValue,omitempty"` // LastUpdated represents the time when the status data was last updated // +optional LastUpdated metav1.Time `json:"lastUpdated,omitempty"` // ErrMsg represents the error details when the query could not be evaluated // +optional ErrMsg string `json:"errMsg,omitempty"` // IntervalResults contain a slice of all the interval results // +optional IntervalResults []IntervalResult `json:"intervalResults,omitempty"` }
KeptnMetricStatus defines the observed state of KeptnMetric
func (*KeptnMetricStatus) DeepCopy ¶
func (in *KeptnMetricStatus) DeepCopy() *KeptnMetricStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeptnMetricStatus.
func (*KeptnMetricStatus) DeepCopyInto ¶
func (in *KeptnMetricStatus) DeepCopyInto(out *KeptnMetricStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KeptnMetricsProvider ¶
type KeptnMetricsProvider struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // +optional Spec KeptnMetricsProviderSpec `json:"spec,omitempty"` // unused field // +optional Status string `json:"status,omitempty"` }
KeptnMetricsProvider is the Schema for the keptnmetricsproviders API
func (*KeptnMetricsProvider) DeepCopy ¶
func (in *KeptnMetricsProvider) DeepCopy() *KeptnMetricsProvider
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeptnMetricsProvider.
func (*KeptnMetricsProvider) DeepCopyInto ¶
func (in *KeptnMetricsProvider) DeepCopyInto(out *KeptnMetricsProvider)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KeptnMetricsProvider) DeepCopyObject ¶
func (in *KeptnMetricsProvider) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KeptnMetricsProviderList ¶
type KeptnMetricsProviderList struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ListMeta `json:"metadata,omitempty"` Items []KeptnMetricsProvider `json:"items"` }
KeptnMetricsProviderList contains a list of KeptnMetricsProvider
func (*KeptnMetricsProviderList) DeepCopy ¶
func (in *KeptnMetricsProviderList) DeepCopy() *KeptnMetricsProviderList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeptnMetricsProviderList.
func (*KeptnMetricsProviderList) DeepCopyInto ¶
func (in *KeptnMetricsProviderList) DeepCopyInto(out *KeptnMetricsProviderList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KeptnMetricsProviderList) DeepCopyObject ¶
func (in *KeptnMetricsProviderList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KeptnMetricsProviderSpec ¶
type KeptnMetricsProviderSpec struct { // +kubebuilder:validation:Optional // +kubebuilder:validation:Pattern:=prometheus|dynatrace|datadog|dql // Type represents the provider type. This can be one of prometheus, dynatrace, datadog, dql. Type string `json:"type"` // TargetServer defined the URL at which the metrics provider is reachable with included port and protocol. TargetServer string `json:"targetServer"` // +kubebuilder:validation:Optional // SecretKeyRef defines an optional secret for access credentials to the metrics provider. // +optional SecretKeyRef corev1.SecretKeySelector `json:"secretKeyRef,omitempty"` }
KeptnMetricsProviderSpec defines the desired state of KeptnMetricsProvider
func (*KeptnMetricsProviderSpec) DeepCopy ¶
func (in *KeptnMetricsProviderSpec) DeepCopy() *KeptnMetricsProviderSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeptnMetricsProviderSpec.
func (*KeptnMetricsProviderSpec) DeepCopyInto ¶
func (in *KeptnMetricsProviderSpec) DeepCopyInto(out *KeptnMetricsProviderSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ObjectReference ¶
type ObjectReference struct { // Name defines the name of the referenced object Name string `json:"name"` // Namespace defines the namespace of the referenced object // +optional Namespace string `json:"namespace,omitempty"` }
func (*ObjectReference) DeepCopy ¶
func (in *ObjectReference) DeepCopy() *ObjectReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectReference.
func (*ObjectReference) DeepCopyInto ¶
func (in *ObjectReference) DeepCopyInto(out *ObjectReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Objective ¶
type Objective struct { // AnalysisValueTemplateRef refers to the appropriate AnalysisValueTemplate AnalysisValueTemplateRef ObjectReference `json:"analysisValueTemplateRef" yaml:"analysisValueTemplateRef"` // Target defines failure or warning criteria // +optional Target Target `json:"target,omitempty" yaml:"target,omitempty"` // Weight can be used to emphasize the importance of one Objective over the others // +kubebuilder:default:=1 // +optional Weight int `json:"weight,omitempty" yaml:"weight,omitempty"` // KeyObjective defines whether the whole analysis fails when this objective's target is not met // +kubebuilder:default:=false // +optional KeyObjective bool `json:"keyObjective,omitempty" yaml:"keyObjective,omitempty"` }
Objective defines an objective for analysis
func (*Objective) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Objective.
func (*Objective) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Operator ¶
type Operator struct { // LessThanOrEqual represents '<=' operator // +optional LessThanOrEqual *OperatorValue `json:"lessThanOrEqual,omitempty" yaml:"lessThanOrEqual,omitempty"` // LessThan represents '<' operator // +optional LessThan *OperatorValue `json:"lessThan,omitempty" yaml:"lessThan,omitempty"` // GreaterThan represents '>' operator // +optional GreaterThan *OperatorValue `json:"greaterThan,omitempty" yaml:"greaterThan,omitempty"` // GreaterThanOrEqual represents '>=' operator // +optional GreaterThanOrEqual *OperatorValue `json:"greaterThanOrEqual,omitempty" yaml:"greaterThanOrEqual,omitempty"` // EqualTo represents '==' operator // +optional EqualTo *OperatorValue `json:"equalTo,omitempty" yaml:"equalTo,omitempty"` // InRange represents operator checking the value is inclusively in the defined range, e.g. 2 <= x <= 5 // +optional InRange *RangeValue `json:"inRange,omitempty" yaml:"inRange,omitempty"` // NotInRange represents operator checking the value is exclusively out of the defined range, e.g. x < 2 AND x > 5 // +optional NotInRange *RangeValue `json:"notInRange,omitempty" yaml:"notInRange,omitempty"` }
Operator specifies the supported operators for value comparisons
func (*Operator) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Operator.
func (*Operator) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OperatorValue ¶
type OperatorValue struct { // FixedValue defines the value for comparison FixedValue resource.Quantity `json:"fixedValue" yaml:"fixedValue"` }
OperatorValue represents the value to which the result is compared
func (*OperatorValue) DeepCopy ¶
func (in *OperatorValue) DeepCopy() *OperatorValue
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OperatorValue.
func (*OperatorValue) DeepCopyInto ¶
func (in *OperatorValue) DeepCopyInto(out *OperatorValue)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProviderRef ¶
type ProviderRef struct { // Name of the provider Name string `json:"name"` }
ProviderRef represents the provider object
func (*ProviderRef) DeepCopy ¶
func (in *ProviderRef) DeepCopy() *ProviderRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderRef.
func (*ProviderRef) DeepCopyInto ¶
func (in *ProviderRef) DeepCopyInto(out *ProviderRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProviderResult ¶
type ProviderResult struct { // Objective store reference to corresponding objective template // +optional Objective ObjectReference `json:"objectiveReference,omitempty"` // Query represents the executed query // +optional Query string `json:"query,omitempty"` // Value is the value the provider returned // +optional Value string `json:"value,omitempty"` // ErrMsg stores any possible error at retrieval time // +optional ErrMsg string `json:"errMsg,omitempty"` }
ProviderResult stores reference of already collected provider query associated to its objective template
func (*ProviderResult) DeepCopy ¶
func (in *ProviderResult) DeepCopy() *ProviderResult
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderResult.
func (*ProviderResult) DeepCopyInto ¶
func (in *ProviderResult) DeepCopyInto(out *ProviderResult)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RangeSpec ¶
type RangeSpec struct { // Interval specifies the duration of the time interval for the data query // +optional // +kubebuilder:default:="5m" // +optional Interval string `json:"interval,omitempty"` // Step represents the query resolution step width for the data query // +optional Step string `json:"step,omitempty"` // Aggregation defines the type of aggregation function to be applied on the data. Accepted values: p90, p95, p99, max, min, avg, median // +kubebuilder:validation:Enum:=p90;p95;p99;max;min;avg;median // +optional Aggregation string `json:"aggregation,omitempty"` // StoredResults indicates the upper limit of how many past results should be stored in the status of a KeptnMetric // +kubebuilder:validation:Maximum:=255 // +optional StoredResults uint `json:"storedResults,omitempty"` }
RangeSpec defines the time range for which data is to be queried
func (*RangeSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RangeSpec.
func (*RangeSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RangeValue ¶
type RangeValue struct { // LowBound defines the lower bound of the range LowBound resource.Quantity `json:"lowBound"` // HighBound defines the higher bound of the range HighBound resource.Quantity `json:"highBound"` }
RangeValue represents a range which the value should fit
func (*RangeValue) DeepCopy ¶
func (in *RangeValue) DeepCopy() *RangeValue
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RangeValue.
func (*RangeValue) DeepCopyInto ¶
func (in *RangeValue) DeepCopyInto(out *RangeValue)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Target ¶
type Target struct { // Failure defines limits up to which an analysis fails // +optional Failure *Operator `json:"failure,omitempty" yaml:"failure,omitempty"` // Warning defines limits where the result does not pass or fail // +optional Warning *Operator `json:"warning,omitempty" yaml:"warning,omitempty"` }
Target defines the failure and warning criteria
func (*Target) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Target.
func (*Target) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Timeframe ¶
type Timeframe struct { // From is the time of start for the query. This field follows RFC3339 time format // +optional From metav1.Time `json:"from,omitempty"` // To is the time of end for the query. This field follows RFC3339 time format // +optional To metav1.Time `json:"to,omitempty"` // Recent describes a recent timeframe using a duration string. E.g. Setting this to '5m' provides an Analysis // for the last five minutes // +kubebuilder:validation:Pattern="^0|([0-9]+(\\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$" // +kubebuilder:validation:Type:=string // +optional Recent metav1.Duration `json:"recent,omitempty"` }
func (*Timeframe) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Timeframe.
func (*Timeframe) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TotalScore ¶
type TotalScore struct { // PassPercentage defines the threshold to reach for an analysis to pass // +kubebuilder:validation:Minimum:=0 // +kubebuilder:validation:Maximum:=100 PassPercentage int `json:"passPercentage" yaml:"passPercentage"` // WarningPercentage defines the threshold to reach for an analysis to pass with a 'warning' status // +kubebuilder:validation:Minimum:=0 // +kubebuilder:validation:Maximum:=100 WarningPercentage int `json:"warningPercentage" yaml:"warningPercentage"` }
TotalScore defines the required score for an analysis to be successful
func (*TotalScore) DeepCopy ¶
func (in *TotalScore) DeepCopy() *TotalScore
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TotalScore.
func (*TotalScore) DeepCopyInto ¶
func (in *TotalScore) DeepCopyInto(out *TotalScore)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.