v1

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: AGPL-3.0 Imports: 7 Imported by: 1

Documentation

Overview

Package v1 contains API Schema definitions for the mdai v1 API group. +kubebuilder:object:generate=true +groupName=hub.mydecisive.ai

Index

Constants

View Source
const (
	AuditLogstream     MDAILogStream = "audit"
	CollectorLogstream MDAILogStream = "collector"
	HubLogstream       MDAILogStream = "hub"
	OtherLogstream     MDAILogStream = "other"

	DebugSeverityLevel SeverityLevel = "debug"
	InfoSeverityLevel  SeverityLevel = "info"
	WarnSeverityLevel  SeverityLevel = "warn"
	ErrorSeverityLevel SeverityLevel = "error"
)
View Source
const (
	VariableSourceTypeBuiltInValkey VariableStorageType = "mdai-valkey"

	// VariableTypeManual Variable type that is managed externally by the user, not attached to any OODA loop
	VariableTypeManual VariableType = "manual"
	// VariableTypeComputed Variable type that is computed internally by MDAI, attached to an OODA loop
	VariableTypeComputed VariableType = "computed"
	// VariableTypeMeta Variable type that is derived from manual and computed variables
	VariableTypeMeta VariableType = "meta"

	// computed variable types
	VariableDataTypeInt     VariableDataType = "int"     // internally stored in string
	VariableDataTypeFloat   VariableDataType = "float"   // internally stored in string, disabled for now
	VariableDataTypeBoolean VariableDataType = "boolean" // 0 or 1 as string in valkey
	// VariableDataTypeString the string variable, could be used to store yaml or any other string
	VariableDataTypeString VariableDataType = "string"
	VariableDataTypeSet    VariableDataType = "set" // valkey set
	// VariableDataTypeMap implemented as hash map. Order is not guaranteed. Keys and values are strings.
	VariableDataTypeMap VariableDataType = "map" // valkey hashes

	// MetaVariableDataTypeHashSet LookupTable takes an input/key variable and a lookup variable. Returns a string.
	MetaVariableDataTypeHashSet VariableDataType = "metaHashSet"
	// MetaVariableDataTypePriorityList takes a list of variable refs, and will evaluate to the first one that is not empty. Returns an array of strings.
	MetaVariableDataTypePriorityList VariableDataType = "metaPriorityList"

	TransformerTypeJoin TransformerType = "join"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "hub.mydecisive.ai", 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 AWSConfig

type AWSConfig struct {
	AWSAccessKeySecret *string `json:"awsAccessKeySecret,omitempty" yaml:"awsAccessKeySecret,omitempty"`
}

func (*AWSConfig) DeepCopy

func (in *AWSConfig) DeepCopy() *AWSConfig

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

func (*AWSConfig) DeepCopyInto

func (in *AWSConfig) DeepCopyInto(out *AWSConfig)

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

type AuditLogstreamConfig added in v0.1.21

type AuditLogstreamConfig struct {
	// +optional
	Disabled bool `json:"disabled" yaml:"disabled"`
}

func (*AuditLogstreamConfig) DeepCopy added in v0.1.21

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

func (*AuditLogstreamConfig) DeepCopyInto added in v0.1.21

func (in *AuditLogstreamConfig) DeepCopyInto(out *AuditLogstreamConfig)

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

type Automation

type Automation struct {
	// + required
	EventRef string `json:"eventRef"`
	// + required
	Workflow []AutomationStep `json:"workflow"` // we are using a slice here to keep the order
}

func (*Automation) DeepCopy

func (in *Automation) DeepCopy() *Automation

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

func (*Automation) DeepCopyInto

func (in *Automation) DeepCopyInto(out *Automation)

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

type AutomationStep

type AutomationStep struct {
	// +required
	HandlerRef string `json:"handlerRef"`
	// +optional
	Arguments map[string]string `json:"args,omitempty"`
}

func (*AutomationStep) DeepCopy

func (in *AutomationStep) DeepCopy() *AutomationStep

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

func (*AutomationStep) DeepCopyInto

func (in *AutomationStep) DeepCopyInto(out *AutomationStep)

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

type Config

type Config struct {
	// EvaluationInterval Specify the interval at which all evaluations within this hub are assessed in the Prometheus infrastructure.
	// +kubebuilder:validation:Optional
	EvaluationInterval *prometheusv1.Duration `json:"evaluation_interval,omitempty" yaml:"evaluation_interval,omitempty"`
}

func (*Config) DeepCopy

func (in *Config) DeepCopy() *Config

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

func (*Config) DeepCopyInto

func (in *Config) DeepCopyInto(out *Config)

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

type JoinTransformer

type JoinTransformer struct {
	// Delimiter The delimiter inserted between each item in the collection during the Join
	// +kubebuilder:validation:Required
	Delimiter string `json:"delimiter" yaml:"delimiter"`
}

func (*JoinTransformer) DeepCopy

func (in *JoinTransformer) DeepCopy() *JoinTransformer

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

func (*JoinTransformer) DeepCopyInto

func (in *JoinTransformer) DeepCopyInto(out *JoinTransformer)

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

type LogsConfig

type LogsConfig struct {
	// +optional
	S3 *S3LogsConfig `json:"s3,omitempty" yaml:"s3,omitempty"`
	// +optional
	Otlp *OtlpLogsConfig `json:"otlp,omitempty" yaml:"otlp,omitempty"`
}

func (*LogsConfig) DeepCopy

func (in *LogsConfig) DeepCopy() *LogsConfig

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

func (*LogsConfig) DeepCopyInto

func (in *LogsConfig) DeepCopyInto(out *LogsConfig)

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

type LogstreamConfig added in v0.1.21

type LogstreamConfig struct {
	// +optional
	MinSeverity *SeverityLevel `json:"minSeverity,omitempty" yaml:"minSeverity,omitempty"`
	// +optional
	Disabled bool `json:"disabled" yaml:"disabled"`
}

func (*LogstreamConfig) DeepCopy added in v0.1.21

func (in *LogstreamConfig) DeepCopy() *LogstreamConfig

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

func (*LogstreamConfig) DeepCopyInto added in v0.1.21

func (in *LogstreamConfig) DeepCopyInto(out *LogstreamConfig)

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

type MDAILogStream added in v0.1.21

type MDAILogStream string

type MdaiCollector

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

	Spec   MdaiCollectorSpec   `json:"spec,omitempty"`
	Status MdaiCollectorStatus `json:"status,omitempty"`
}

