v1alpha1

package
v0.0.0-...-112b7e3 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	NotifyOnTriggeredOnly        = "TriggeredOnly"
	NotifyOnTriggeredAndResolved = "TriggeredAndResolved"
)
View Source
const (
	FilterOperatorEquals    = "Equals"
	FilterOperatorContains  = "Contains"
	FilterOperatorStartWith = "StartWith"
	FilterOperatorEndWith   = "EndWith"
)
View Source
const (
	FieldFilterTypeApplication = "Application"
	FieldFilterTypeSubsystem   = "Subsystem"
	FieldFilterTypeService     = "Service"
)

Variables

View Source
var (
	AlertSchemaSeverityToProtoSeverity = map[AlertSeverity]alerts.AlertSeverity{
		AlertSeverityInfo:     alerts.AlertSeverity_ALERT_SEVERITY_INFO_OR_UNSPECIFIED,
		AlertSeverityWarning:  alerts.AlertSeverity_ALERT_SEVERITY_WARNING,
		AlertSeverityCritical: alerts.AlertSeverity_ALERT_SEVERITY_CRITICAL,
		AlertSeverityError:    alerts.AlertSeverity_ALERT_SEVERITY_ERROR,
	}
	AlertSchemaDayToProtoDay = map[Day]alerts.DayOfWeek{
		Sunday:    alerts.DayOfWeek_DAY_OF_WEEK_SUNDAY,
		Monday:    alerts.DayOfWeek_DAY_OF_WEEK_MONDAY_OR_UNSPECIFIED,
		Tuesday:   alerts.DayOfWeek_DAY_OF_WEEK_TUESDAY,
		Wednesday: alerts.DayOfWeek_DAY_OF_WEEK_WEDNESDAY,
		Thursday:  alerts.DayOfWeek_DAY_OF_WEEK_THURSDAY,
		Friday:    alerts.DayOfWeek_DAY_OF_WEEK_FRIDAY,
		Saturday:  alerts.DayOfWeek_DAY_OF_WEEK_SATURDAY,
	}
	AlertSchemaTimeWindowToProtoTimeWindow = map[string]alerts.Timeframe{
		"Minute":          alerts.Timeframe_TIMEFRAME_1_MIN,
		"FiveMinutes":     alerts.Timeframe_TIMEFRAME_5_MIN_OR_UNSPECIFIED,
		"TenMinutes":      alerts.Timeframe_TIMEFRAME_10_MIN,
		"FifteenMinutes":  alerts.Timeframe_TIMEFRAME_15_MIN,
		"TwentyMinutes":   alerts.Timeframe_TIMEFRAME_20_MIN,
		"ThirtyMinutes":   alerts.Timeframe_TIMEFRAME_30_MIN,
		"Hour":            alerts.Timeframe_TIMEFRAME_1_H,
		"TwoHours":        alerts.Timeframe_TIMEFRAME_2_H,
		"FourHours":       alerts.Timeframe_TIMEFRAME_4_H,
		"SixHours":        alerts.Timeframe_TIMEFRAME_6_H,
		"TwelveHours":     alerts.Timeframe_TIMEFRAME_12_H,
		"TwentyFourHours": alerts.Timeframe_TIMEFRAME_24_H,
		"ThirtySixHours":  alerts.Timeframe_TIMEFRAME_36_H,
	}
	AlertSchemaAutoRetireRatioToProtoAutoRetireRatio = map[AutoRetireRatio]alerts.CleanupDeadmanDuration{
		AutoRetireRatioNever:           alerts.CleanupDeadmanDuration_CLEANUP_DEADMAN_DURATION_NEVER_OR_UNSPECIFIED,
		AutoRetireRatioFiveMinutes:     alerts.CleanupDeadmanDuration_CLEANUP_DEADMAN_DURATION_5MIN,
		AutoRetireRatioTenMinutes:      alerts.CleanupDeadmanDuration_CLEANUP_DEADMAN_DURATION_10MIN,
		AutoRetireRatioHour:            alerts.CleanupDeadmanDuration_CLEANUP_DEADMAN_DURATION_1H,
		AutoRetireRatioTwoHours:        alerts.CleanupDeadmanDuration_CLEANUP_DEADMAN_DURATION_2H,
		AutoRetireRatioSixHours:        alerts.CleanupDeadmanDuration_CLEANUP_DEADMAN_DURATION_6H,
		AutoRetireRatioTwelveHours:     alerts.CleanupDeadmanDuration_CLEANUP_DEADMAN_DURATION_12H,
		AutoRetireRatioTwentyFourHours: alerts.CleanupDeadmanDuration_CLEANUP_DEADMAN_DURATION_24H,
	}
	AlertSchemaFiltersLogSeverityToProtoFiltersLogSeverity = map[FiltersLogSeverity]alerts.AlertFilters_LogSeverity{
		FiltersLogSeverityDebug:    alerts.AlertFilters_LOG_SEVERITY_DEBUG_OR_UNSPECIFIED,
		FiltersLogSeverityVerbose:  alerts.AlertFilters_LOG_SEVERITY_VERBOSE,
		FiltersLogSeverityInfo:     alerts.AlertFilters_LOG_SEVERITY_INFO,
		FiltersLogSeverityWarning:  alerts.AlertFilters_LOG_SEVERITY_WARNING,
		FiltersLogSeverityCritical: alerts.AlertFilters_LOG_SEVERITY_CRITICAL,
		FiltersLogSeverityError:    alerts.AlertFilters_LOG_SEVERITY_ERROR,
	}
	AlertSchemaRelativeTimeFrameToProtoTimeFrameAndRelativeTimeFrame = map[RelativeTimeWindow]ProtoTimeFrameAndRelativeTimeFrame{
		RelativeTimeWindowPreviousHour:      {TimeFrame: alerts.Timeframe_TIMEFRAME_1_H, RelativeTimeFrame: alerts.RelativeTimeframe_RELATIVE_TIMEFRAME_HOUR_OR_UNSPECIFIED},
		RelativeTimeWindowSameHourYesterday: {TimeFrame: alerts.Timeframe_TIMEFRAME_1_H, RelativeTimeFrame: alerts.RelativeTimeframe_RELATIVE_TIMEFRAME_DAY},
		RelativeTimeWindowSameHourLastWeek:  {TimeFrame: alerts.Timeframe_TIMEFRAME_1_H, RelativeTimeFrame: alerts.RelativeTimeframe_RELATIVE_TIMEFRAME_WEEK},
		RelativeTimeWindowYesterday:         {TimeFrame: alerts.Timeframe_TIMEFRAME_24_H, RelativeTimeFrame: alerts.RelativeTimeframe_RELATIVE_TIMEFRAME_DAY},
		RelativeTimeWindowSameDayLastWeek:   {TimeFrame: alerts.Timeframe_TIMEFRAME_24_H, RelativeTimeFrame: alerts.RelativeTimeframe_RELATIVE_TIMEFRAME_WEEK},
		RelativeTimeWindowSameDayLastMonth:  {TimeFrame: alerts.Timeframe_TIMEFRAME_24_H, RelativeTimeFrame: alerts.RelativeTimeframe_RELATIVE_TIMEFRAME_MONTH},
	}
	AlertSchemaArithmeticOperatorToProtoArithmeticOperator = map[ArithmeticOperator]alerts.MetricAlertConditionParameters_ArithmeticOperator{
		ArithmeticOperatorAvg:        alerts.MetricAlertConditionParameters_ARITHMETIC_OPERATOR_AVG_OR_UNSPECIFIED,
		ArithmeticOperatorMin:        alerts.MetricAlertConditionParameters_ARITHMETIC_OPERATOR_MIN,
		ArithmeticOperatorMax:        alerts.MetricAlertConditionParameters_ARITHMETIC_OPERATOR_MAX,
		ArithmeticOperatorSum:        alerts.MetricAlertConditionParameters_ARITHMETIC_OPERATOR_SUM,
		ArithmeticOperatorCount:      alerts.MetricAlertConditionParameters_ARITHMETIC_OPERATOR_COUNT,
		ArithmeticOperatorPercentile: alerts.MetricAlertConditionParameters_ARITHMETIC_OPERATOR_PERCENTILE,
	}
	AlertSchemaFlowOperatorToProtoFlowOperator = map[FlowOperator]alerts.FlowOperator{
		"And": alerts.FlowOperator_AND,
		"Or":  alerts.FlowOperator_OR,
	}
	AlertSchemaNotifyOnToProtoNotifyOn = map[NotifyOn]alerts.NotifyOn{
		NotifyOnTriggeredOnly:        alerts.NotifyOn_TRIGGERED_ONLY,
		NotifyOnTriggeredAndResolved: alerts.NotifyOn_TRIGGERED_AND_RESOLVED,
	}
)
View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "coralogix.coralogix", 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
)
View Source
var (
	RulesSchemaSeverityToProtoSeverity = map[RuleSeverity]rulesgroups.SeverityConstraint_Value{
		RuleSeverityDebug:    rulesgroups.SeverityConstraint_VALUE_DEBUG_OR_UNSPECIFIED,
		RuleSeverityVerbose:  rulesgroups.SeverityConstraint_VALUE_VERBOSE,
		RuleSeverityInfo:     rulesgroups.SeverityConstraint_VALUE_INFO,
		RuleSeverityWarning:  rulesgroups.SeverityConstraint_VALUE_WARNING,
		RuleSeverityError:    rulesgroups.SeverityConstraint_VALUE_ERROR,
		RuleSeverityCritical: rulesgroups.SeverityConstraint_VALUE_CRITICAL,
	}
	RulesProtoSeverityToSchemaSeverity                         = utils.ReverseMap(RulesSchemaSeverityToProtoSeverity)
	RulesSchemaDestinationFieldToProtoSeverityDestinationField = map[DestinationField]rulesgroups.JsonExtractParameters_DestinationField{
		DestinationFieldCategory:     rulesgroups.JsonExtractParameters_DESTINATION_FIELD_CATEGORY_OR_UNSPECIFIED,
		DestinationFieldClassName:    rulesgroups.JsonExtractParameters_DESTINATION_FIELD_CLASSNAME,
		DestinationFieldMethod:       rulesgroups.JsonExtractParameters_DESTINATION_FIELD_METHODNAME,
		DestinationFieldThreadID:     rulesgroups.JsonExtractParameters_DESTINATION_FIELD_THREADID,
		DestinationFieldRuleSeverity: rulesgroups.JsonExtractParameters_DESTINATION_FIELD_SEVERITY,
	}
	RulesProtoSeverityDestinationFieldToSchemaDestinationField = utils.ReverseMap(RulesSchemaDestinationFieldToProtoSeverityDestinationField)
	RulesSchemaFormatStandardToProtoFormatStandard             = map[FieldFormatStandard]rulesgroups.ExtractTimestampParameters_FormatStandard{
		FieldFormatStandardStrftime: rulesgroups.ExtractTimestampParameters_FORMAT_STANDARD_STRFTIME_OR_UNSPECIFIED,
		FieldFormatStandardJavaSDF:  rulesgroups.ExtractTimestampParameters_FORMAT_STANDARD_JAVASDF,
		FieldFormatStandardGolang:   rulesgroups.ExtractTimestampParameters_FORMAT_STANDARD_GOLANG,
		FieldFormatStandardSecondTS: rulesgroups.ExtractTimestampParameters_FORMAT_STANDARD_SECONDSTS,
		FieldFormatStandardMilliTS:  rulesgroups.ExtractTimestampParameters_FORMAT_STANDARD_MILLITS,
		FieldFormatStandardMicroTS:  rulesgroups.ExtractTimestampParameters_FORMAT_STANDARD_MICROTS,
		FieldFormatStandardNanoTS:   rulesgroups.ExtractTimestampParameters_FORMAT_STANDARD_NANOTS,
	}
	RulesProtoFormatStandardToSchemaFormatStandard = utils.ReverseMap(RulesSchemaFormatStandardToProtoFormatStandard)
)

