v1alpha1

package
v0.0.0-...-c08bb07 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the metrics v1alpha1 API group +kubebuilder:object:generate=true +groupName=metrics.keptn.sh

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "metrics.keptn.sh", Version: "v1alpha1"}

	// 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 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"`
}

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
	Value string `json:"value"`
	// RawValue represents the resulting value in raw format
	RawValue []byte `json:"rawValue"`
	// LastUpdated represents the time when the status data was last updated
	LastUpdated metav1.Time `json:"lastUpdated"`
}

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 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.

Jump to

Keyboard shortcuts

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