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=plugins.newrelic.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: plugins.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 AlertCondition

type AlertCondition struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              AlertConditionSpec   `json:"spec,omitempty"`
	Status            AlertConditionStatus `json:"status,omitempty"`
}

func (*AlertCondition) DeepCopy

func (in *AlertCondition) DeepCopy() *AlertCondition

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

func (*AlertCondition) DeepCopyInto

func (in *AlertCondition) DeepCopyInto(out *AlertCondition)

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

func (*AlertCondition) DeepCopyObject

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

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

func (*AlertCondition) SetupWebhookWithManager

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

func (*AlertCondition) ValidateCreate

func (r *AlertCondition) ValidateCreate() error

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

func (*AlertCondition) ValidateDelete

func (r *AlertCondition) ValidateDelete() error

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

func (*AlertCondition) ValidateUpdate

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

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

type AlertConditionList

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

AlertConditionList is a list of AlertConditions

func (*AlertConditionList) DeepCopy

func (in *AlertConditionList) DeepCopy() *AlertConditionList

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

func (*AlertConditionList) DeepCopyInto

func (in *AlertConditionList) DeepCopyInto(out *AlertConditionList)

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

func (*AlertConditionList) DeepCopyObject

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

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

type AlertConditionSpec

type AlertConditionSpec struct {
	State *AlertConditionSpecResource `json:"state,omitempty" tf:"-"`

	Resource AlertConditionSpecResource `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 (*AlertConditionSpec) DeepCopy

func (in *AlertConditionSpec) DeepCopy() *AlertConditionSpec

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

func (*AlertConditionSpec) DeepCopyInto

func (in *AlertConditionSpec) DeepCopyInto(out *AlertConditionSpec)

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

type AlertConditionSpecResource

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

	// Whether or not this condition is enabled.
	// +optional
	Enabled *bool `json:"enabled,omitempty" tf:"enabled"`
	// The plugin component IDs to target.
	// +kubebuilder:validation:MinItems=1
	Entities []int64 `json:"entities" tf:"entities"`
	// The plugin metric to evaluate.
	Metric *string `json:"metric" tf:"metric"`
	// The metric description.
	MetricDescription *string `json:"metricDescription" tf:"metric_description"`
	// The title of the condition. Must be between 1 and 64 characters, inclusive.
	Name *string `json:"name" tf:"name"`
	// The GUID of the plugin which produces the metric.
	PluginGuid *string `json:"pluginGuid" tf:"plugin_guid"`
	// The ID of the installed plugin instance which produces the metric.
	PluginID *string `json:"pluginID" tf:"plugin_id"`
	// The ID of the policy where this condition should be used.
	PolicyID *int64 `json:"policyID" tf:"policy_id"`
	// Runbook URL to display in notifications.
	// +optional
	RunbookURL *string `json:"runbookURL,omitempty" tf:"runbook_url"`
	// +kubebuilder:validation:MinItems=1
	Term []AlertConditionSpecTerm `json:"term" tf:"term"`
	// The value function to apply to the metric data.  One of `min`, `max`, `average`, `sample_size`, `total`, or `percent`.
	ValueFunction *string `json:"valueFunction" tf:"value_function"`
}

func (*AlertConditionSpecResource) DeepCopy

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

func (*AlertConditionSpecResource) DeepCopyInto

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

type AlertConditionSpecTerm

type AlertConditionSpecTerm struct {
	// In minutes, must be in the range of 5 to 120, inclusive.
	Duration *int64 `json:"duration" tf:"duration"`
	// One of `above`, `below`, or `equal`. Defaults to equal.
	// +optional
	Operator *string `json:"operator,omitempty" tf:"operator"`
	// One of `critical` or `warning`. Defaults to critical.
	// +optional
	Priority *string `json:"priority,omitempty" tf:"priority"`
	// Must be 0 or greater.
	Threshold *float64 `json:"threshold" tf:"threshold"`
	// One of `all` or `any`.
	TimeFunction *string `json:"timeFunction" tf:"time_function"`
}

func (*AlertConditionSpecTerm) DeepCopy

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

func (*AlertConditionSpecTerm) DeepCopyInto

func (in *AlertConditionSpecTerm) DeepCopyInto(out *AlertConditionSpecTerm)

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

type AlertConditionStatus

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

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

func (*AlertConditionStatus) DeepCopyInto

func (in *AlertConditionStatus) DeepCopyInto(out *AlertConditionStatus)

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