Functions

func DeepEqualNotificationGroups

func DeepEqualNotificationGroups(notificationGroups []NotificationGroup, actualNotificationGroups []NotificationGroup) (bool, utils.Diff)

func DeepEqualRecordingRules

func DeepEqualRecordingRules(desiredRules, actualRule []RecordingRule) (bool, utils.Diff)

func DeepEqualTimeFrames

func DeepEqualTimeFrames(timeframe, actualTimeframe *alerts.AlertActiveTimeframe) (bool, utils.Diff)

func DeepEqualTimeRanges

func DeepEqualTimeRanges(timeRange, actualTimeRange *alerts.TimeRange) (bool, utils.Diff)

func DeepEqualTimes

func DeepEqualTimes(time, actualTime *alerts.Time) (bool, utils.Diff)

func ExtractUTC

func ExtractUTC(timeZone TimeZone) int32

Types

type Alert

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

	Spec   AlertSpec   `json:"spec,omitempty"`
	Status AlertStatus `json:"status,omitempty"`
}

Alert is the Schema for the alerts API

func (*Alert) DeepCopy

func (in *Alert) DeepCopy() *Alert

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

func (*Alert) DeepCopyInto

func (in *Alert) DeepCopyInto(out *Alert)

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

func (*Alert) DeepCopyObject

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

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

type AlertList

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

AlertList contains a list of Alert

func (*AlertList) DeepCopy

func (in *AlertList) DeepCopy() *AlertList

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

func (*AlertList) DeepCopyInto

func (in *AlertList) DeepCopyInto(out *AlertList)

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

func (*AlertList) DeepCopyObject

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

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

type AlertSeverity

type AlertSeverity string

+kubebuilder:validation:Enum=Info;Warning;Critical;Error

const (
	AlertSeverityInfo     AlertSeverity = "Info"
	AlertSeverityWarning  AlertSeverity = "Warning"
	AlertSeverityCritical AlertSeverity = "Critical"
	AlertSeverityError    AlertSeverity = "Error"
)

type AlertSpec

type AlertSpec struct {
	//+kubebuilder:validation:MinLength=0
	Name string `json:"name"`

	// +optional
	Description string `json:"description,omitempty"`

	//+kubebuilder:default=true
	Active bool `json:"active,omitempty"`

	Severity AlertSeverity `json:"severity"`

	// +optional
	Labels map[string]string `json:"labels,omitempty"`

	// +optional
	ExpirationDate *ExpirationDate `json:"expirationDate,omitempty"`

	// +optional
	NotificationGroups []NotificationGroup `json:"notificationGroups,omitempty"`

	// +optional
	ShowInInsight *ShowInInsight `json:"showInInsight,omitempty"`

	// +optional
	PayloadFilters []string `json:"payloadFilters,omitempty"`

	// +optional
	Scheduling *Scheduling `json:"scheduling,omitempty"`

	AlertType AlertType `json:"alertType"`
}

AlertSpec defines the desired state of Alert

func (*AlertSpec) DeepCopy

func (in *AlertSpec) DeepCopy() *AlertSpec

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

func (*AlertSpec) DeepCopyInto

func (in *AlertSpec) DeepCopyInto(out *AlertSpec)

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

func (*AlertSpec) DeepEqual

func (in *AlertSpec) DeepEqual(actualAlert *AlertStatus) (bool, utils.Diff)

func (*AlertSpec) ExtractCreateAlertRequest

func (in *AlertSpec) ExtractCreateAlertRequest() (*alerts.CreateAlertRequest, error)

func (*AlertSpec) ExtractUpdateAlertRequest

func (in *AlertSpec) ExtractUpdateAlertRequest(id string) (*alerts.UpdateAlertByUniqueIdRequest, error)

type AlertStatus

type AlertStatus struct {
	ID *string `json:"id"`

	Name string `json:"name,omitempty"`

	Description string `json:"description,omitempty"`

	Active bool `json:"active,omitempty"`

	Severity AlertSeverity `json:"severity,omitempty"`

	Labels map[string]string `json:"labels,omitempty"`

	ExpirationDate *ExpirationDate `json:"expirationDate,omitempty"`

	ShowInInsight *ShowInInsight `json:"showInInsight,omitempty"`

	NotificationGroups []NotificationGroup `json:"notificationGroups,omitempty"`

	PayloadFilters []string `json:"payloadFilters,omitempty"`

	Scheduling *Scheduling `json:"scheduling,omitempty"`

	AlertType AlertType `json:"alertType,omitempty"`
}

AlertStatus defines the observed state of Alert

func (*AlertStatus) DeepCopy