MdaiCollector is the Schema for the mdaicollectors API.

func (*MdaiCollector) DeepCopy

func (in *MdaiCollector) DeepCopy() *MdaiCollector

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

func (*MdaiCollector) DeepCopyInto

func (in *MdaiCollector) DeepCopyInto(out *MdaiCollector)

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

func (*MdaiCollector) DeepCopyObject

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

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

type MdaiCollectorList

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

MdaiCollectorList contains a list of MdaiCollector.

func (*MdaiCollectorList) DeepCopy

func (in *MdaiCollectorList) DeepCopy() *MdaiCollectorList

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

func (*MdaiCollectorList) DeepCopyInto

func (in *MdaiCollectorList) DeepCopyInto(out *MdaiCollectorList)

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

func (*MdaiCollectorList) DeepCopyObject

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

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

type MdaiCollectorSpec

type MdaiCollectorSpec struct {
	// +optional
	AWSConfig *AWSConfig `json:"aws,omitempty" yaml:"aws,omitempty"`
	// +optional
	Logs *LogsConfig `json:"logs,omitempty" yaml:"logs,omitempty"`
}

MdaiCollectorSpec defines the desired state of MdaiCollector.

func (*MdaiCollectorSpec) DeepCopy

func (in *MdaiCollectorSpec) DeepCopy() *MdaiCollectorSpec

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

func (*MdaiCollectorSpec) DeepCopyInto

func (in *MdaiCollectorSpec) DeepCopyInto(out *MdaiCollectorSpec)

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

type MdaiCollectorStatus

