v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

+groupName=security.datadog.kubeform.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: security.GroupName, Version: "v1alpha1"}

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type MonitoringDefaultRule

type MonitoringDefaultRule struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              MonitoringDefaultRuleSpec   `json:"spec,omitempty"`
	Status            MonitoringDefaultRuleStatus `json:"status,omitempty"`
}

func (*MonitoringDefaultRule) DeepCopy

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

func (*MonitoringDefaultRule) DeepCopyInto

func (in *MonitoringDefaultRule) DeepCopyInto(out *MonitoringDefaultRule)

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

func (*MonitoringDefaultRule) DeepCopyObject

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

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

func (*MonitoringDefaultRule) SetupWebhookWithManager

func (r *MonitoringDefaultRule) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*MonitoringDefaultRule) ValidateCreate

func (r *MonitoringDefaultRule) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*MonitoringDefaultRule) ValidateDelete

func (r *MonitoringDefaultRule) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*MonitoringDefaultRule) ValidateUpdate

func (r *MonitoringDefaultRule) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type MonitoringDefaultRuleList

type MonitoringDefaultRuleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of MonitoringDefaultRule CRD objects
	Items []MonitoringDefaultRule `json:"items,omitempty"`
}

MonitoringDefaultRuleList is a list of MonitoringDefaultRules

func (*MonitoringDefaultRuleList) DeepCopy

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

func (*MonitoringDefaultRuleList) DeepCopyInto

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

func (*MonitoringDefaultRuleList) DeepCopyObject

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

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

type MonitoringDefaultRuleSpec

type MonitoringDefaultRuleSpec struct {
	State *MonitoringDefaultRuleSpecResource `json:"state,omitempty" tf:"-"`

	Resource MonitoringDefaultRuleSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*MonitoringDefaultRuleSpec) DeepCopy

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

func (*MonitoringDefaultRuleSpec) DeepCopyInto

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

type MonitoringDefaultRuleSpecCase

type MonitoringDefaultRuleSpecCase struct {
	// Notification targets for each rule case.
	Notifications []string `json:"notifications" tf:"notifications"`
	// Status of the rule case to match.
	Status *string `json:"status" tf:"status"`
}

func (*MonitoringDefaultRuleSpecCase) DeepCopy

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

func (*MonitoringDefaultRuleSpecCase) DeepCopyInto

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

type MonitoringDefaultRuleSpecFilter

type MonitoringDefaultRuleSpecFilter struct {
	// The type of filtering action. Allowed enum values: require, suppress
	Action *string `json:"action" tf:"action"`
	// Query for selecting logs to apply the filtering action.
	Query *string `json:"query" tf:"query"`
}

func (*MonitoringDefaultRuleSpecFilter) DeepCopy

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

func (*MonitoringDefaultRuleSpecFilter) DeepCopyInto

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

type MonitoringDefaultRuleSpecResource

type MonitoringDefaultRuleSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// Cases of the rule, this is used to update notifications.
	// +optional
	// +kubebuilder:validation:MaxItems=10
	Case []MonitoringDefaultRuleSpecCase `json:"case,omitempty" tf:"case"`
	// Enable the rule.
	// +optional
	Enabled *bool `json:"enabled,omitempty" tf:"enabled"`
	// Additional queries to filter matched events before they are processed.
	// +optional
	Filter []MonitoringDefaultRuleSpecFilter `json:"filter,omitempty" tf:"filter"`
}

func (*MonitoringDefaultRuleSpecResource) DeepCopy

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

func (*MonitoringDefaultRuleSpecResource) DeepCopyInto

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

type MonitoringDefaultRuleStatus

type MonitoringDefaultRuleStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*MonitoringDefaultRuleStatus) DeepCopy

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

func (*MonitoringDefaultRuleStatus) DeepCopyInto

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

type MonitoringFilter added in v0.4.0

type MonitoringFilter struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              MonitoringFilterSpec   `json:"spec,omitempty"`
	Status            MonitoringFilterStatus `json:"status,omitempty"`
}

func (*MonitoringFilter) DeepCopy added in v0.4.0

func (in *MonitoringFilter) DeepCopy() *MonitoringFilter

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

func (*MonitoringFilter) DeepCopyInto added in v0.4.0

func (in *MonitoringFilter) DeepCopyInto(out *MonitoringFilter)

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

