v1alpha1

package
v0.0.0-...-cf9738e Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the kibana-alerts v1alpha1 API group +kubebuilder:object:generate=true +groupName=kibana-alerts.rshbdev.ru

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "kibana-alerts.rshbdev.ru", 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 ConditionScript

type ConditionScript struct {
	Source string `json:"source"`
	//+kubebuilder:validation:Enum=painless
	Lang string `json:"lang"`
}

func (*ConditionScript) DeepCopy

func (in *ConditionScript) DeepCopy() *ConditionScript

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

func (*ConditionScript) DeepCopyInto

func (in *ConditionScript) DeepCopyInto(out *ConditionScript)

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

type InputSearch

type InputSearch struct {
	Indices []string        `json:"indices"`
	Query   json.RawMessage `json:"query"`
}

func (*InputSearch) DeepCopy

func (in *InputSearch) DeepCopy() *InputSearch

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

func (*InputSearch) DeepCopyInto

func (in *InputSearch) DeepCopyInto(out *InputSearch)

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

type KibanaAlerts

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

	Spec   KibanaAlertsSpec   `json:"spec,omitempty"`
	Status KibanaAlertsStatus `json:"status,omitempty"`
}

KibanaAlerts is the Schema for the kibanaalerts API

func (*KibanaAlerts) DeepCopy

func (in *KibanaAlerts) DeepCopy() *KibanaAlerts

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

func (*KibanaAlerts) DeepCopyInto

func (in *KibanaAlerts) DeepCopyInto(out *KibanaAlerts)

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

func (*KibanaAlerts) DeepCopyObject

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

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

type KibanaAlertsList

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

KibanaAlertsList contains a list of KibanaAlerts

func (*KibanaAlertsList) DeepCopy

func (in *KibanaAlertsList) DeepCopy() *KibanaAlertsList

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

func (*KibanaAlertsList) DeepCopyInto

func (in *KibanaAlertsList) DeepCopyInto(out *KibanaAlertsList)

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

func (*KibanaAlertsList) DeepCopyObject

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

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

type KibanaAlertsSpec

type KibanaAlertsSpec struct {
	Name string `json:"name"`
	//+kubebuilder:default:monitor
	Type     string           `json:"type"`
	Enabled  bool             `json:"enabled"`
	Schedule MonitorSchedule  `json:"schedule"`
	Inputs   []MonitorInput   `json:"inputs"`
	Triggers []MonitorTrigger `json:"triggers"`
}

KibanaAlertsSpec defines the desired state of KibanaAlerts

func (*KibanaAlertsSpec) DeepCopy

func (in *KibanaAlertsSpec) DeepCopy() *KibanaAlertsSpec

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

func (*KibanaAlertsSpec) DeepCopyInto

func (in *KibanaAlertsSpec) DeepCopyInto(out *KibanaAlertsSpec)

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

type KibanaAlertsStatus

type KibanaAlertsStatus struct {
	Monitor StatusMonitor `json:"monitor"`
}

KibanaAlertsStatus defines the observed state of KibanaAlerts

func (*KibanaAlertsStatus) DeepCopy

func (in *KibanaAlertsStatus) DeepCopy() *KibanaAlertsStatus

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

func (*KibanaAlertsStatus) DeepCopyInto

func (in *KibanaAlertsStatus) DeepCopyInto(out *KibanaAlertsStatus)

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

type MonitorInput

type MonitorInput struct {
	Search InputSearch `json:"search"`
}

func (*MonitorInput) DeepCopy

func (in *MonitorInput) DeepCopy() *MonitorInput

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

func (*MonitorInput) DeepCopyInto

func (in *MonitorInput) DeepCopyInto(out *MonitorInput)

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

type MonitorSchedule

type MonitorSchedule struct {
	Period SchedulePeroid `json:"period"`
}

func (*MonitorSchedule) DeepCopy

func (in *MonitorSchedule) DeepCopy() *MonitorSchedule

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

func (*MonitorSchedule) DeepCopyInto

func (in *MonitorSchedule) DeepCopyInto(out *MonitorSchedule)

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

type MonitorTrigger

type MonitorTrigger struct {
	Name      string           `json:"name"`
	Severity  string           `json:"severity"`
	Condition TriggerCondition `json:"condition"`
	Actions   []TriggerAction  `json:"actions"`
}

func (*MonitorTrigger) DeepCopy

func (in *MonitorTrigger) DeepCopy() *MonitorTrigger

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

func (*MonitorTrigger) DeepCopyInto

func (in *MonitorTrigger) DeepCopyInto(out *MonitorTrigger)

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

type SchedulePeroid

type SchedulePeroid struct {
	Interval int `json:"interval"`
	//+kubebuilder:validation:Enum=HOURS;MINUTES;DAYS
	Unit string `json:"unit"`
}

func (*SchedulePeroid) DeepCopy

func (in *SchedulePeroid) DeepCopy() *SchedulePeroid

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

func (*SchedulePeroid) DeepCopyInto

func (in *SchedulePeroid) DeepCopyInto(out *SchedulePeroid)

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

type StatusMonitor

type StatusMonitor struct {
	Name   string `json:"name"`
	ID     string `json:"id"`
	Status string `json:"state"`
	//+optional
	Error string `json:"error,omitempty"`
}

func (*StatusMonitor) DeepCopy

func (in *StatusMonitor) DeepCopy() *StatusMonitor

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

func (*StatusMonitor) DeepCopyInto

func (in *StatusMonitor) DeepCopyInto(out *StatusMonitor)

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

type TextTemplate

type TextTemplate struct {
	Source string `json:"source"`
	//+kubebuilder:validation:Enum=mustache;painless
	Lang string `json:"lang"`
}

func (*TextTemplate) DeepCopy

func (in *TextTemplate) DeepCopy() *TextTemplate

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

func (*TextTemplate) DeepCopyInto

func (in *TextTemplate) DeepCopyInto(out *TextTemplate)

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

type TriggerAction

type TriggerAction struct {
	Name string `json:"name"`
	//+optional
	Destination     string       `json:"destination_id"`
	SubjectTemplate TextTemplate `json:"subject_template"`
	MessageTemplate TextTemplate `json:"message_template"`
}

func (*TriggerAction) DeepCopy

func (in *TriggerAction) DeepCopy() *TriggerAction

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

func (*TriggerAction) DeepCopyInto

func (in *TriggerAction) DeepCopyInto(out *TriggerAction)

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

type TriggerCondition

type TriggerCondition struct {
	Script ConditionScript `json:"script"`
}

func (*TriggerCondition) DeepCopy

func (in *TriggerCondition) DeepCopy() *TriggerCondition

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

func (*TriggerCondition) DeepCopyInto

func (in *TriggerCondition) DeepCopyInto(out *TriggerCondition)

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

type TriggerThrottle

type TriggerThrottle struct {
	//+kubebuilder:default:=1
	Value int `json:"value"`
	//+kubebuilder:default:=MINUTES
	//+kubebuilder:validation:Enum=HOURS;MINUTES;DAYS
	Unit string `json:"unit"`
}

func (*TriggerThrottle) DeepCopy

func (in *TriggerThrottle) DeepCopy() *TriggerThrottle

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

func (*TriggerThrottle) DeepCopyInto

func (in *TriggerThrottle) DeepCopyInto(out *TriggerThrottle)

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