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=service.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: service.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 LevelObjective

type LevelObjective struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              LevelObjectiveSpec   `json:"spec,omitempty"`
	Status            LevelObjectiveStatus `json:"status,omitempty"`
}

func (*LevelObjective) DeepCopy

func (in *LevelObjective) DeepCopy() *LevelObjective

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

func (*LevelObjective) DeepCopyInto

func (in *LevelObjective) DeepCopyInto(out *LevelObjective)

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

func (*LevelObjective) DeepCopyObject

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

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

func (*LevelObjective) SetupWebhookWithManager

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

func (*LevelObjective) ValidateCreate

func (r *LevelObjective) ValidateCreate() error

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

func (*LevelObjective) ValidateDelete

func (r *LevelObjective) ValidateDelete() error

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

func (*LevelObjective) ValidateUpdate

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

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

type LevelObjectiveList

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

LevelObjectiveList is a list of LevelObjectives

func (*LevelObjectiveList) DeepCopy

func (in *LevelObjectiveList) DeepCopy() *LevelObjectiveList

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

func (*LevelObjectiveList) DeepCopyInto

func (in *LevelObjectiveList) DeepCopyInto(out *LevelObjectiveList)

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

func (*LevelObjectiveList) DeepCopyObject

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

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

type LevelObjectiveSpec

type LevelObjectiveSpec struct {
	State *LevelObjectiveSpecResource `json:"state,omitempty" tf:"-"`

	Resource LevelObjectiveSpecResource `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 (*LevelObjectiveSpec) DeepCopy

func (in *LevelObjectiveSpec) DeepCopy() *LevelObjectiveSpec

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

func (*LevelObjectiveSpec) DeepCopyInto

func (in *LevelObjectiveSpec) DeepCopyInto(out *LevelObjectiveSpec)

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

type LevelObjectiveSpecQuery

type LevelObjectiveSpecQuery struct {
	// The sum of the `total` events.
	Denominator *string `json:"denominator" tf:"denominator"`
	// The sum of all the `good` events.
	Numerator *string `json:"numerator" tf:"numerator"`
}

func (*LevelObjectiveSpecQuery) DeepCopy

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

func (*LevelObjectiveSpecQuery) DeepCopyInto

func (in *LevelObjectiveSpecQuery) DeepCopyInto(out *LevelObjectiveSpecQuery)

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

type LevelObjectiveSpecQueryCodec

type LevelObjectiveSpecQueryCodec struct {
}

+k8s:deepcopy-gen=false

func (LevelObjectiveSpecQueryCodec) Decode

func (LevelObjectiveSpecQueryCodec) Encode

func (LevelObjectiveSpecQueryCodec) IsEmpty

type LevelObjectiveSpecResource

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

	// A description of this service level objective.
	// +optional
	Description *string `json:"description,omitempty" tf:"description"`
	// A boolean indicating whether this monitor can be deleted even if it’s referenced by other resources (e.g. dashboards).
	// +optional
	ForceDelete *bool `json:"forceDelete,omitempty" tf:"force_delete"`
	// A static set of groups to filter monitor-based SLOs
	// +optional
	Groups []string `json:"groups,omitempty" tf:"groups"`
	// A static set of monitor IDs to use as part of the SLO
	// +optional
	MonitorIDS []int64 `json:"monitorIDS,omitempty" tf:"monitor_ids"`
	// Name of Datadog service level objective
	Name *string `json:"name" tf:"name"`
	// The metric query of good / total events
	// +optional
	Query *LevelObjectiveSpecQuery `json:"query,omitempty" tf:"query"`
	// A list of tags to associate with your service level objective. This can help you categorize and filter service level objectives in the service level objectives page of the UI. Note: it's not currently possible to filter by these tags when querying via the API
	// +optional
	Tags []string `json:"tags,omitempty" tf:"tags"`
	// A list of thresholds and targets that define the service level objectives from the provided SLIs.
	Thresholds []LevelObjectiveSpecThresholds `json:"thresholds" tf:"thresholds"`
	// The type of the service level objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API [documentation page](https://docs.datadoghq.com/api/v1/service-level-objectives/#create-a-slo-object).
	Type *string `json:"type" tf:"type"`
	// Whether or not to validate the SLO.
	// +optional
	Validate *bool `json:"validate,omitempty" tf:"validate"`
}

func (*LevelObjectiveSpecResource) DeepCopy

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

func (*LevelObjectiveSpecResource) DeepCopyInto

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

type LevelObjectiveSpecThresholds

type LevelObjectiveSpecThresholds struct {
	// The objective's target in`[0,100]`.
	Target *float64 `json:"target" tf:"target"`
	// A string representation of the target that indicates its precision. It uses trailing zeros to show significant decimal places (e.g. `98.00`).
	// +optional
	TargetDisplay *string `json:"targetDisplay,omitempty" tf:"target_display"`
	// The time frame for the objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page.
	Timeframe *string `json:"timeframe" tf:"timeframe"`
	// The objective's warning value in `[0,100]`. This must be greater than the target value.
	// +optional
	Warning *float64 `json:"warning,omitempty" tf:"warning"`
	// A string representation of the warning target (see the description of the target_display field for details).
	// +optional
	WarningDisplay *string `json:"warningDisplay,omitempty" tf:"warning_display"`
}

func (*LevelObjectiveSpecThresholds) DeepCopy

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

func (*LevelObjectiveSpecThresholds) DeepCopyInto

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

type LevelObjectiveStatus

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

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

func (*LevelObjectiveStatus) DeepCopyInto

func (in *LevelObjectiveStatus) DeepCopyInto(out *LevelObjectiveStatus)

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