func (in *AlertStatus) DeepCopy() *AlertStatus

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

func (*AlertStatus) DeepCopyInto

func (in *AlertStatus) DeepCopyInto(out *AlertStatus)

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

type AlertType

type AlertType struct {
	// +optional
	Standard *Standard `json:"standard,omitempty"`

	// +optional
	Ratio *Ratio `json:"ratio,omitempty"`

	// +optional
	NewValue *NewValue `json:"newValue,omitempty"`

	// +optional
	UniqueCount *UniqueCount `json:"uniqueCount,omitempty"`

	// +optional
	TimeRelative *TimeRelative `json:"timeRelative,omitempty"`

	// +optional
	Metric *Metric `json:"metric,omitempty"`

	// +optional
	Tracing *Tracing `json:"tracing,omitempty"`

	// +optional
	Flow *Flow `json:"flow,omitempty"`
}

func (*AlertType) DeepCopy

func (in *AlertType) DeepCopy() *AlertType

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

func (*AlertType) DeepCopyInto

func (in *AlertType) DeepCopyInto(out *AlertType)

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

func (*AlertType) DeepEqual

func (in *AlertType) DeepEqual(actualAlert AlertType) (bool, utils.Diff)

type AlertWhen

type AlertWhen string

+kubebuilder:validation:Enum=More;Less

const (
	AlertWhenLessThan AlertWhen = "Less"
	AlertWhenMoreThan AlertWhen = "More"
)

type ArithmeticOperator

type ArithmeticOperator string

+kubebuilder:validation:Enum=Avg;Min;Max;Sum;Count;Percentile;

const (
	ArithmeticOperatorAvg        ArithmeticOperator = "Avg"
	ArithmeticOperatorMin        ArithmeticOperator = "Min"
	ArithmeticOperatorMax        ArithmeticOperator = "Max"
	ArithmeticOperatorSum        ArithmeticOperator = "Sum"
	ArithmeticOperatorCount      ArithmeticOperator = "Count"
	ArithmeticOperatorPercentile ArithmeticOperator = "Percentile"
)

type AutoRetireRatio

type AutoRetireRatio string

+kubebuilder:validation:Enum=Never;FiveMinutes;TenMinutes;Hour;TwoHours;SixHours;TwelveHours;TwentyFourHours

const (
	AutoRetireRatioNever           AutoRetireRatio = "Never"
	AutoRetireRatioFiveMinutes     AutoRetireRatio = "FiveMinutes"
	AutoRetireRatioTenMinutes      AutoRetireRatio = "TenMinutes"
	AutoRetireRatioHour            AutoRetireRatio = "Hour"
	AutoRetireRatioTwoHours        AutoRetireRatio = "TwoHours"
	AutoRetireRatioSixHours        AutoRetireRatio = "SixHours"
	AutoRetireRatioTwelveHours     AutoRetireRatio = "TwelveHours"
	AutoRetireRatioTwentyFourHours AutoRetireRatio = "TwentyFourHours"
)

type Block

type Block struct {
	SourceField string `json:"sourceField"`

	Regex string `json:"regex"`

	//+kubebuilder:default=false
	KeepBlockedLogs bool `json:"keepBlockedLogs,omitempty"`

	//+kubebuilder:default=true
	BlockingAllMatchingBlocks bool `json:"blockingAllMatchingBlocks,omitempty"`
}

func (*Block) DeepCopy

func (in *Block) DeepCopy() *Block

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

func (*Block) DeepCopyInto

func (in *Block) DeepCopyInto(out *Block)

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

func (*Block) DeepEqual

func (in *Block) DeepEqual(block Block) (bool, utils.Diff)

type Day

type Day string

+kubebuilder:validation:Enum=Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday;

const (
	Sunday    Day = "Sunday"
	Monday    Day = "Monday"
	Tuesday   Day = "Tuesday"
	Wednesday Day = "Wednesday"
	Thursday  Day = "Thursday"
	Friday    Day = "Friday"
	Saturday  Day = "Saturday"
)

type DestinationField

type DestinationField string

+kubebuilder:validation:Enum=Category;CLASSNAME;METHODNAME;THREADID;SEVERITY

const (
	DestinationFieldCategory     DestinationField = "Category"
	DestinationFieldClassName    DestinationField = "CLASSNAME"
	DestinationFieldMethod       DestinationField = "METHODNAME"
	DestinationFieldThreadID     DestinationField = "THREADID"
	DestinationFieldRuleSeverity DestinationField = "SEVERITY"
)

type ExpirationDate

type ExpirationDate struct {
	// +kubebuilder:validation:Minimum:=1
	// +kubebuilder:validation:Maximum:=31
	Day int32 `json:"day,omitempty"`

	// +kubebuilder:validation:Minimum:=1
	// +kubebuilder:validation:Maximum:=12
	Month int32 `json:"month,omitempty"`

	// +kubebuilder:validation:Minimum:=1
	// +kubebuilder:validation:Maximum:=9999
	Year int32 `json:"year,omitempty"`
}

func (*ExpirationDate) DeepCopy

func (in *ExpirationDate) DeepCopy() *ExpirationDate

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

func (*ExpirationDate) DeepCopyInto

func (in *ExpirationDate) DeepCopyInto(out *ExpirationDate)

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

func (*ExpirationDate) DeepEqual

func (in *ExpirationDate) DeepEqual(date *alerts.Date) bool

type Extract

type Extract struct {
	SourceField string `json:"sourceField"`

	Regex string `json:"regex"`
}

func (*Extract) DeepCopy

func (in *Extract) DeepCopy() *Extract

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

func (*Extract) DeepCopyInto

func (in *Extract) DeepCopyInto(out *Extract)

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

func (*Extract) DeepEqual

func (in *Extract) DeepEqual(extract Extract) (bool, utils.Diff)

type ExtractTimestamp

type ExtractTimestamp struct {
	SourceField string `json:"sourceField"`

	FieldFormatStandard FieldFormatStandard `json:"fieldFormatStandard"`

	TimeFormat string `json:"timeFormat"`
}

func (*ExtractTimestamp) DeepCopy

func (in *ExtractTimestamp) DeepCopy() *ExtractTimestamp

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

func (*ExtractTimestamp) DeepCopyInto

func (in *ExtractTimestamp) DeepCopyInto(out *ExtractTimestamp)

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

func (*ExtractTimestamp) DeepEqual

func (in *ExtractTimestamp) DeepEqual(extractTimestamp ExtractTimestamp) (bool, utils.Diff)

type FieldFilterType

type FieldFilterType string

+kubebuilder:validation:Enum=Application;Subsystem;Service;

type FieldFormatStandard

type FieldFormatStandard string

+kubebuilder:validation:Enum=Strftime;JavaSDF;Golang;SecondTS;MilliTS;MicroTS;NanoTS

const (
	FieldFormatStandardStrftime FieldFormatStandard = "Strftime"
	FieldFormatStandardJavaSDF  FieldFormatStandard = "JavaSDF"
	FieldFormatStandardGolang   FieldFormatStandard = "Golang"
	FieldFormatStandardSecondTS FieldFormatStandard = "SecondTS"
	FieldFormatStandardMilliTS  FieldFormatStandard = "MilliTS"
	FieldFormatStandardMicroTS  FieldFormatStandard = "MicroTS"
	FieldFormatStandardNanoTS   FieldFormatStandard = "NanoTS"
)

type FilterOperator

type FilterOperator string

+kubebuilder:validation:Enum=Equals;Contains;StartWith;EndWith;

type Filters

type Filters struct {
	// +optional
	SearchQuery *string `json:"searchQuery,omitempty"`

	// +optional
	Severities []FiltersLogSeverity `json:"severities,omitempty"`

	// +optional
	Applications []string `json:"applications,omitempty"`

	// +optional
	Subsystems []string `json:"subsystems,omitempty"`

	// +optional
	Categories []string `json:"categories,omitempty"`

	// +optional
	Computers []string `json:"computers,omitempty"`

	// +optional
	Classes []string `json:"classes,omitempty"`

	// +optional
	Methods []string `json:"methods,omitempty"`

	// +optional
	IPs []string `json:"ips,omitempty"`

	// +optional
	Alias *string `json:"alias,omitempty"`
}

func (*Filters) DeepCopy

func (in *Filters) DeepCopy() *Filters

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