func (*MonitoringFilter) DeepCopyObject added in v0.4.0

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

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

func (*MonitoringFilter) SetupWebhookWithManager added in v0.4.0

func (r *MonitoringFilter) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*MonitoringFilter) ValidateCreate added in v0.4.0

func (r *MonitoringFilter) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*MonitoringFilter) ValidateDelete added in v0.4.0

func (r *MonitoringFilter) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*MonitoringFilter) ValidateUpdate added in v0.4.0

func (r *MonitoringFilter) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type MonitoringFilterList added in v0.4.0

type MonitoringFilterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of MonitoringFilter CRD objects
	Items []MonitoringFilter `json:"items,omitempty"`
}

MonitoringFilterList is a list of MonitoringFilters

func (*MonitoringFilterList) DeepCopy added in v0.4.0

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

func (*MonitoringFilterList) DeepCopyInto added in v0.4.0

func (in *MonitoringFilterList) DeepCopyInto(out *MonitoringFilterList)

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

func (*MonitoringFilterList) DeepCopyObject added in v0.4.0

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

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

type MonitoringFilterSpec added in v0.4.0

type MonitoringFilterSpec struct {
	State *MonitoringFilterSpecResource `json:"state,omitempty" tf:"-"`

	Resource MonitoringFilterSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*MonitoringFilterSpec) DeepCopy added in v0.4.0

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

func (*MonitoringFilterSpec) DeepCopyInto added in v0.4.0

func (in *MonitoringFilterSpec) DeepCopyInto(out *MonitoringFilterSpec)

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

type MonitoringFilterSpecExclusionFilter added in v0.4.0

type MonitoringFilterSpecExclusionFilter struct {
	// Exclusion filter name.
	Name *string `json:"name" tf:"name"`
	// Exclusion filter query. Logs that match this query are excluded from the security filter.
	Query *string `json:"query" tf:"query"`
}

func (*MonitoringFilterSpecExclusionFilter) DeepCopy added in v0.4.0

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

func (*MonitoringFilterSpecExclusionFilter) DeepCopyInto added in v0.4.0

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

type MonitoringFilterSpecResource added in v0.4.0

type MonitoringFilterSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// Exclusion filters to exclude some logs from the security filter.
	// +optional
	ExclusionFilter []MonitoringFilterSpecExclusionFilter `json:"exclusionFilter,omitempty" tf:"exclusion_filter"`
	// The filtered data type.
	// +optional
	FilteredDataType *string `json:"filteredDataType,omitempty" tf:"filtered_data_type"`
	// Whether the security filter is enabled.
	IsEnabled *bool `json:"isEnabled" tf:"is_enabled"`
	// The name of the security filter.
	Name *string `json:"name" tf:"name"`
	// The query of the security filter.
	Query *string `json:"query" tf:"query"`
	// The version of the security filter.
	// +optional
	Version *int64 `json:"version,omitempty" tf:"version"`
}

func (*MonitoringFilterSpecResource) DeepCopy added in v0.4.0

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

func (*MonitoringFilterSpecResource) DeepCopyInto added in v0.4.0

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

type MonitoringFilterStatus added in v0.4.0

type MonitoringFilterStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*MonitoringFilterStatus) DeepCopy added in v0.4.0

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

func (*MonitoringFilterStatus) DeepCopyInto added in v0.4.0

func (in *MonitoringFilterStatus) DeepCopyInto(out *MonitoringFilterStatus)

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

type MonitoringRule

type MonitoringRule struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              MonitoringRuleSpec   `json:"spec,omitempty"`
	Status            MonitoringRuleStatus `json:"status,omitempty"`
}

func (*MonitoringRule) DeepCopy

func (in *MonitoringRule) DeepCopy() *MonitoringRule

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

func (*MonitoringRule) DeepCopyInto

func (in *MonitoringRule) DeepCopyInto(out *MonitoringRule)

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

func (*MonitoringRule) DeepCopyObject

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

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

func (*MonitoringRule) SetupWebhookWithManager

func (r *MonitoringRule) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*MonitoringRule) ValidateCreate

func (r *MonitoringRule) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*MonitoringRule) ValidateDelete

func (r *MonitoringRule) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*MonitoringRule) ValidateUpdate

func (r *MonitoringRule) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type MonitoringRuleList

type MonitoringRuleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of MonitoringRule CRD objects
	Items []MonitoringRule `json:"items,omitempty"`
}

MonitoringRuleList is a list of MonitoringRules

func (*MonitoringRuleList) DeepCopy

func (in *MonitoringRuleList) DeepCopy() *MonitoringRuleList

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

func (*MonitoringRuleList) DeepCopyInto

func (in *MonitoringRuleList) DeepCopyInto(out *MonitoringRuleList)

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

func (*MonitoringRuleList) DeepCopyObject

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

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

type MonitoringRuleSpec

type MonitoringRuleSpec struct {
	State *MonitoringRuleSpecResource `json:"state,omitempty" tf:"-"`

	Resource MonitoringRuleSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*MonitoringRuleSpec) DeepCopy

func (in *MonitoringRuleSpec) DeepCopy() *MonitoringRuleSpec

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

func (*MonitoringRuleSpec) DeepCopyInto

func (in *MonitoringRuleSpec) DeepCopyInto(out *MonitoringRuleSpec)

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

type MonitoringRuleSpecCase

type MonitoringRuleSpecCase struct {
	// A rule case contains logical operations (`>`,`>=`, `&&`, `||`) to determine if a signal should be generated based on the event counts in the previously defined queries.
	// +optional
	Condition *string `json:"condition,omitempty" tf:"condition"`
	// Name of the case.
	// +optional
	Name *string `json:"name,omitempty" tf:"name"`
	// Notification targets for each rule case.
	// +optional
	Notifications []string `json:"notifications,omitempty" tf:"notifications"`
	// Severity of the Security Signal.
	Status *string `json:"status" tf:"status"`
}

func (*MonitoringRuleSpecCase) DeepCopy

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

func (*MonitoringRuleSpecCase) DeepCopyInto

func (in *MonitoringRuleSpecCase) DeepCopyInto(out *MonitoringRuleSpecCase)

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

type MonitoringRuleSpecFilter

type MonitoringRuleSpecFilter struct {
	// The type of filtering action.
	Action *string `json:"action" tf:"action"`
	// Query for selecting logs to apply the filtering action.
	Query *string `json:"query" tf:"query"`
}

func (*MonitoringRuleSpecFilter) DeepCopy

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

func (*MonitoringRuleSpecFilter) DeepCopyInto

func (in *MonitoringRuleSpecFilter) DeepCopyInto(out *MonitoringRuleSpecFilter)

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

type MonitoringRuleSpecOptions

type MonitoringRuleSpecOptions struct {
	// The detection method.
	// +optional
	DetectionMethod *string `json:"detectionMethod,omitempty" tf:"detection_method"`
	// A time window is specified to match when at least one of the cases matches true. This is a sliding window and evaluates in real time.
	EvaluationWindow *int64 `json:"evaluationWindow" tf:"evaluation_window"`
	// Once a signal is generated, the signal will remain “open” if a case is matched at least once within this keep alive window.
	KeepAlive *int64 `json:"keepAlive" tf:"keep_alive"`
	// A signal will “close” regardless of the query being matched once the time exceeds the maximum duration. This time is calculated from the first seen timestamp.
	MaxSignalDuration *int64 `json:"maxSignalDuration" tf:"max_signal_duration"`
	// New value rules specific options.
	// +optional
	NewValueOptions *MonitoringRuleSpecOptionsNewValueOptions `json:"newValueOptions,omitempty" tf:"new_value_options"`
}

func (*MonitoringRuleSpecOptions) DeepCopy

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

func (*MonitoringRuleSpecOptions) DeepCopyInto

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

type MonitoringRuleSpecOptionsCodec

type MonitoringRuleSpecOptionsCodec struct {
}

+k8s:deepcopy-gen=false

func (MonitoringRuleSpecOptionsCodec) Decode

func (MonitoringRuleSpecOptionsCodec) Encode

func (MonitoringRuleSpecOptionsCodec) IsEmpty

type MonitoringRuleSpecOptionsNewValueOptions

type MonitoringRuleSpecOptionsNewValueOptions struct {
	// The duration in days after which a learned value is forgotten.
	ForgetAfter *int64 `json:"forgetAfter" tf:"forget_after"`
	// The duration in days during which values are learned, and after which signals will be generated for values that weren't learned. If set to 0, a signal will be generated for all new values after the first value is learned.
	LearningDuration *int64 `json:"learningDuration" tf:"learning_duration"`
}