type MdaiCollectorStatus struct {
	// Time when last MDAI Collector Configuration change was detected
	// Right now it's updated on each reconcile, we have to skip when reconciliation detects no changes
	// +optional
	LastUpdatedTime *metav1.Time `json:"lastUpdatedTime,omitempty"`

	// Conditions store the status conditions of the MDAI Collector instances
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
}

MdaiCollectorStatus defines the observed state of MdaiCollector.

func (*MdaiCollectorStatus) DeepCopy

func (in *MdaiCollectorStatus) DeepCopy() *MdaiCollectorStatus

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

func (*MdaiCollectorStatus) DeepCopyInto

func (in *MdaiCollectorStatus) DeepCopyInto(out *MdaiCollectorStatus)

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

type MdaiHub

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

	Spec   MdaiHubSpec   `json:"spec,omitempty"`
	Status MdaiHubStatus `json:"status,omitempty"`
}

MdaiHub is the Schema for the mdaihubs API.

func (*MdaiHub) DeepCopy

func (in *MdaiHub) DeepCopy() *MdaiHub

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

func (*MdaiHub) DeepCopyInto

func (in *MdaiHub) DeepCopyInto(out *MdaiHub)

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

func (*MdaiHub) DeepCopyObject

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

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

type MdaiHubList

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

MdaiHubList contains a list of MdaiHub.

func (*MdaiHubList) DeepCopy

func (in *MdaiHubList) DeepCopy() *MdaiHubList

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

func (*MdaiHubList) DeepCopyInto

func (in *MdaiHubList) DeepCopyInto(out *MdaiHubList)

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

func (*MdaiHubList) DeepCopyObject

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

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

type MdaiHubSpec

type MdaiHubSpec struct {
	// +optional
	Config *Config `json:"config,omitempty" yaml:"config,omitempty"`
	// +optional
	Variables []Variable `json:"variables,omitempty"`
	// +optional
	PrometheusAlert []PrometheusAlert `json:"prometheusAlert,omitempty"` // evaluation configuration (alerting rules)
	// +optional
	Automations []Automation `json:"automations,omitempty"`
}

MdaiHubSpec defines the desired state of MdaiHub.

func (*MdaiHubSpec) DeepCopy

func (in *MdaiHubSpec) DeepCopy() *MdaiHubSpec

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

func (*MdaiHubSpec) DeepCopyInto

func (in *MdaiHubSpec) DeepCopyInto(out *MdaiHubSpec)

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

type MdaiHubStatus

type MdaiHubStatus struct {
	// Status of the Cluster defined by its modules and dependencies statuses
	HubStatus string `json:"hubStatus"`

	// Time when last Cluster Configuration change was detected
	// Right now it's updated on each reconcile, we have to skip when reconciliation detects no changes
	// +optional
	LastUpdatedTime *metav1.Time `json:"lastUpdatedTime,omitempty"`

	// Conditions store the status conditions of the Cluster instances
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
}

MdaiHubStatus defines the observed state of MdaiHub.

func (*MdaiHubStatus) DeepCopy

func (in *MdaiHubStatus) DeepCopy() *MdaiHubStatus

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

func (*MdaiHubStatus) DeepCopyInto

func (in *MdaiHubStatus) DeepCopyInto(out *MdaiHubStatus)

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

type MdaiObserver added in v0.1.21

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

	Spec   MdaiObserverSpec   `json:"spec,omitempty"`
	Status MdaiObserverStatus `json:"status,omitempty"`
}

MdaiObserver is the Schema for the mdaiobservers API.

func (*MdaiObserver) DeepCopy added in v0.1.21

func (in *MdaiObserver) DeepCopy() *MdaiObserver

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

func (*MdaiObserver) DeepCopyInto added in v0.1.21

func (in *MdaiObserver) DeepCopyInto(out *MdaiObserver)

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

func (*MdaiObserver) DeepCopyObject added in v0.1.21

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

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

type MdaiObserverList added in v0.1.21

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

MdaiObserverList contains a list of MdaiObserver.

func (*MdaiObserverList) DeepCopy added in v0.1.21

func (in *MdaiObserverList) DeepCopy() *MdaiObserverList

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

