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=events.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: events.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 ToMetricsRule

type ToMetricsRule struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ToMetricsRuleSpec   `json:"spec,omitempty"`
	Status            ToMetricsRuleStatus `json:"status,omitempty"`
}

func (*ToMetricsRule) DeepCopy

func (in *ToMetricsRule) DeepCopy() *ToMetricsRule

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

func (*ToMetricsRule) DeepCopyInto

func (in *ToMetricsRule) DeepCopyInto(out *ToMetricsRule)

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

func (*ToMetricsRule) DeepCopyObject

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

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

func (*ToMetricsRule) SetupWebhookWithManager

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

func (*ToMetricsRule) ValidateCreate

func (r *ToMetricsRule) ValidateCreate() error

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

func (*ToMetricsRule) ValidateDelete

func (r *ToMetricsRule) ValidateDelete() error

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

func (*ToMetricsRule) ValidateUpdate

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

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

type ToMetricsRuleList

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

ToMetricsRuleList is a list of ToMetricsRules

func (*ToMetricsRuleList) DeepCopy

func (in *ToMetricsRuleList) DeepCopy() *ToMetricsRuleList

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

func (*ToMetricsRuleList) DeepCopyInto

func (in *ToMetricsRuleList) DeepCopyInto(out *ToMetricsRuleList)

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

func (*ToMetricsRuleList) DeepCopyObject

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

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

type ToMetricsRuleSpec

type ToMetricsRuleSpec struct {
	State *ToMetricsRuleSpecResource `json:"state,omitempty" tf:"-"`

	Resource ToMetricsRuleSpecResource `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 (*ToMetricsRuleSpec) DeepCopy

func (in *ToMetricsRuleSpec) DeepCopy() *ToMetricsRuleSpec

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

func (*ToMetricsRuleSpec) DeepCopyInto

func (in *ToMetricsRuleSpec) DeepCopyInto(out *ToMetricsRuleSpec)

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

type ToMetricsRuleSpecResource

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

	// Account with the event and where the metrics will be put.
	// +optional
	AccountID *int64 `json:"accountID,omitempty" tf:"account_id"`
	// Provides additional information about the rule.
	// +optional
	Description *string `json:"description,omitempty" tf:"description"`
	// True means this rule is enabled. False means the rule is currently not creating metrics.
	// +optional
	Enabled *bool `json:"enabled,omitempty" tf:"enabled"`
	// The name of the rule. This must be unique within an account.
	Name *string `json:"name" tf:"name"`
	// Explains how to create metrics from events.
	Nrql *string `json:"nrql" tf:"nrql"`
	// The id, uniquely identifying the rule.
	// +optional
	RuleID *string `json:"ruleID,omitempty" tf:"rule_id"`
}

func (*ToMetricsRuleSpecResource) DeepCopy

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

func (*ToMetricsRuleSpecResource) DeepCopyInto

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

type ToMetricsRuleStatus

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

func (in *ToMetricsRuleStatus) DeepCopy() *ToMetricsRuleStatus

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

func (*ToMetricsRuleStatus) DeepCopyInto

func (in *ToMetricsRuleStatus) DeepCopyInto(out *ToMetricsRuleStatus)

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