v1alpha1

package
v0.0.0-...-ad18593 Latest Latest
Warning

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

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

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the observability-analytics v1alpha1 API group +kubebuilder:object:generate=true +groupName=observability-analytics.redhat.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "observability-analytics.redhat.com", 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 AnomalyConfig

type AnomalyConfig struct {
	Query               string  `json:"query,omitempty"`
	Min                 int64   `json:"min,omitempty"`
	Max                 int64   `json:"max,omitempty"`
	Step                int16   `json:"step,omitempty"`
	PercentageChange    float64 `json:"percentagechange,omitempty"`
	PeriodRange         float64 `json:"periodrange,omitempty"`
	HaveMultiResultData bool    `json:"havemultiresultdata,omitempty"`
}

AnomalyConfig defines the properties set while declaring anomaly defination

func (*AnomalyConfig) DeepCopy

func (in *AnomalyConfig) DeepCopy() *AnomalyConfig

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

func (*AnomalyConfig) DeepCopyInto

func (in *AnomalyConfig) DeepCopyInto(out *AnomalyConfig)

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

type AnomalyData

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

	Spec   AnomalyDataSpec   `json:"spec,omitempty"`
	Status AnomalyDataStatus `json:"status,omitempty"`
}

AnomalyData is the Schema for the anomalydata API

func (*AnomalyData) DeepCopy

func (in *AnomalyData) DeepCopy() *AnomalyData

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

func (*AnomalyData) DeepCopyInto

func (in *AnomalyData) DeepCopyInto(out *AnomalyData)

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

func (*AnomalyData) DeepCopyObject

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

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

type AnomalyDataList

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

AnomalyDataList contains a list of AnomalyData

func (*AnomalyDataList) DeepCopy

func (in *AnomalyDataList) DeepCopy() *AnomalyDataList

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

func (*AnomalyDataList) DeepCopyInto

func (in *AnomalyDataList) DeepCopyInto(out *AnomalyDataList)

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

func (*AnomalyDataList) DeepCopyObject

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

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

type AnomalyDataSpec

type AnomalyDataSpec struct {
	AnomalyName string        `json:"anomalyname,omitempty"`
	Method      string        `json:"method,omitempty"`
	Config      AnomalyConfig `json:"config,omitempty"`
	MetricData  MetricData    `json:"metricdata,omitempty"`
}

AnomalyDataSpec defines the desired state of AnomalyData

func (*AnomalyDataSpec) DeepCopy

func (in *AnomalyDataSpec) DeepCopy() *AnomalyDataSpec

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

func (*AnomalyDataSpec) DeepCopyInto

func (in *AnomalyDataSpec) DeepCopyInto(out *AnomalyDataSpec)

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

type AnomalyDataStatus

type AnomalyDataStatus struct {
}

AnomalyDataStatus defines the observed state of AnomalyData

func (*AnomalyDataStatus) DeepCopy

func (in *AnomalyDataStatus) DeepCopy() *AnomalyDataStatus

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

func (*AnomalyDataStatus) DeepCopyInto

func (in *AnomalyDataStatus) DeepCopyInto(out *AnomalyDataStatus)

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

type AnomalyEngine

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

	Spec   AnomalyEngineSpec   `json:"spec,omitempty"`
	Status AnomalyEngineStatus `json:"status,omitempty"`
}

AnomalyEngine is the Schema for the anomalyengines API

func (*AnomalyEngine) DeepCopy

func (in *AnomalyEngine) DeepCopy() *AnomalyEngine

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

func (*AnomalyEngine) DeepCopyInto

func (in *AnomalyEngine) DeepCopyInto(out *AnomalyEngine)

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

func (*AnomalyEngine) DeepCopyObject

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

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

type AnomalyEngineList

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

AnomalyEngineList contains a list of AnomalyEngine

func (*AnomalyEngineList) DeepCopy

func (in *AnomalyEngineList) DeepCopy() *AnomalyEngineList

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

func (*AnomalyEngineList) DeepCopyInto

func (in *AnomalyEngineList) DeepCopyInto(out *AnomalyEngineList)

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

func (*AnomalyEngineList) DeepCopyObject

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

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

type AnomalyEngineSpec