func (*MdaiObserverList) DeepCopyInto added in v0.1.21

func (in *MdaiObserverList) DeepCopyInto(out *MdaiObserverList)

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

func (*MdaiObserverList) DeepCopyObject added in v0.1.21

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

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

type MdaiObserverSpec added in v0.1.21

type MdaiObserverSpec struct {
	// +optional
	Observers []Observer `json:"observers,omitempty" yaml:"observers,omitempty"`
	// +optional
	ObserverResource ObserverResource `json:"observerResource,omitempty" yaml:"observerResource,omitempty"`
}

MdaiObserverSpec defines the desired state of MdaiObserver.

func (*MdaiObserverSpec) DeepCopy added in v0.1.21

func (in *MdaiObserverSpec) DeepCopy() *MdaiObserverSpec

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

func (*MdaiObserverSpec) DeepCopyInto added in v0.1.21

func (in *MdaiObserverSpec) DeepCopyInto(out *MdaiObserverSpec)

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

type MdaiObserverStatus added in v0.1.21

type MdaiObserverStatus struct {
	// Status of the Cluster defined by its modules and dependencies statuses
	ObserverStatus string `json:"observerStatus"`

	// +optional
	LastUpdatedTime *metav1.Time `json:"lastUpdatedTime,omitempty"`

	// Conditions store the status conditions of the Cluster instances
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
}

MdaiObserverStatus defines the observed state of MdaiObserver.

func (*MdaiObserverStatus) DeepCopy added in v0.1.21

func (in *MdaiObserverStatus) DeepCopy() *MdaiObserverStatus

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

func (*MdaiObserverStatus) DeepCopyInto added in v0.1.21

func (in *MdaiObserverStatus) DeepCopyInto(out *MdaiObserverStatus)

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

type Observer

type Observer struct {
	// +kubebuilder:validation:Required
	Name string `json:"name" yaml:"name"`
	// +kubebuilder:validation:Required
	LabelResourceAttributes []string `json:"labelResourceAttributes" yaml:"labelResourceAttributes"`
	// +kubebuilder:validation:Optional
	CountMetricName *string `json:"countMetricName,omitempty" yaml:"countMetricName,omitempty"`
	// +kubebuilder:validation:Optional
	BytesMetricName *string `json:"bytesMetricName,omitempty" yaml:"bytesMetricName,omitempty"`
	// +kubebuilder:validation:Optional
	Filter *ObserverFilter `json:"filter,omitempty" yaml:"filter,omitempty"`
}

func (*Observer) DeepCopy

func (in *Observer) DeepCopy() *Observer

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

func (*Observer) DeepCopyInto

func (in *Observer) DeepCopyInto(out *Observer)

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

type ObserverFilter

type ObserverFilter struct {
	// +kubebuilder:validation:Optional
	ErrorMode *string `json:"error_mode" yaml:"error_mode"`
	// +kubebuilder:validation:Optional
	Logs *ObserverLogsFilter `json:"logs" yaml:"logs"`
}

func (*ObserverFilter) DeepCopy

func (in *ObserverFilter) DeepCopy() *ObserverFilter

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

func (*ObserverFilter) DeepCopyInto

func (in *ObserverFilter) DeepCopyInto(out *ObserverFilter)

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

type ObserverLogsFilter

type ObserverLogsFilter struct {
	// +kubebuilder:validation:Required
	LogRecord []string `json:"log_record" yaml:"log_record"`
}

func (*ObserverLogsFilter) DeepCopy

func (in *ObserverLogsFilter) DeepCopy() *ObserverLogsFilter

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

func (*ObserverLogsFilter) DeepCopyInto

func (in *ObserverLogsFilter) DeepCopyInto(out *ObserverLogsFilter)

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

type ObserverResource

