v1alpha1

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

+groupName=metric.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: metric.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 Metadata

type Metadata struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              MetadataSpec   `json:"spec,omitempty"`
	Status            MetadataStatus `json:"status,omitempty"`
}

func (*Metadata) DeepCopy

func (in *Metadata) DeepCopy() *Metadata

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

func (*Metadata) DeepCopyInto

func (in *Metadata) DeepCopyInto(out *Metadata)

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

func (*Metadata) DeepCopyObject

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

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

func (*Metadata) SetupWebhookWithManager

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

func (*Metadata) ValidateCreate

func (r *Metadata) ValidateCreate() error

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

func (*Metadata) ValidateDelete

func (r *Metadata) ValidateDelete() error

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

func (*Metadata) ValidateUpdate

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

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

type MetadataList

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

MetadataList is a list of Metadatas

func (*MetadataList) DeepCopy

func (in *MetadataList) DeepCopy() *MetadataList

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

func (*MetadataList) DeepCopyInto

func (in *MetadataList) DeepCopyInto(out *MetadataList)

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

func (*MetadataList) DeepCopyObject

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

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

type MetadataSpec

type MetadataSpec struct {
	State *MetadataSpecResource `json:"state,omitempty" tf:"-"`

	Resource MetadataSpecResource `json:"resource" tf:"resource"`

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

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

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

func (*MetadataSpec) DeepCopy

func (in *MetadataSpec) DeepCopy() *MetadataSpec

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

func (*MetadataSpec) DeepCopyInto

func (in *MetadataSpec) DeepCopyInto(out *MetadataSpec)

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

type MetadataSpecResource

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

	// A description of the metric.
	// +optional
	Description *string `json:"description,omitempty" tf:"description"`
	// The name of the metric.
	Metric *string `json:"metric" tf:"metric"`
	// Per unit of the metric such as `second` in `bytes per second`.
	// +optional
	PerUnit *string `json:"perUnit,omitempty" tf:"per_unit"`
	// A short name of the metric.
	// +optional
	ShortName *string `json:"shortName,omitempty" tf:"short_name"`
	// If applicable, statsd flush interval in seconds for the metric.
	// +optional
	StatsdInterval *int64 `json:"statsdInterval,omitempty" tf:"statsd_interval"`
	// Type of the metric.
	// +optional
	Type *string `json:"type,omitempty" tf:"type"`
	// Primary unit of the metric such as `byte` or `operation`.
	// +optional
	Unit *string `json:"unit,omitempty" tf:"unit"`
}

func (*MetadataSpecResource) DeepCopy

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

func (*MetadataSpecResource) DeepCopyInto

func (in *MetadataSpecResource) DeepCopyInto(out *MetadataSpecResource)

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

type MetadataStatus

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

func (in *MetadataStatus) DeepCopy() *MetadataStatus

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

func (*MetadataStatus) DeepCopyInto

func (in *MetadataStatus) DeepCopyInto(out *MetadataStatus)

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

type TagConfiguration

type TagConfiguration struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              TagConfigurationSpec   `json:"spec,omitempty"`
	Status            TagConfigurationStatus `json:"status,omitempty"`
}

func (*TagConfiguration) DeepCopy

func (in *TagConfiguration) DeepCopy() *TagConfiguration

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

func (*TagConfiguration) DeepCopyInto

func (in *TagConfiguration) DeepCopyInto(out *TagConfiguration)

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

func (*TagConfiguration) DeepCopyObject

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

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

func (*TagConfiguration) SetupWebhookWithManager

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

func (*TagConfiguration) ValidateCreate

func (r *TagConfiguration) ValidateCreate() error

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

func (*TagConfiguration) ValidateDelete

func (r *TagConfiguration) ValidateDelete() error

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

func (*TagConfiguration) ValidateUpdate

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

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

type TagConfigurationList

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

TagConfigurationList is a list of TagConfigurations

func (*TagConfigurationList) DeepCopy

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

func (*TagConfigurationList) DeepCopyInto

func (in *TagConfigurationList) DeepCopyInto(out *TagConfigurationList)

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

func (*TagConfigurationList) DeepCopyObject

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

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

type TagConfigurationSpec

type TagConfigurationSpec struct {
	State *TagConfigurationSpecResource `json:"state,omitempty" tf:"-"`

	Resource TagConfigurationSpecResource `json:"resource" tf:"resource"`

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

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

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

func (*TagConfigurationSpec) DeepCopy

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

func (*TagConfigurationSpec) DeepCopyInto

func (in *TagConfigurationSpec) DeepCopyInto(out *TagConfigurationSpec)

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

type TagConfigurationSpecResource

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

	// Toggle to include/exclude percentiles for a distribution metric. Defaults to false. Can only be applied to metrics that have a metric_type of distribution.
	// +optional
	IncludePercentiles *bool `json:"includePercentiles,omitempty" tf:"include_percentiles"`
	// The metric name for this resource.
	MetricName *string `json:"metricName" tf:"metric_name"`
	// The metric's type. This field can't be updated after creation.
	MetricType *string `json:"metricType" tf:"metric_type"`
	// A list of tag keys that will be queryable for your metric.
	Tags []string `json:"tags" tf:"tags"`
}

func (*TagConfigurationSpecResource) DeepCopy

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

func (*TagConfigurationSpecResource) DeepCopyInto

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

type TagConfigurationStatus

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

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

func (*TagConfigurationStatus) DeepCopyInto

func (in *TagConfigurationStatus) DeepCopyInto(out *TagConfigurationStatus)

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