Documentation
¶
Overview ¶
+groupName=infra.newrelic.kubeform.com
Index ¶
- Variables
- func GetDecoder() map[string]jsoniter.ValDecoder
- func GetEncoder() map[string]jsoniter.ValEncoder
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type AlertCondition
- func (in *AlertCondition) DeepCopy() *AlertCondition
- func (in *AlertCondition) DeepCopyInto(out *AlertCondition)
- func (in *AlertCondition) DeepCopyObject() runtime.Object
- func (r *AlertCondition) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *AlertCondition) ValidateCreate() error
- func (r *AlertCondition) ValidateDelete() error
- func (r *AlertCondition) ValidateUpdate(old runtime.Object) error
- type AlertConditionList
- type AlertConditionSpec
- type AlertConditionSpecCritical
- type AlertConditionSpecCriticalCodec
- type AlertConditionSpecResource
- type AlertConditionSpecWarning
- type AlertConditionSpecWarningCodec
- type AlertConditionStatus
Constants ¶
This section is empty.
Variables ¶
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 )
var SchemeGroupVersion = schema.GroupVersion{Group: infra.GroupName, Version: "v1alpha1"}
Functions ¶
func GetDecoder ¶
func GetDecoder() map[string]jsoniter.ValDecoder
func GetEncoder ¶
func GetEncoder() map[string]jsoniter.ValEncoder
func Kind ¶
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 AlertConditionSpecCritical ¶
type AlertConditionSpecCritical struct {
Duration *int64 `json:"duration" tf:"duration"`
// +optional
TimeFunction *string `json:"timeFunction,omitempty" tf:"time_function"`
// +optional
Value *float64 `json:"value,omitempty" tf:"value"`
}
func (*AlertConditionSpecCritical) DeepCopy ¶
func (in *AlertConditionSpecCritical) DeepCopy() *AlertConditionSpecCritical
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertConditionSpecCritical.
func (*AlertConditionSpecCritical) DeepCopyInto ¶
func (in *AlertConditionSpecCritical) DeepCopyInto(out *AlertConditionSpecCritical)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertConditionSpecCriticalCodec ¶
type AlertConditionSpecCriticalCodec struct {
}
+k8s:deepcopy-gen=false
func (AlertConditionSpecCriticalCodec) Decode ¶
func (AlertConditionSpecCriticalCodec) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator)
func (AlertConditionSpecCriticalCodec) Encode ¶
func (AlertConditionSpecCriticalCodec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)
func (AlertConditionSpecCriticalCodec) IsEmpty ¶
func (AlertConditionSpecCriticalCodec) IsEmpty(ptr unsafe.Pointer) bool
type AlertConditionSpecResource ¶
type AlertConditionSpecResource struct {
ID string `json:"id,omitempty" tf:"id,omitempty"`
// The operator used to evaluate the threshold value. Valid values are above, below, and equal. Supported by the infra_metric and infra_process_running condition types.
// +optional
Comparison *string `json:"comparison,omitempty" tf:"comparison"`
// The timestamp the alert condition was created.
// +optional
CreatedAt *int64 `json:"createdAt,omitempty" tf:"created_at"`
// Identifies the threshold parameters for opening a critical alert violation.
// +optional
Critical *AlertConditionSpecCritical `json:"critical,omitempty" tf:"critical"`
// The description of the Infrastructure alert condition.
// +optional
Description *string `json:"description,omitempty" tf:"description"`
// Whether the condition is turned on or off. Valid values are true and false. Defaults to true.
// +optional
Enabled *bool `json:"enabled,omitempty" tf:"enabled"`
// The metric event; for example, SystemSample or StorageSample. Supported by the infra_metric condition type.
// +optional
Event *string `json:"event,omitempty" tf:"event"`
// For alerts on integrations, use this instead of event. Supported by the infra_metric condition type.
// +optional
IntegrationProvider *string `json:"integrationProvider,omitempty" tf:"integration_provider"`
// The Infrastructure alert condition's name.
Name *string `json:"name" tf:"name"`
// The ID of the alert policy where this condition should be used.
PolicyID *int64 `json:"policyID" tf:"policy_id"`
// Any filters applied to processes; for example: commandName = 'java'. Supported by the infra_process_running condition type.
// +optional
ProcessWhere *string `json:"processWhere,omitempty" tf:"process_where"`
// Runbook URL to display in notifications.
// +optional
RunbookURL *string `json:"runbookURL,omitempty" tf:"runbook_url"`
// The attribute name to identify the metric being targeted; for example, cpuPercent, diskFreePercent, or memoryResidentSizeBytes. The underlying API will automatically populate this value for Infrastructure integrations (for example diskFreePercent), so make sure to explicitly include this value to avoid diff issues. Supported by the infra_metric condition type.
// +optional
Select *string `json:"select,omitempty" tf:"select"`
// The type of Infrastructure alert condition. Valid values are infra_process_running, infra_metric, and infra_host_not_reporting.
Type *string `json:"type" tf:"type"`
// The timestamp the alert condition was last updated.
// +optional
UpdatedAt *int64 `json:"updatedAt,omitempty" tf:"updated_at"`
// Determines how much time, in hours, will pass before a violation is automatically closed. Valid values are 1, 2, 4, 8, 12, 24, 48, or 72
// +optional
ViolationCloseTimer *int64 `json:"violationCloseTimer,omitempty" tf:"violation_close_timer"`
// Identifies the threshold parameters for opening a warning alert violation.
// +optional
Warning *AlertConditionSpecWarning `json:"warning,omitempty" tf:"warning"`
// If applicable, this identifies any Infrastructure host filters used; for example: hostname LIKE '%cassandra%'.
// +optional
Where *string `json:"where,omitempty" tf:"where"`
}
func (*AlertConditionSpecResource) DeepCopy ¶
func (in *AlertConditionSpecResource) DeepCopy() *AlertConditionSpecResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertConditionSpecResource.
func (*AlertConditionSpecResource) DeepCopyInto ¶
func (in *AlertConditionSpecResource) DeepCopyInto(out *AlertConditionSpecResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertConditionSpecWarning ¶
type AlertConditionSpecWarning struct {
Duration *int64 `json:"duration" tf:"duration"`
// +optional
TimeFunction *string `json:"timeFunction,omitempty" tf:"time_function"`
// +optional
Value *float64 `json:"value,omitempty" tf:"value"`
}
func (*AlertConditionSpecWarning) DeepCopy ¶
func (in *AlertConditionSpecWarning) DeepCopy() *AlertConditionSpecWarning
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertConditionSpecWarning.
func (*AlertConditionSpecWarning) DeepCopyInto ¶
func (in *AlertConditionSpecWarning) DeepCopyInto(out *AlertConditionSpecWarning)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertConditionSpecWarningCodec ¶
type AlertConditionSpecWarningCodec struct {
}
+k8s:deepcopy-gen=false
func (AlertConditionSpecWarningCodec) Decode ¶
func (AlertConditionSpecWarningCodec) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator)
func (AlertConditionSpecWarningCodec) Encode ¶
func (AlertConditionSpecWarningCodec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)
func (AlertConditionSpecWarningCodec) IsEmpty ¶
func (AlertConditionSpecWarningCodec) IsEmpty(ptr unsafe.Pointer) bool
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 ¶
func (in *AlertConditionStatus) DeepCopy() *AlertConditionStatus
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.
Source Files
¶
- alert_condition_types.go
- alert_condition_webhook.go
- codec.go
- doc.go
- register.go
- zz_generated.deepcopy.go