type AnomalyEngineSpec struct {
	// The namespace under which Anomaly Engine cronjobs will run
	Namespace                 string                    `json:"namespace,omitempty"`
	ServiceAccountRoleBinding ServiceAccountRoleBinding `json:"serviceaccountrolebinding,omitempty"`
	CronJobConfig             CronJobConfig             `json:"cronjobconfig,omitempty"`
	// AnomalyQueryConfiguration defines the query/configuration to detect anomaly
	// You can take a look on below link to understand how to define these data structure
	// https://github.com/openshift/incluster-anomaly-detection/tree/main#understanding-anomaly-configurations
	AnomalyQueryConfiguration string `json:"anomalyqueryconfiguration,omitempty"`
}

AnomalyEngineSpec defines the desired state of AnomalyEngine

func (*AnomalyEngineSpec) DeepCopy

func (in *AnomalyEngineSpec) DeepCopy() *AnomalyEngineSpec

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

func (*AnomalyEngineSpec) DeepCopyInto

func (in *AnomalyEngineSpec) DeepCopyInto(out *AnomalyEngineSpec)

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

type AnomalyEngineStatus

type AnomalyEngineStatus struct {
}

AnomalyEngineStatus defines the observed state of AnomalyEngine

func (*AnomalyEngineStatus) DeepCopy

func (in *AnomalyEngineStatus) DeepCopy() *AnomalyEngineStatus

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

func (*AnomalyEngineStatus) DeepCopyInto

func (in *AnomalyEngineStatus) DeepCopyInto(out *AnomalyEngineStatus)

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

type CronJobConfig

type CronJobConfig struct {
	// Schedule for the cronjob
	Schedule string `json:"schedule,omitempty"`
	// Name of the cronjob
	Name string `json:"name,omitempty"`
	// Comma-separated keys from anomalyqueryconfiguration. If not defined, the system will go through all the defined configurations. For example, if there are five configurations defined but we only want to run two for the time being, then those specific keys need to be defined here.
	AnomalyQueries string `json:"anomalyqueries,omitempty"`
	// Pod log level - DEBUG/INFO/ERROR etc
	LogLevel string         `json:"loglevel,omitempty"`
	Resource ResourceConfig `json:"resource,omitempty"`
}

CronJobConfig defines configuration required to setup cronjob

func (*CronJobConfig) DeepCopy

func (in *CronJobConfig) DeepCopy() *CronJobConfig

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

func (*CronJobConfig) DeepCopyInto

func (in *CronJobConfig) DeepCopyInto(out *CronJobConfig)

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

type MetricData

type MetricData struct {
	Timestamp         int64   `json:"timestamp,omitempty"`
	LatestValue       float64 `json:"latestvalue,omitempty"`
	PercentageChange  float64 `json:"percentagechange,omitempty"`
	PrevDataMeanValue float64 `json:"prevdatameanvalue,omitempty"`
	GroupedData       string  `json:"groupeddata,omitempty"`
	DataPoints        string  `json:"datapoints,omitempty"`
}

MetricData defined property related to metric

func (*MetricData) DeepCopy

func (in *MetricData) DeepCopy() *MetricData

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

func (*MetricData) DeepCopyInto

func (in *MetricData) DeepCopyInto(out *MetricData)

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

type ResourceConfig

type ResourceConfig struct {
	CPURequest    string `json:"cpurequest,omitempty"`
	CPULimit      string `json:"cpulimit,omitempty"`
	MemoryRequest string `json:"memoryrequest,omitempty"`
	MemoryLimit   string `json:"memorylimit,omitempty"`
}

ResourceConfig defines cpu/memory resource properties required for AnomalyEngine pod

func (*ResourceConfig) DeepCopy

func (in *ResourceConfig) DeepCopy() *ResourceConfig

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

func (*ResourceConfig) DeepCopyInto

func (in *ResourceConfig) DeepCopyInto(out *ResourceConfig)

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

type ServiceAccountRoleBinding

type ServiceAccountRoleBinding struct {
	// Name of the Service Account
	Name string `json:"name,omitempty"`
	//  Name of the Cluster Role which have view/read access to mornitoring/thanos-api
	ClusterRoleName string `json:"clusterrolename,omitempty"`
}

ServiceAccountRoleBinding defines Service account role binding properties to support AnomalyEngine

func (*ServiceAccountRoleBinding) DeepCopy

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

func (*ServiceAccountRoleBinding) DeepCopyInto

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