func (*Filters) DeepCopyInto

func (in *Filters) DeepCopyInto(out *Filters)

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

func (*Filters) DeepEqual

func (in *Filters) DeepEqual(actualFilters *Filters) (bool, utils.Diff)

type FiltersLogSeverity

type FiltersLogSeverity string

+kubebuilder:validation:Enum=Debug;Verbose;Info;Warning;Critical;Error;

const (
	FiltersLogSeverityDebug    FiltersLogSeverity = "Debug"
	FiltersLogSeverityVerbose  FiltersLogSeverity = "Verbose"
	FiltersLogSeverityInfo     FiltersLogSeverity = "Info"
	FiltersLogSeverityWarning  FiltersLogSeverity = "Warning"
	FiltersLogSeverityCritical FiltersLogSeverity = "Critical"
	FiltersLogSeverityError    FiltersLogSeverity = "Error"
)

type Flow

type Flow struct {
	Stages []FlowStage `json:"stages"`
}

func (*Flow) DeepCopy

func (in *Flow) DeepCopy() *Flow

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

func (*Flow) DeepCopyInto

func (in *Flow) DeepCopyInto(out *Flow)

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

func (*Flow) DeepEqual

func (in *Flow) DeepEqual(actualFlow Flow) (bool, utils.Diff)

type FlowOperator

type FlowOperator string

+kubebuilder:validation:Enum=And;Or

type FlowStage

type FlowStage struct {
	// +optional
	TimeWindow *FlowStageTimeFrame `json:"timeWindow,omitempty"`

	Groups []FlowStageGroup `json:"groups"`
}

func (*FlowStage) DeepCopy

func (in *FlowStage) DeepCopy() *FlowStage

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

func (*FlowStage) DeepCopyInto

func (in *FlowStage) DeepCopyInto(out *FlowStage)

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

func (*FlowStage) DeepEqual

func (in *FlowStage) DeepEqual(actualStage FlowStage) (bool, utils.Diff)

type FlowStageGroup

type FlowStageGroup struct {
	InnerFlowAlerts InnerFlowAlerts `json:"innerFlowAlerts"`

	NextOperator FlowOperator `json:"nextOperator"`
}

func (*FlowStageGroup) DeepCopy

func (in *FlowStageGroup) DeepCopy() *FlowStageGroup

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

func (*FlowStageGroup) DeepCopyInto

func (in *FlowStageGroup) DeepCopyInto(out *FlowStageGroup)

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

func (*FlowStageGroup) DeepEqual

func (in *FlowStageGroup) DeepEqual(actualGroup FlowStageGroup) (bool, utils.Diff)

type FlowStageTimeFrame

type FlowStageTimeFrame struct {
	// +optional
	Hours int `json:"hours,omitempty"`

	// +optional
	Minutes int `json:"minutes,omitempty"`

	// +optional
	Seconds int `json:"seconds,omitempty"`
}

func (*FlowStageTimeFrame) DeepCopy

func (in *FlowStageTimeFrame) DeepCopy() *FlowStageTimeFrame

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

func (*FlowStageTimeFrame) DeepCopyInto

func (in *FlowStageTimeFrame) DeepCopyInto(out *FlowStageTimeFrame)

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

type GroupByFor

type GroupByFor string

+kubebuilder:validation:Enum=Q1;Q2;Both

const (
	GroupByForQ1   GroupByFor = "Q1"
	GroupByForQ2   GroupByFor = "Q2"
	GroupByForBoth GroupByFor = "Both"
)

type InnerFlowAlert

type InnerFlowAlert struct {
	// +kubebuilder:default=false
	Not bool `json:"not,omitempty"`

	// +optional
	UserAlertId string `json:"userAlertId,omitempty"`
}

func (*InnerFlowAlert) DeepCopy

func (in *InnerFlowAlert) DeepCopy() *InnerFlowAlert

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

func (*InnerFlowAlert) DeepCopyInto

func (in *InnerFlowAlert) DeepCopyInto(out *InnerFlowAlert)

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

func (*InnerFlowAlert) DeepEqual

func (in *InnerFlowAlert) DeepEqual(actualInnerFlowAlert InnerFlowAlert) (bool, utils.Diff)

type InnerFlowAlerts

type InnerFlowAlerts struct {
	Operator FlowOperator `json:"operator"`

	Alerts []InnerFlowAlert `json:"alerts"`
}

func (*InnerFlowAlerts) DeepCopy

func (in *InnerFlowAlerts) DeepCopy() *InnerFlowAlerts

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

func (*InnerFlowAlerts) DeepCopyInto

func (in *InnerFlowAlerts) DeepCopyInto(out *InnerFlowAlerts)

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

func (*InnerFlowAlerts) DeepEqual

func (in *InnerFlowAlerts) DeepEqual(actualInnerFlowAlerts InnerFlowAlerts) (bool, utils.Diff)

type JsonExtract

type JsonExtract struct {
	DestinationField DestinationField `json:"destinationField"`

	JsonKey string `json:"jsonKey"`
}

func (*JsonExtract) DeepCopy

func (in *JsonExtract) DeepCopy() *JsonExtract

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

func (*JsonExtract) DeepCopyInto

func (in *JsonExtract) DeepCopyInto(out *JsonExtract)

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

func (*JsonExtract) DeepEqual

func (in *JsonExtract) DeepEqual(jsonExtract JsonExtract) (bool, utils.Diff)

type JsonStringify

type JsonStringify struct {
	SourceField string `json:"sourceField"`

	DestinationField string `json:"destinationField"`

	//+kubebuilder:default=false
	KeepSourceField bool `json:"keepSourceField,omitempty"`
}

func (*JsonStringify) DeepCopy

func (in *JsonStringify) DeepCopy() *JsonStringify

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

func (*JsonStringify) DeepCopyInto

func (in *JsonStringify) DeepCopyInto(out *JsonStringify)

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

func (*JsonStringify) DeepEqual

func (in *JsonStringify) DeepEqual(jsonStringify JsonStringify) (bool, utils.Diff)

type Lucene

type Lucene struct {
	// +optional
	SearchQuery *string `json:"searchQuery,omitempty"`

	Conditions LuceneConditions `json:"conditions"`
}

func (*Lucene) DeepCopy

func (in *Lucene) DeepCopy() *Lucene

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

func (*Lucene) DeepCopyInto

func (in *Lucene) DeepCopyInto(out *Lucene)

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

func (*Lucene) DeepEqual

func (in *Lucene) DeepEqual(actualLucene Lucene) (bool, utils.Diff)

type LuceneConditions

type LuceneConditions struct {
	MetricField string `json:"metricField"`

	ArithmeticOperator ArithmeticOperator `json:"arithmeticOperator"`

	// +optional
	ArithmeticOperatorModifier *int `json:"arithmeticOperatorModifier,omitempty"`

	AlertWhen AlertWhen `json:"alertWhen"`

	Threshold resource.Quantity `json:"threshold"`

	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:validation:MultipleOf:=10
	SampleThresholdPercentage int `json:"sampleThresholdPercentage,omitempty"`

	TimeWindow MetricTimeWindow `json:"timeWindow"`

	// +optional
	GroupBy []string `json:"groupBy,omitempty"`

	//+kubebuilder:default=false
	ReplaceMissingValueWithZero bool `json:"replaceMissingValueWithZero,omitempty"`

	// +kubebuilder:validation:Minimum:=0
	// +kubebuilder:validation:MultipleOf:=10
	MinNonNullValuesPercentage int `json:"minNonNullValuesPercentage,omitempty"`

	// +optional
	ManageUndetectedValues *ManageUndetectedValues `json:"manageUndetectedValues,omitempty"`
}

func (*LuceneConditions) DeepCopy

func (in *LuceneConditions) DeepCopy() *LuceneConditions

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

func (*LuceneConditions) DeepCopyInto

func (in *LuceneConditions) DeepCopyInto(out *LuceneConditions)

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

func (*LuceneConditions) DeepEqual

func (in *LuceneConditions) DeepEqual(actualCondition LuceneConditions) (bool, utils.Diff)

type ManageUndetectedValues

type ManageUndetectedValues struct {
	//+kubebuilder:default=true
	EnableTriggeringOnUndetectedValues bool `json:"enableTriggeringOnUndetectedValues,omitempty"`

	//+kubebuilder:default=Never
	AutoRetireRatio *AutoRetireRatio `json:"autoRetireRatio,omitempty"`
}