func (*MonitoringRuleSpecOptionsNewValueOptions) DeepCopy

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

func (*MonitoringRuleSpecOptionsNewValueOptions) DeepCopyInto

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

type MonitoringRuleSpecOptionsNewValueOptionsCodec

type MonitoringRuleSpecOptionsNewValueOptionsCodec struct {
}

+k8s:deepcopy-gen=false

func (MonitoringRuleSpecOptionsNewValueOptionsCodec) Decode

func (MonitoringRuleSpecOptionsNewValueOptionsCodec) Encode

func (MonitoringRuleSpecOptionsNewValueOptionsCodec) IsEmpty

type MonitoringRuleSpecQuery

type MonitoringRuleSpecQuery struct {
	// **Deprecated**. It won't be applied anymore.
	// +optional
	// Deprecated
	AgentRule []MonitoringRuleSpecQueryAgentRule `json:"agentRule,omitempty" tf:"agent_rule"`
	// The aggregation type.
	// +optional
	Aggregation *string `json:"aggregation,omitempty" tf:"aggregation"`
	// Field for which the cardinality is measured. Sent as an array.
	// +optional
	DistinctFields []string `json:"distinctFields,omitempty" tf:"distinct_fields"`
	// Fields to group by.
	// +optional
	GroupByFields []string `json:"groupByFields,omitempty" tf:"group_by_fields"`
	// The target field to aggregate over when using the sum or max aggregations.
	// +optional
	Metric *string `json:"metric,omitempty" tf:"metric"`
	// Name of the query.
	// +optional
	Name *string `json:"name,omitempty" tf:"name"`
	// Query to run on logs.
	Query *string `json:"query" tf:"query"`
}

func (*MonitoringRuleSpecQuery) DeepCopy

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

func (*MonitoringRuleSpecQuery) DeepCopyInto

func (in *MonitoringRuleSpecQuery) DeepCopyInto(out *MonitoringRuleSpecQuery)

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

type MonitoringRuleSpecQueryAgentRule added in v0.4.0

type MonitoringRuleSpecQueryAgentRule struct {
	// **Deprecated**. It won't be applied anymore.
	AgentRuleID *string `json:"agentRuleID" tf:"agent_rule_id"`
	// **Deprecated**. It won't be applied anymore.
	Expression *string `json:"expression" tf:"expression"`
}

func (*MonitoringRuleSpecQueryAgentRule) DeepCopy added in v0.4.0

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

func (*MonitoringRuleSpecQueryAgentRule) DeepCopyInto added in v0.4.0

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

type MonitoringRuleSpecResource

type MonitoringRuleSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// Cases for generating signals.
	// +kubebuilder:validation:MaxItems=10
	Case []MonitoringRuleSpecCase `json:"case" tf:"case"`
	// Whether the rule is enabled.
	// +optional
	Enabled *bool `json:"enabled,omitempty" tf:"enabled"`
	// Additional queries to filter matched events before they are processed.
	// +optional
	Filter []MonitoringRuleSpecFilter `json:"filter,omitempty" tf:"filter"`
	// Whether the notifications include the triggering group-by values in their title.
	// +optional
	HasExtendedTitle *bool `json:"hasExtendedTitle,omitempty" tf:"has_extended_title"`
	// Message for generated signals.
	Message *string `json:"message" tf:"message"`
	// The name of the rule.
	Name *string `json:"name" tf:"name"`
	// Options on rules.
	// +optional
	Options *MonitoringRuleSpecOptions `json:"options,omitempty" tf:"options"`
	// Queries for selecting logs which are part of the rule.
	Query []MonitoringRuleSpecQuery `json:"query" tf:"query"`
	// Tags for generated signals.
	// +optional
	Tags []string `json:"tags,omitempty" tf:"tags"`
	// The rule type.
	// +optional
	Type *string `json:"type,omitempty" tf:"type"`
}

func (*MonitoringRuleSpecResource) DeepCopy

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

func (*MonitoringRuleSpecResource) DeepCopyInto

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

type MonitoringRuleStatus

type MonitoringRuleStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*MonitoringRuleStatus) DeepCopy

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

func (*MonitoringRuleStatus) DeepCopyInto

func (in *MonitoringRuleStatus) DeepCopyInto(out *MonitoringRuleStatus)

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