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=monitoring.oci.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: monitoring.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 Alarm

type Alarm struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              AlarmSpec   `json:"spec,omitempty"`
	Status            AlarmStatus `json:"status,omitempty"`
}

func (*Alarm) DeepCopy

func (in *Alarm) DeepCopy() *Alarm

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

func (*Alarm) DeepCopyInto

func (in *Alarm) DeepCopyInto(out *Alarm)

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

func (*Alarm) DeepCopyObject

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

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

func (*Alarm) SetupWebhookWithManager

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

func (*Alarm) ValidateCreate

func (r *Alarm) ValidateCreate() error

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

func (*Alarm) ValidateDelete

func (r *Alarm) ValidateDelete() error

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

func (*Alarm) ValidateUpdate

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

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

type AlarmList

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

AlarmList is a list of Alarms

func (*AlarmList) DeepCopy

func (in *AlarmList) DeepCopy() *AlarmList

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

func (*AlarmList) DeepCopyInto

func (in *AlarmList) DeepCopyInto(out *AlarmList)

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

func (*AlarmList) DeepCopyObject

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

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

type AlarmSpec

type AlarmSpec struct {
	State *AlarmSpecResource `json:"state,omitempty" tf:"-"`

	Resource AlarmSpecResource `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 (*AlarmSpec) DeepCopy

func (in *AlarmSpec) DeepCopy() *AlarmSpec

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

func (*AlarmSpec) DeepCopyInto

func (in *AlarmSpec) DeepCopyInto(out *AlarmSpec)

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

type AlarmSpecResource

type AlarmSpecResource struct {
	Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"`

	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// +optional
	Body          *string `json:"body,omitempty" tf:"body"`
	CompartmentID *string `json:"compartmentID" tf:"compartment_id"`
	// +optional
	DefinedTags  map[string]string `json:"definedTags,omitempty" tf:"defined_tags"`
	Destinations []string          `json:"destinations" tf:"destinations"`
	DisplayName  *string           `json:"displayName" tf:"display_name"`
	// +optional
	FreeformTags map[string]string `json:"freeformTags,omitempty" tf:"freeform_tags"`
	IsEnabled    *bool             `json:"isEnabled" tf:"is_enabled"`
	// +optional
	MessageFormat       *string `json:"messageFormat,omitempty" tf:"message_format"`
	MetricCompartmentID *string `json:"metricCompartmentID" tf:"metric_compartment_id"`
	// +optional
	MetricCompartmentIDInSubtree *bool   `json:"metricCompartmentIDInSubtree,omitempty" tf:"metric_compartment_id_in_subtree"`
	Namespace                    *string `json:"namespace" tf:"namespace"`
	// +optional
	PendingDuration *string `json:"pendingDuration,omitempty" tf:"pending_duration"`
	Query           *string `json:"query" tf:"query"`
	// +optional
	RepeatNotificationDuration *string `json:"repeatNotificationDuration,omitempty" tf:"repeat_notification_duration"`
	// +optional
	Resolution *string `json:"resolution,omitempty" tf:"resolution"`
	// +optional
	ResourceGroup *string `json:"resourceGroup,omitempty" tf:"resource_group"`
	Severity      *string `json:"severity" tf:"severity"`
	// +optional
	State *string `json:"state,omitempty" tf:"state"`
	// +optional
	Suppression *AlarmSpecSuppression `json:"suppression,omitempty" tf:"suppression"`
	// +optional
	TimeCreated *string `json:"timeCreated,omitempty" tf:"time_created"`
	// +optional
	TimeUpdated *string `json:"timeUpdated,omitempty" tf:"time_updated"`
}

func (*AlarmSpecResource) DeepCopy

func (in *AlarmSpecResource) DeepCopy() *AlarmSpecResource

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

func (*AlarmSpecResource) DeepCopyInto

func (in *AlarmSpecResource) DeepCopyInto(out *AlarmSpecResource)

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

type AlarmSpecSuppression

type AlarmSpecSuppression struct {
	// +optional
	Description       *string `json:"description,omitempty" tf:"description"`
	TimeSuppressFrom  *string `json:"timeSuppressFrom" tf:"time_suppress_from"`
	TimeSuppressUntil *string `json:"timeSuppressUntil" tf:"time_suppress_until"`
}

func (*AlarmSpecSuppression) DeepCopy

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

func (*AlarmSpecSuppression) DeepCopyInto

func (in *AlarmSpecSuppression) DeepCopyInto(out *AlarmSpecSuppression)

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

type AlarmSpecSuppressionCodec

type AlarmSpecSuppressionCodec struct {
}

+k8s:deepcopy-gen=false

func (AlarmSpecSuppressionCodec) Decode

func (AlarmSpecSuppressionCodec) Encode

func (AlarmSpecSuppressionCodec) IsEmpty

type AlarmStatus

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

func (in *AlarmStatus) DeepCopy() *AlarmStatus

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

func (*AlarmStatus) DeepCopyInto

func (in *AlarmStatus) DeepCopyInto(out *AlarmStatus)

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