func (*ManageUndetectedValues) DeepCopy

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

func (*ManageUndetectedValues) DeepCopyInto

func (in *ManageUndetectedValues) DeepCopyInto(out *ManageUndetectedValues)

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

func (*ManageUndetectedValues) DeepEqual

func (in *ManageUndetectedValues) DeepEqual(actualManageUndetectedValues *ManageUndetectedValues) (bool, utils.Diff)

type Metric

type Metric struct {
	// +optional
	Lucene *Lucene `json:"lucene,omitempty"`

	// +optional
	Promql *Promql `json:"promql,omitempty"`
}

func (*Metric) DeepCopy

func (in *Metric) DeepCopy() *Metric

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

func (*Metric) DeepCopyInto

func (in *Metric) DeepCopyInto(out *Metric)

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

func (*Metric) DeepEqual

func (in *Metric) DeepEqual(actualMetric Metric) (bool, utils.Diff)

type MetricTimeWindow

type MetricTimeWindow string

+kubebuilder:validation:Enum=Minute;FiveMinutes;TenMinutes;FifteenMinutes;TwentyMinutes;ThirtyMinutes;Hour;TwoHours;FourHours;SixHours;TwelveHours;TwentyFourHours

type NewValue

type NewValue struct {
	// +optional
	Filters *Filters `json:"filters,omitempty"`

	Conditions NewValueConditions `json:"conditions"`
}

func (*NewValue) DeepCopy

func (in *NewValue) DeepCopy() *NewValue

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

func (*NewValue) DeepCopyInto

func (in *NewValue) DeepCopyInto(out *NewValue)

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

func (*NewValue) DeepEqual

func (in *NewValue) DeepEqual(newValue NewValue) (bool, utils.Diff)

type NewValueConditions

type NewValueConditions struct {
	Key string `json:"key"`

	TimeWindow NewValueTimeWindow `json:"timeWindow"`
}

func (*NewValueConditions) DeepCopy

func (in *NewValueConditions) DeepCopy() *NewValueConditions

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

func (*NewValueConditions) DeepCopyInto

func (in *NewValueConditions) DeepCopyInto(out *NewValueConditions)

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

func (*NewValueConditions) DeepEqual

func (in *NewValueConditions) DeepEqual(actualConditions NewValueConditions) (bool, utils.Diff)

type NewValueTimeWindow

type NewValueTimeWindow string

+kubebuilder:validation:Enum=TwelveHours;TwentyFourHours;FortyEightHours;SeventTwoHours;Week;Month;TwoMonths;ThreeMonths;

type Notification

type Notification struct {
	RetriggeringPeriodMinutes int32 `json:"retriggeringPeriodMinutes,omitempty"`

	NotifyOn NotifyOn `json:"notifyOn,omitempty"`

	// +optional
	IntegrationID *int32 `json:"integrationID,omitempty"`

	// +optional
	EmailRecipients []string `json:"emailRecipients,omitempty"`
}

func (*Notification) DeepCopy

func (in *Notification) DeepCopy() *Notification

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

func (*Notification) DeepCopyInto

func (in *Notification) DeepCopyInto(out *Notification)

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

func (*Notification) DeepEqual

func (in *Notification) DeepEqual(actualNotification Notification) (bool, utils.Diff)

type NotificationGroup

type NotificationGroup struct {
	// +optional
	GroupByFields []string `json:"groupByFields,omitempty"`

	Notifications []Notification `json:"notifications,omitempty"`
}

func (*NotificationGroup) DeepCopy

func (in *NotificationGroup) DeepCopy() *NotificationGroup

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

func (*NotificationGroup) DeepCopyInto

func (in *NotificationGroup) DeepCopyInto(out *NotificationGroup)

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

func (*NotificationGroup) DeepEqual

func (in *NotificationGroup) DeepEqual(actualNotificationGroup NotificationGroup) (bool, utils.Diff)

type NotifyOn

type NotifyOn string

type Parse

type Parse struct {
	SourceField string `json:"sourceField"`

	DestinationField string `json:"destinationField"`

	Regex string `json:"regex"`
}

func (*Parse) DeepCopy

func (in *Parse) DeepCopy() *Parse

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

func (*Parse) DeepCopyInto

func (in *Parse) DeepCopyInto(out *Parse)

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

func (*Parse) DeepEqual

func (in *Parse) DeepEqual(parse Parse) (bool, utils.Diff)

type ParseJsonField

type ParseJsonField struct {
	SourceField string `json:"sourceField"`

	DestinationField string `json:"destinationField"`

	KeepSourceField bool `json:"keepSourceField"`

	KeepDestinationField bool `json:"keepDestinationField"`
}

func (*ParseJsonField) DeepCopy

func (in *ParseJsonField) DeepCopy() *ParseJsonField

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

func (*ParseJsonField) DeepCopyInto

func (in *ParseJsonField) DeepCopyInto(out *ParseJsonField)

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

func (*ParseJsonField) DeepEqual

func (in *ParseJsonField) DeepEqual(field ParseJsonField) (bool, utils.Diff)

type Promql

type Promql struct {
	SearchQuery string `json:"searchQuery,omitempty"`

	Conditions PromqlConditions `json:"conditions"`
}

func (*Promql) DeepCopy

func (in *Promql) DeepCopy() *Promql

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

func (*Promql) DeepCopyInto

func (in *Promql) DeepCopyInto(out *Promql)

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

func (*Promql) DeepEqual

func (in *Promql) DeepEqual(actualPromql Promql) (bool, utils.Diff)

type PromqlConditions

type PromqlConditions struct {
	AlertWhen AlertWhen `json:"alertWhen"`

	Threshold resource.Quantity `json:"threshold"`

	// +kubebuilder:validation:Minimum=0
	// +kubebuilder:validation:MultipleOf:=10
	SampleThresholdPercentage int `json:"sampleThresholdPercentage,omitempty"`

	TimeWindow MetricTimeWindow `json:"timeWindow"`

	// +optional
	GroupBy []string `json:"groupBy,omitempty"`

	// +optional
	ReplaceMissingValueWithZero bool `json:"replaceMissingValueWithZero,omitempty"`

	// +kubebuilder:validation:Minimum:=0
	// +kubebuilder:validation:MultipleOf:=10
	MinNonNullValuesPercentage *int `json:"minNonNullValuesPercentage,omitempty"`

	// +optional
	ManageUndetectedValues *ManageUndetectedValues `json:"manageUndetectedValues,omitempty"`
}

func (*PromqlConditions) DeepCopy

func (in *PromqlConditions) DeepCopy() *PromqlConditions

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

func (*PromqlConditions) DeepCopyInto

func (in *PromqlConditions) DeepCopyInto(out *PromqlConditions)

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

func (*PromqlConditions) DeepEqual

func (in *PromqlConditions) DeepEqual(actualCondition PromqlConditions) (bool, utils.Diff)

type ProtoTimeFrameAndRelativeTimeFrame

type ProtoTimeFrameAndRelativeTimeFrame struct {
	TimeFrame         alerts.Timeframe
	RelativeTimeFrame alerts.RelativeTimeframe
}

func (*ProtoTimeFrameAndRelativeTimeFrame) DeepCopy

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

func (*ProtoTimeFrameAndRelativeTimeFrame) DeepCopyInto

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

type Ratio

type Ratio struct {
	Query1Filters Filters `json:"q1Filters,omitempty"`

	Query2Filters RatioQ2Filters `json:"q2Filters,omitempty"`

	Conditions RatioConditions `json:"conditions"`
}

func (*Ratio) DeepCopy

func (in *Ratio) DeepCopy() *Ratio

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

func (*Ratio) DeepCopyInto

func (in *Ratio) DeepCopyInto(out *Ratio)

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

func (*Ratio) DeepEqual

func (in *Ratio) DeepEqual(actualRatio Ratio) (bool, utils.Diff)

type RatioConditions

type RatioConditions struct {
	AlertWhen AlertWhen `json:"alertWhen"`

	Ratio resource.Quantity `json:"ratio"`

	//+kubebuilder:default=false
	IgnoreInfinity bool `json:"ignoreInfinity,omitempty"`

	TimeWindow TimeWindow `json:"timeWindow"`

	// +optional
	GroupBy []string `json:"groupBy,omitempty"`

	// +optional
	GroupByFor *GroupByFor `json:"groupByFor,omitempty"`

	// +optional
	ManageUndetectedValues *ManageUndetectedValues `json:"manageUndetectedValues,omitempty"`
}

