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: 14 Imported by: 0

Documentation

Overview

+groupName=alert.wavefront.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: alert.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 Alert

type Alert struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              AlertSpec   `json:"spec,omitempty"`
	Status            AlertStatus `json:"status,omitempty"`
}

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.

func (*Alert) SetupWebhookWithManager

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

func (*Alert) ValidateCreate

func (r *Alert) ValidateCreate() error

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

func (*Alert) ValidateDelete

func (r *Alert) ValidateDelete() error

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

func (*Alert) ValidateUpdate

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

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

type AlertList

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

AlertList is a list of Alerts

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 AlertSpec

type AlertSpec struct {
	State *AlertSpecResource `json:"state,omitempty" tf:"-"`

	Resource AlertSpecResource `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 (*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.

type AlertSpecResource

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

	// +optional
	AdditionalInformation *string `json:"additionalInformation,omitempty" tf:"additional_information"`
	// +optional
	AlertType *string `json:"alertType,omitempty" tf:"alert_type"`
	// +optional
	CanModify []string `json:"canModify,omitempty" tf:"can_modify"`
	// +optional
	CanView []string `json:"canView,omitempty" tf:"can_view"`
	// +optional
	Condition *string `json:"condition,omitempty" tf:"condition"`
	// +optional
	Conditions *map[string]string `json:"conditions,omitempty" tf:"conditions"`
	// +optional
	DisplayExpression *string `json:"displayExpression,omitempty" tf:"display_expression"`
	Minutes           *int64  `json:"minutes" tf:"minutes"`
	Name              *string `json:"name" tf:"name"`
	// +optional
	NotificationResendFrequencyMinutes *int64 `json:"notificationResendFrequencyMinutes,omitempty" tf:"notification_resend_frequency_minutes"`
	// +optional
	ResolveAfterMinutes *int64 `json:"resolveAfterMinutes,omitempty" tf:"resolve_after_minutes"`
	// +optional
	Severity *string  `json:"severity,omitempty" tf:"severity"`
	Tags     []string `json:"tags" tf:"tags"`
	// +optional
	Target *string `json:"target,omitempty" tf:"target"`
	// +optional
	ThresholdTargets *map[string]string `json:"thresholdTargets,omitempty" tf:"threshold_targets"`
}

func (*AlertSpecResource) DeepCopy

func (in *AlertSpecResource) DeepCopy() *AlertSpecResource

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

func (*AlertSpecResource) DeepCopyInto

func (in *AlertSpecResource) DeepCopyInto(out *AlertSpecResource)

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

type AlertStatus

type AlertStatus 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 (*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 Target

type Target struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              TargetSpec   `json:"spec,omitempty"`
	Status            TargetStatus `json:"status,omitempty"`
}

func (*Target) DeepCopy

func (in *Target) DeepCopy() *Target

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

func (*Target) DeepCopyInto

func (in *Target) DeepCopyInto(out *Target)

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

func (*Target) DeepCopyObject

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

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

func (*Target) SetupWebhookWithManager

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

func (*Target) ValidateCreate

func (r *Target) ValidateCreate() error

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

func (*Target) ValidateDelete

func (r *Target) ValidateDelete() error

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

func (*Target) ValidateUpdate

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

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

type TargetList

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

TargetList is a list of Targets

func (*TargetList) DeepCopy

func (in *TargetList) DeepCopy() *TargetList

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

func (*TargetList) DeepCopyInto

func (in *TargetList) DeepCopyInto(out *TargetList)

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

func (*TargetList) DeepCopyObject

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

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

type TargetSpec

type TargetSpec struct {
	State *TargetSpecResource `json:"state,omitempty" tf:"-"`

	Resource TargetSpecResource `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 (*TargetSpec) DeepCopy

func (in *TargetSpec) DeepCopy() *TargetSpec

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

func (*TargetSpec) DeepCopyInto

func (in *TargetSpec) DeepCopyInto(out *TargetSpec)

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

type TargetSpecResource

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

	// +optional
	ContentType *string `json:"contentType,omitempty" tf:"content_type"`
	// +optional
	CustomHeaders *map[string]string `json:"customHeaders,omitempty" tf:"custom_headers"`
	Description   *string            `json:"description" tf:"description"`
	// +optional
	EmailSubject *string `json:"emailSubject,omitempty" tf:"email_subject"`
	// +optional
	IsHTMLContent *bool `json:"isHTMLContent,omitempty" tf:"is_html_content"`
	// +optional
	Method    *string `json:"method,omitempty" tf:"method"`
	Name      *string `json:"name" tf:"name"`
	Recipient *string `json:"recipient" tf:"recipient"`
	// +optional
	Route []TargetSpecRoute `json:"route,omitempty" tf:"route"`
	// +optional
	TargetID *string  `json:"targetID,omitempty" tf:"target_id"`
	Template *string  `json:"template" tf:"template"`
	Triggers []string `json:"triggers" tf:"triggers"`
}

func (*TargetSpecResource) DeepCopy

func (in *TargetSpecResource) DeepCopy() *TargetSpecResource

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

func (*TargetSpecResource) DeepCopyInto

func (in *TargetSpecResource) DeepCopyInto(out *TargetSpecResource)

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

type TargetSpecRoute

type TargetSpecRoute struct {
	// +optional
	Filter *map[string]string `json:"filter,omitempty" tf:"filter"`
	Method *string            `json:"method" tf:"method"`
	Target *string            `json:"target" tf:"target"`
}

func (*TargetSpecRoute) DeepCopy

func (in *TargetSpecRoute) DeepCopy() *TargetSpecRoute

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

func (*TargetSpecRoute) DeepCopyInto

func (in *TargetSpecRoute) DeepCopyInto(out *TargetSpecRoute)

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

type TargetStatus

type TargetStatus 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 (*TargetStatus) DeepCopy

func (in *TargetStatus) DeepCopy() *TargetStatus

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

func (*TargetStatus) DeepCopyInto

func (in *TargetStatus) DeepCopyInto(out *TargetStatus)

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