type ObserverResource struct {
	// +kubebuilder:validation:Optional
	Image *string `json:"image,omitempty" yaml:"image,omitempty"`
	// +kubebuilder:validation:Optional
	Replicas *int32 `json:"replicas,omitempty" yaml:"replicas,omitempty"`
	// +kubebuilder:validation:Optional
	Resources *v1.ResourceRequirements `json:"resources,omitempty" yaml:"resources,omitempty"`
	// +kubebuilder:validation:Optional
	// +kubebuilder:validation:Minimum=1
	GrpcReceiverMaxMsgSize *uint64 `json:"grpcReceiverMaxMsgSize,omitempty" yaml:"grpcReceiverMaxMsgSize,omitempty"`
	// +kubebuilder:validation:Optional
	OwnLogsOtlpEndpoint *string `json:"ownLogsOtlpEndpoint,omitempty" yaml:"ownLogsOtlpEndpoint,omitempty"`
}

func (*ObserverResource) DeepCopy

func (in *ObserverResource) DeepCopy() *ObserverResource

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

func (*ObserverResource) DeepCopyInto

func (in *ObserverResource) DeepCopyInto(out *ObserverResource)

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

type ObserverResourceType

type ObserverResourceType string

type OtlpLogsConfig added in v0.1.21

type OtlpLogsConfig struct {
	// +optional
	AuditLogs *AuditLogstreamConfig `json:"auditLogs,omitempty" yaml:"auditLogs,omitempty"`
	// +optional
	CollectorLogs *LogstreamConfig `json:"collectorLogs,omitempty" yaml:"collectorLogs,omitempty"`
	// +optional
	HubLogs *LogstreamConfig `json:"hubLogs,omitempty" yaml:"hubLogs,omitempty"`
	// +optional
	OtherLogs *LogstreamConfig `json:"otherLogs,omitempty" yaml:"otherLogs,omitempty"`
	Endpoint  string           `json:"endpoint" yaml:"endpoint"`
}

func (*OtlpLogsConfig) DeepCopy added in v0.1.21

func (in *OtlpLogsConfig) DeepCopy() *OtlpLogsConfig

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

func (*OtlpLogsConfig) DeepCopyInto added in v0.1.21

func (in *OtlpLogsConfig) DeepCopyInto(out *OtlpLogsConfig)

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

type PrometheusAlert

type PrometheusAlert struct {
	// Name How this evaluation will be referred to elsewhere in the config. Also, the name applied to the Prometheus Alert
	// +kubebuilder:validation:Pattern:="^[a-zA-Z_][a-zA-Z0-9_]*$"
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Required
	Name string `json:"name" yaml:"name"`
	// +kubebuilder:validation:Required
	Expr intstr.IntOrString `json:"expr" yaml:"expr"`
	// For Alerts are considered firing once they have been returned for this long.
	// +kubebuilder:validation:Optional
	For *prometheusv1.Duration `json:"for,omitempty" yaml:"for,omitempty"`
	// KeepFiringFor defines how long an alert will continue firing after the condition that triggered it has cleared.
	// +kubebuilder:validation:Optional
	KeepFiringFor *prometheusv1.NonEmptyDuration `json:"keep_firing_for,omitempty" yaml:"keep_firing_for,omitempty"`
	// +kubebuilder:validation:Pattern:="^(warning|critical)$"
	// +kubebuilder:validation:Required
	Severity string `json:"severity" yaml:"severity"`
}

func (*PrometheusAlert) DeepCopy

func (in *PrometheusAlert) DeepCopy() *PrometheusAlert

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

func (*PrometheusAlert) DeepCopyInto

func (in *PrometheusAlert) DeepCopyInto(out *PrometheusAlert)

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

type S3LogsConfig

type S3LogsConfig struct {
	// +optional
	AuditLogs *AuditLogstreamConfig `json:"auditLogs,omitempty" yaml:"auditLogs,omitempty"`
	// +optional
	CollectorLogs *LogstreamConfig `json:"collectorLogs,omitempty" yaml:"collectorLogs,omitempty"`
	// +optional
	HubLogs *LogstreamConfig `json:"hubLogs,omitempty" yaml:"hubLogs,omitempty"`
	// +optional
	OtherLogs *LogstreamConfig `json:"otherLogs,omitempty" yaml:"otherLogs,omitempty"`
	S3Region  string           `json:"s3Region" yaml:"s3Region"`
	S3Bucket  string           `json:"s3Bucket" yaml:"s3Bucket"`
}