func (*RatioConditions) DeepCopy

func (in *RatioConditions) DeepCopy() *RatioConditions

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

func (*RatioConditions) DeepCopyInto

func (in *RatioConditions) DeepCopyInto(out *RatioConditions)

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

func (*RatioConditions) DeepEqual

func (in *RatioConditions) DeepEqual(actualCondition RatioConditions) (bool, utils.Diff)

type RatioQ2Filters

type RatioQ2Filters struct {
	// +optional
	Alias *string `json:"alias,omitempty"`

	// +optional
	SearchQuery *string `json:"searchQuery,omitempty"`

	// +optional
	Severities []FiltersLogSeverity `json:"severities,omitempty"`

	// +optional
	Applications []string `json:"applications,omitempty"`

	// +optional
	Subsystems []string `json:"subsystems,omitempty"`
}

func (*RatioQ2Filters) DeepCopy

func (in *RatioQ2Filters) DeepCopy() *RatioQ2Filters

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

func (*RatioQ2Filters) DeepCopyInto

func (in *RatioQ2Filters) DeepCopyInto(out *RatioQ2Filters)

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

func (*RatioQ2Filters) DeepEqual

func (in *RatioQ2Filters) DeepEqual(actualRatioQ2Filters RatioQ2Filters) (bool, utils.Diff)

type Recipients

type Recipients struct {
	// +optional
	Emails []string `json:"emails,omitempty"`

	// +optional
	Webhooks []string `json:"webhooks,omitempty"`
}

func (*Recipients) DeepCopy

func (in *Recipients) DeepCopy() *Recipients

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

func (*Recipients) DeepCopyInto

func (in *Recipients) DeepCopyInto(out *Recipients)

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

func (*Recipients) DeepEqual

func (in *Recipients) DeepEqual(actualRecipients Recipients) (bool, utils.Diff)

type RecordingRule

type RecordingRule struct {
	Record string `json:"record,omitempty"`

	Expr string `json:"expr,omitempty"`

	Labels map[string]string `json:"labels,omitempty"`
}

func (*RecordingRule) DeepCopy

func (in *RecordingRule) DeepCopy() *RecordingRule

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

func (*RecordingRule) DeepCopyInto

func (in *RecordingRule) DeepCopyInto(out *RecordingRule)

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

func (*RecordingRule) DeepEqual

func (in *RecordingRule) DeepEqual(rule RecordingRule) (bool, utils.Diff)

type RecordingRuleGroup

type RecordingRuleGroup struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Name string `json:"name,omitempty"`

	//+kubebuilder:default=60
	// +kubebuilder:validation:Minimum=60
	IntervalSeconds int32 `json:"intervalSeconds,omitempty"`

	// +optional
	Limit int64 `json:"limit,omitempty"`

	Rules []RecordingRule `json:"rules,omitempty"`
}

func (*RecordingRuleGroup) DeepCopy

func (in *RecordingRuleGroup) DeepCopy() *RecordingRuleGroup

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

func (*RecordingRuleGroup) DeepCopyInto

func (in *RecordingRuleGroup) DeepCopyInto(out *RecordingRuleGroup)

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

func (*RecordingRuleGroup) DeepEqual

func (in *RecordingRuleGroup) DeepEqual(actual RecordingRuleGroup) (bool, utils.Diff)

type RecordingRuleGroupSet

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

	Spec   RecordingRuleGroupSetSpec   `json:"spec,omitempty"`
	Status RecordingRuleGroupSetStatus `json:"status,omitempty"`
}

RecordingRuleGroupSet is the Schema for the recordingrulegroupsets API

func (*RecordingRuleGroupSet) DeepCopy

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

func (*RecordingRuleGroupSet) DeepCopyInto

func (in *RecordingRuleGroupSet) DeepCopyInto(out *RecordingRuleGroupSet)

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

func (*RecordingRuleGroupSet) DeepCopyObject

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

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

type RecordingRuleGroupSetList

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

RecordingRuleGroupSetList contains a list of RecordingRuleGroupSet

func (*RecordingRuleGroupSetList) DeepCopy

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

func (*RecordingRuleGroupSetList) DeepCopyInto

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

func (*RecordingRuleGroupSetList) DeepCopyObject

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

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

type RecordingRuleGroupSetSpec

type RecordingRuleGroupSetSpec struct {
	// +kubebuilder:validation:MinItems=1
	Groups []RecordingRuleGroup `json:"groups"`
}

RecordingRuleGroupSetSpec defines the desired state of RecordingRuleGroupSet

func (*RecordingRuleGroupSetSpec) DeepCopy

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

func (*RecordingRuleGroupSetSpec) DeepCopyInto

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

func (*RecordingRuleGroupSetSpec) DeepEqual

func (*RecordingRuleGroupSetSpec) ExtractRecordingRuleGroups

func (in *RecordingRuleGroupSetSpec) ExtractRecordingRuleGroups() []*rrg.InRuleGroup

type RecordingRuleGroupSetStatus

type RecordingRuleGroupSetStatus struct {
	ID *string `json:"id"`

	Groups []RecordingRuleGroup `json:"groups,omitempty"`
}

RecordingRuleGroupSetStatus defines the observed state of RecordingRuleGroupSet

func (*RecordingRuleGroupSetStatus) DeepCopy

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

func (*RecordingRuleGroupSetStatus) DeepCopyInto

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

type RelativeTimeWindow

type RelativeTimeWindow string

+kubebuilder:validation:Enum=PreviousHour;SameHourYesterday;SameHourLastWeek;Yesterday;SameDayLastWeek;SameDayLastMonth;

const (
	RelativeTimeWindowPreviousHour      RelativeTimeWindow = "PreviousHour"
	RelativeTimeWindowSameHourYesterday RelativeTimeWindow = "SameHourYesterday"
	RelativeTimeWindowSameHourLastWeek  RelativeTimeWindow = "SameHourLastWeek"
	RelativeTimeWindowYesterday         RelativeTimeWindow = "Yesterday"
	RelativeTimeWindowSameDayLastWeek   RelativeTimeWindow = "SameDayLastWeek"
	RelativeTimeWindowSameDayLastMonth  RelativeTimeWindow = "SameDayLastMonth"
)

type RemoveFields

type RemoveFields struct {
	ExcludedFields []string `json:"excludedFields"`
}

func (*RemoveFields) DeepCopy

func (in *RemoveFields) DeepCopy() *RemoveFields

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

func (*RemoveFields) DeepCopyInto

func (in *RemoveFields) DeepCopyInto(out *RemoveFields)

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

func (*RemoveFields) DeepEqual

func (in *RemoveFields) DeepEqual(removeFields RemoveFields) (bool, utils.Diff)

type Replace

type Replace struct {
	SourceField string `json:"sourceField"`

	DestinationField string `json:"destinationField"`

	Regex string `json:"regex"`

	ReplacementString string `json:"replacementString"`
}

func (*Replace) DeepCopy

func (in *Replace) DeepCopy() *Replace

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

func (*Replace) DeepCopyInto

func (in *Replace) DeepCopyInto(out *Replace)

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

func (*Replace) DeepEqual

func (in *Replace) DeepEqual(replace Replace) (bool, utils.Diff)

type Rule

type Rule struct {
	//+kubebuilder:validation:MinLength=0
	Name string `json:"name"`

	// +optional
	Description string `json:"description,omitempty"`

	//+kubebuilder:default=true
	Active bool `json:"active,omitempty"`

	// +optional
	Parse *Parse `json:"parse,omitempty"`

	// +optional
	Block *Block `json:"block,omitempty"`

	// +optional
	JsonExtract *JsonExtract `json:"jsonExtract,omitempty"`

	// +optional
	Replace *Replace `json:"replace,omitempty"`

	// +optional
	ExtractTimestamp *ExtractTimestamp `json:"extractTimestamp,omitempty"`

	// +optional
	RemoveFields *RemoveFields `json:"removeFields,omitempty"`

	// +optional
	JsonStringify *JsonStringify `json:"jsonStringify,omitempty"`

	// +optional
	Extract *Extract `json:"extract,omitempty"`

	// +optional
	ParseJsonField *ParseJsonField `json:"parseJsonField,omitempty"`
}

func (*Rule) DeepCopy

func (in *Rule) DeepCopy() *Rule

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

func (*Rule) DeepCopyInto

func (in *Rule) DeepCopyInto(out *Rule)

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

func (*Rule) DeepEqual

func (in *Rule) DeepEqual(actualRule Rule) (bool, utils.Diff)

func (*Rule) DeepEqualRuleType

func (in *Rule) DeepEqualRuleType(rule Rule) (bool, utils.Diff)

type RuleGroup

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

	Spec   RuleGroupSpec   `json:"spec,omitempty"`
	Status RuleGroupStatus `json:"status,omitempty"`
}

RuleGroup is the Schema for the rulegroups API

func (*RuleGroup) DeepCopy

func (in *RuleGroup) DeepCopy() *RuleGroup

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

func (*RuleGroup) DeepCopyInto

func (in *RuleGroup) DeepCopyInto(out *RuleGroup)

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

func (*RuleGroup) DeepCopyObject

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

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

type RuleGroupList

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

RuleGroupList contains a list of RuleGroup

func (*RuleGroupList) DeepCopy

func (in *RuleGroupList) DeepCopy() *RuleGroupList

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

func (*RuleGroupList) DeepCopyInto

func (in *RuleGroupList) DeepCopyInto(out *RuleGroupList)

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

func (*RuleGroupList) DeepCopyObject

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

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

type RuleGroupSpec

type RuleGroupSpec struct {
	//+kubebuilder:validation:MinLength=0
	Name string `json:"name"`

	// +optional
	Description string `json:"description,omitempty"`

	//+kubebuilder:default=true
	Active bool `json:"active,omitempty"`

	// +optional
	Applications []string `json:"applications,omitempty"`

	// +optional
	Subsystems []string `json:"subsystems,omitempty"`

	// +optional
	Severities []RuleSeverity `json:"severities,omitempty"`

	//+kubebuilder:default=false
	Hidden bool `json:"hidden,omitempty"`

	// +optional
	Creator string `json:"creator,omitempty"`

	// +optional
	// +kubebuilder:validation:Minimum:=1
	Order *int32 `json:"order,omitempty"`

	// +optional
	RuleSubgroups []RuleSubGroup `json:"subgroups,omitempty"`
}

RuleGroupSpec defines the Desired state of RuleGroup

func (*RuleGroupSpec) DeepCopy

func (in *RuleGroupSpec) DeepCopy() *RuleGroupSpec

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

func (*RuleGroupSpec) DeepCopyInto

func (in *RuleGroupSpec) DeepCopyInto(out *RuleGroupSpec)

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

func (*RuleGroupSpec) DeepEqual

func (in *RuleGroupSpec) DeepEqual(actualRuleGroup RuleGroupStatus) (bool, utils.Diff)

func (*RuleGroupSpec) ExtractCreateRuleGroupRequest

func (in *RuleGroupSpec) ExtractCreateRuleGroupRequest() *rulesgroups.CreateRuleGroupRequest

func (*RuleGroupSpec) ExtractUpdateRuleGroupRequest

func (in *RuleGroupSpec) ExtractUpdateRuleGroupRequest(id string) *rulesgroups.UpdateRuleGroupRequest

func (*RuleGroupSpec) ToString

func (in *RuleGroupSpec) ToString() string

type RuleGroupStatus

type RuleGroupStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	ID *string `json:"id"`

	Name string `json:"name,omitempty"`

	Description string `json:"description,omitempty"`

	Active bool `json:"active,omitempty"`

	Applications []string `json:"applications,omitempty"`

	Subsystems []string `json:"subsystems,omitempty"`

	Severities []RuleSeverity `json:"severities,omitempty"`

	Hidden bool `json:"hidden,omitempty"`

	Creator string `json:"creator,omitempty"`

	Order *int32 `json:"order,omitempty"`

	RuleSubgroups []RuleSubGroup `json:"subgroups,omitempty"`
}

RuleGroupStatus defines the observed state of RuleGroup

func (*RuleGroupStatus) DeepCopy

func (in *RuleGroupStatus) DeepCopy() *RuleGroupStatus

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

func (*RuleGroupStatus) DeepCopyInto

func (in *RuleGroupStatus) DeepCopyInto(out *RuleGroupStatus)

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

type RuleSeverity

type RuleSeverity string

+kubebuilder:validation:Enum=Debug;Verbose;Info;Warning;Error;Critical

const (
	RuleSeverityDebug    RuleSeverity = "Debug"
	RuleSeverityVerbose  RuleSeverity = "Verbose"
	RuleSeverityInfo     RuleSeverity = "Info"
	RuleSeverityWarning  RuleSeverity = "Warning"
	RuleSeverityError    RuleSeverity = "Error"
	RuleSeverityCritical RuleSeverity = "Critical"
)

type RuleSubGroup

type RuleSubGroup struct {
	// +optional
	ID *string `json:"id,omitempty"`

	//+kubebuilder:default=true
	Active bool `json:"active,omitempty"`

	// +optional
	Order *int32 `json:"order,omitempty"`

	// +optional
	Rules []Rule `json:"rules,omitempty"`
}

func (*RuleSubGroup) DeepCopy

func (in *RuleSubGroup) DeepCopy() *RuleSubGroup

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

func (*RuleSubGroup) DeepCopyInto

func (in *RuleSubGroup) DeepCopyInto(out *RuleSubGroup)

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

func (*RuleSubGroup) DeepEqual

func (in *RuleSubGroup) DeepEqual(actualSubgroup RuleSubGroup) (bool, utils.Diff)

type Scheduling

type Scheduling struct {
	//+kubebuilder:default=UTC+00
	TimeZone TimeZone `json:"timeZone,omitempty"`

	DaysEnabled []Day `json:"daysEnabled,omitempty"`

	StartTime *Time `json:"startTime,omitempty"`

	EndTime *Time `json:"endTime,omitempty"`
}

func (*Scheduling) DeepCopy

func (in *Scheduling) DeepCopy() *Scheduling

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

func (*Scheduling) DeepCopyInto

func (in *Scheduling) DeepCopyInto(out *Scheduling)

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

func (*Scheduling) DeepEqual

func (in *Scheduling) DeepEqual(scheduling Scheduling) (bool, utils.Diff)

type ShowInInsight

type ShowInInsight struct {
	// +kubebuilder:validation:Minimum:=1
	RetriggeringPeriodMinutes int32 `json:"retriggeringPeriodMinutes,omitempty"`

	//+kubebuilder:default=TriggeredOnly
	NotifyOn NotifyOn `json:"notifyOn,omitempty"`
}

func (*ShowInInsight) DeepCopy

func (in *ShowInInsight) DeepCopy() *ShowInInsight

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

func (*ShowInInsight) DeepCopyInto

func (in *ShowInInsight) DeepCopyInto(out *ShowInInsight)

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

func (*ShowInInsight) DeepEqual

func (in *ShowInInsight) DeepEqual(actualShowInInsight ShowInInsight) (bool, utils.Diff)

type Standard

type Standard struct {
	// +optional
	Filters *Filters `json:"filters,omitempty"`

	Conditions StandardConditions `json:"conditions"`
}

func (*Standard) DeepCopy

func (in *Standard) DeepCopy() *Standard

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

func (*Standard) DeepCopyInto

func (in *Standard) DeepCopyInto(out *Standard)

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

func (*Standard) DeepEqual

func (in *Standard) DeepEqual(actualStandard Standard) (bool, utils.Diff)

type StandardAlertWhen

type StandardAlertWhen string

+kubebuilder:validation:Enum=More;Less;Immediately;MoreThanUsual

const (
	StandardAlertWhenLessThan      StandardAlertWhen = "Less"
	StandardAlertWhenMoreThan      StandardAlertWhen = "More"
	StandardAlertWhenMoreThanUsual StandardAlertWhen = "MoreThanUsual"
	StandardAlertWhenImmediately   StandardAlertWhen = "Immediately"
)

type StandardConditions