func (*S3LogsConfig) DeepCopy

func (in *S3LogsConfig) DeepCopy() *S3LogsConfig

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

func (*S3LogsConfig) DeepCopyInto

func (in *S3LogsConfig) DeepCopyInto(out *S3LogsConfig)

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

type Serializer

type Serializer struct {
	// Name The environment variable name to be used to access the variable's value.
	// +kubeuilder:validation:Pattern:="^[a-zA-Z_][a-zA-Z0-9_]*$"
	// +kubebuilder:validation:MinLength=1
	// + required
	Name string `json:"name" yaml:"name"`
	// Transformers The transformation applied to the value of the variable in the order provided before it is assigned
	// as an environment variable.
	// +optional
	Transformers []VariableTransformer `json:"transformers,omitempty" yaml:"transformers,omitempty"`
}

func (*Serializer) DeepCopy

func (in *Serializer) DeepCopy() *Serializer

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

func (*Serializer) DeepCopyInto

func (in *Serializer) DeepCopyInto(out *Serializer)

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

type SeverityLevel added in v0.1.21

type SeverityLevel string

type TransformerType

type TransformerType string

type Variable

type Variable struct {
	// Key The key for which this variable's managed value is assigned. Will also be used as the environment variable name for variables of type "string"
	// +kubebuilder:validation:Pattern:="^[a-zA-Z_][a-zA-Z0-9_]*$"
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:MaxLength=63
	// +kubebuilder:validation:Required
	Key string `json:"key" yaml:"key"`
	// Type for the variable, defaults to "computed" if not provided
	// +kubebuilder:validation:Required
	// +kubebuilder:default="computed"
	// +kubebuilder:validation:Enum:=manual;computed;meta
	Type VariableType `json:"type" yaml:"type"`
	// DataType Data type for the managed variable value
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum:=string;int;set;map;boolean;metaHashSet;metaPriorityList
	DataType VariableDataType `json:"dataType" yaml:"dataType"`
	// StorageType defaults to "mdai-valkey" if not provided
	// +kubebuilder:default="mdai-valkey"
	// +kubebuilder:validation:Enum:=mdai-valkey
	StorageType VariableStorageType `json:"storageType" yaml:"storageType"`
	// VariableRefs name references to other managed variables to be included in meta calculation. Listed variables should be of the same data type.
	// +kubebuilder:validation:Optional
	VariableRefs []string `json:"variableRefs,omitempty" yaml:"variableRefs,omitempty"`
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinItems=1
	SerializeAs []Serializer `json:"serializeAs" yaml:"serializeAs"`
}

Variable defines mdai variable +kubebuilder:validation:XValidation:rule="self.type == 'meta' ? self.dataType in ['metaHashSet', 'metaPriorityList'] : self.dataType in ['string', 'int', 'boolean', 'set', 'map']",messageExpression="\"variable '\" + self.key + \"': dataType is not allowed for type specified\"",reason="FieldValueInvalid"

func (*Variable) DeepCopy

func (in *Variable) DeepCopy() *Variable

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

func (*Variable) DeepCopyInto

func (in *Variable) DeepCopyInto(out *Variable)

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

type VariableDataType

type VariableDataType string

type VariableSourceType

type VariableSourceType string

type VariableStorageType

type VariableStorageType string

type VariableTransform

type VariableTransform string

type VariableTransformer

type VariableTransformer struct {
	Type TransformerType `json:"type" yaml:"type"`
	// Join For use with "set" or "array" type variables, joins the items of the collection into a string.
	// +optional
	Join *JoinTransformer `json:"join,omitempty" yaml:"join,omitempty"`
}

func (*VariableTransformer) DeepCopy

func (in *VariableTransformer) DeepCopy() *VariableTransformer

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

func (*VariableTransformer) DeepCopyInto

func (in *VariableTransformer) DeepCopyInto(out *VariableTransformer)

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

type VariableType

type VariableType string

type VariableUpdateOperation

type VariableUpdateOperation string

Jump to

Keyboard shortcuts

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