type StandardConditions struct {
	AlertWhen StandardAlertWhen `json:"alertWhen"`

	// +optional
	Threshold *int `json:"threshold,omitempty"`

	// +optional
	TimeWindow *TimeWindow `json:"timeWindow,omitempty"`

	// +optional
	GroupBy []string `json:"groupBy,omitempty"`

	// +optional
	ManageUndetectedValues *ManageUndetectedValues `json:"manageUndetectedValues,omitempty"`
}

func (*StandardConditions) DeepCopy

func (in *StandardConditions) DeepCopy() *StandardConditions

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

func (*StandardConditions) DeepCopyInto

func (in *StandardConditions) DeepCopyInto(out *StandardConditions)

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

func (*StandardConditions) DeepEqual

func (in *StandardConditions) DeepEqual(actualCondition StandardConditions) (bool, utils.Diff)

type TagFilter

type TagFilter struct {
	Field  string   `json:"field,omitempty"`
	Values []string `json:"values,omitempty"`
}

func (*TagFilter) DeepCopy

func (in *TagFilter) DeepCopy() *TagFilter

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

func (*TagFilter) DeepCopyInto

func (in *TagFilter) DeepCopyInto(out *TagFilter)

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

type Time

type Time string

+kubebuilder:validation:Pattern=`^(0\d|1\d|2[0-3]):[0-5]\d$`

type TimeRelative

type TimeRelative struct {
	// +optional
	Filters *Filters `json:"filters,omitempty"`

	Conditions TimeRelativeConditions `json:"conditions"`
}

func (*TimeRelative) DeepCopy

func (in *TimeRelative) DeepCopy() *TimeRelative

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

func (*TimeRelative) DeepCopyInto

func (in *TimeRelative) DeepCopyInto(out *TimeRelative)

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

func (*TimeRelative) DeepEqual

func (in *TimeRelative) DeepEqual(actualTimeRelative TimeRelative) (bool, utils.Diff)

type TimeRelativeConditions

type TimeRelativeConditions struct {
	AlertWhen AlertWhen `json:"alertWhen"`

	Threshold resource.Quantity `json:"threshold"`

	//+kubebuilder:default=false
	IgnoreInfinity bool `json:"ignoreInfinity,omitempty"`

	TimeWindow RelativeTimeWindow `json:"timeWindow"`

	// +optional
	GroupBy []string `json:"groupBy,omitempty"`

	// +optional
	ManageUndetectedValues *ManageUndetectedValues `json:"manageUndetectedValues,omitempty"`
}

func (*TimeRelativeConditions) DeepCopy

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

func (*TimeRelativeConditions) DeepCopyInto

func (in *TimeRelativeConditions) DeepCopyInto(out *TimeRelativeConditions)

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

func (*TimeRelativeConditions) DeepEqual

func (in *TimeRelativeConditions) DeepEqual(actualCondition TimeRelativeConditions) (bool, utils.Diff)

type TimeWindow

type TimeWindow string

+kubebuilder:validation:Enum=FiveMinutes;TenMinutes;FifteenMinutes;TwentyMinutes;ThirtyMinutes;Hour;TwoHours;FourHours;SixHours;TwelveHours;TwentyFourHours;ThirtySixHours

const (
	TimeWindowMinute          TimeWindow = "Minute"
	TimeWindowFiveMinutes     TimeWindow = "FiveMinutes"
	TimeWindowTenMinutes      TimeWindow = "TenMinutes"
	TimeWindowFifteenMinutes  TimeWindow = "FifteenMinutes"
	TimeWindowTwentyMinutes   TimeWindow = "TwentyMinutes"
	TimeWindowThirtyMinutes   TimeWindow = "ThirtyMinutes"
	TimeWindowHour            TimeWindow = "Hour"
	TimeWindowTwoHours        TimeWindow = "TwoHours"
	TimeWindowFourHours       TimeWindow = "FourHours"
	TimeWindowSixHours        TimeWindow = "SixHours"
	TimeWindowTwelveHours     TimeWindow = "TwelveHours"
	TimeWindowTwentyFourHours TimeWindow = "TwentyFourHours"
	TimeWindowThirtySixHours  TimeWindow = "ThirtySixHours"
)

type TimeZone

type TimeZone string

+kubebuilder:validation:Pattern=`^UTC[+-]\d{2}$`

type Tracing

type Tracing struct {
	Filters TracingFilters `json:"filters,omitempty"`

	Conditions TracingCondition `json:"conditions"`
}

func (*Tracing) DeepCopy

func (in *Tracing) DeepCopy() *Tracing

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

func (*Tracing) DeepCopyInto

func (in *Tracing) DeepCopyInto(out *Tracing)

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

func (*Tracing) DeepEqual

func (in *Tracing) DeepEqual(actualTracing Tracing) (bool, utils.Diff)

type TracingAlertWhen

type TracingAlertWhen string

+kubebuilder:validation:Enum=More;Immediately

const (
	TracingAlertWhenMore        TracingAlertWhen = "More"
	TracingAlertWhenImmediately TracingAlertWhen = "Immediately"
)

type TracingCondition

type TracingCondition struct {
	AlertWhen TracingAlertWhen `json:"alertWhen"`

	// +optional
	Threshold *int `json:"threshold,omitempty"`

	// +optional
	TimeWindow *TimeWindow `json:"timeWindow,omitempty"`

	// +optional
	GroupBy []string `json:"groupBy,omitempty"`
}

func (*TracingCondition) DeepCopy

func (in *TracingCondition) DeepCopy() *TracingCondition

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

func (*TracingCondition) DeepCopyInto

func (in *TracingCondition) DeepCopyInto(out *TracingCondition)

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

func (*TracingCondition) DeepEqual

func (in *TracingCondition) DeepEqual(actualCondition TracingCondition) (bool, utils.Diff)

type TracingFilters

type TracingFilters struct {
	LatencyThresholdMilliseconds resource.Quantity `json:"latencyThresholdMilliseconds,omitempty"`

	// +optional
	TagFilters []TagFilter `json:"tagFilters,omitempty"`

	// +optional
	Applications []string `json:"applications,omitempty"`

	// +optional
	Subsystems []string `json:"subsystems,omitempty"`

	// +optional
	Services []string `json:"services,omitempty"`
}

func (*TracingFilters) DeepCopy

func (in *TracingFilters) DeepCopy() *TracingFilters

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

func (*TracingFilters) DeepCopyInto

func (in *TracingFilters) DeepCopyInto(out *TracingFilters)

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

func (*TracingFilters) DeepEqual

func (in *TracingFilters) DeepEqual(actualFilters TracingFilters) (bool, utils.Diff)

type UniqueCount

type UniqueCount struct {
	// +optional
	Filters *Filters `json:"filters,omitempty"`

	Conditions UniqueCountConditions `json:"conditions"`
}

func (*UniqueCount) DeepCopy

func (in *UniqueCount) DeepCopy() *UniqueCount

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

func (*UniqueCount) DeepCopyInto

func (in *UniqueCount) DeepCopyInto(out *UniqueCount)

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

func (*UniqueCount) DeepEqual

func (in *UniqueCount) DeepEqual(actualUniqueCount UniqueCount) (bool, utils.Diff)

type UniqueCountConditions

type UniqueCountConditions struct {
	Key string `json:"key"`

	// +kubebuilder:validation:Minimum:=1
	MaxUniqueValues int `json:"maxUniqueValues"`

	TimeWindow UniqueValueTimeWindow `json:"timeWindow"`

	GroupBy *string `json:"groupBy,omitempty"`

	// +kubebuilder:validation:Minimum:=1
	MaxUniqueValuesForGroupBy *int `json:"maxUniqueValuesForGroupBy,omitempty"`
}

func (*UniqueCountConditions) DeepCopy

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

func (*UniqueCountConditions) DeepCopyInto

func (in *UniqueCountConditions) DeepCopyInto(out *UniqueCountConditions)

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

func (*UniqueCountConditions) DeepEqual

func (in *UniqueCountConditions) DeepEqual(actualCondition UniqueCountConditions) (bool, utils.Diff)

type UniqueValueTimeWindow

type UniqueValueTimeWindow string

+kubebuilder:validation:Enum=Minute;FiveMinutes;TenMinutes;FifteenMinutes;TwentyMinutes;ThirtyMinutes;Hour;TwoHours;FourHours;SixHours;TwelveHours;TwentyFourHours;ThirtySixHours

Jump to

Keyboard shortcuts

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