Documentation ¶
Overview ¶
+groupName=alert.grafana.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 Notification
- func (in *Notification) DeepCopy() *Notification
- func (in *Notification) DeepCopyInto(out *Notification)
- func (in *Notification) DeepCopyObject() runtime.Object
- func (r *Notification) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Notification) ValidateCreate() error
- func (r *Notification) ValidateDelete() error
- func (r *Notification) ValidateUpdate(old runtime.Object) error
- type NotificationList
- type NotificationSpec
- type NotificationSpecResource
- type NotificationStatus
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: alert.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 Notification ¶
type Notification struct { metav1.TypeMeta `json:",inline,omitempty"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NotificationSpec `json:"spec,omitempty"` Status NotificationStatus `json:"status,omitempty"` }
func (*Notification) DeepCopy ¶
func (in *Notification) DeepCopy() *Notification
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Notification.
func (*Notification) DeepCopyInto ¶
func (in *Notification) DeepCopyInto(out *Notification)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Notification) DeepCopyObject ¶
func (in *Notification) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Notification) SetupWebhookWithManager ¶
func (r *Notification) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*Notification) ValidateCreate ¶
func (r *Notification) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Notification) ValidateDelete ¶
func (r *Notification) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*Notification) ValidateUpdate ¶
func (r *Notification) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type NotificationList ¶
type NotificationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // Items is a list of Notification CRD objects Items []Notification `json:"items,omitempty"` }
NotificationList is a list of Notifications
func (*NotificationList) DeepCopy ¶
func (in *NotificationList) DeepCopy() *NotificationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationList.
func (*NotificationList) DeepCopyInto ¶
func (in *NotificationList) DeepCopyInto(out *NotificationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NotificationList) DeepCopyObject ¶
func (in *NotificationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NotificationSpec ¶
type NotificationSpec struct { State *NotificationSpecResource `json:"state,omitempty" tf:"-"` Resource NotificationSpecResource `json:"resource" tf:"resource"` UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"` TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"` ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"` SecretRef *core.LocalObjectReference `json:"secretRef,omitempty" tf:"-"` BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"` }
func (*NotificationSpec) DeepCopy ¶
func (in *NotificationSpec) DeepCopy() *NotificationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationSpec.
func (*NotificationSpec) DeepCopyInto ¶
func (in *NotificationSpec) DeepCopyInto(out *NotificationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NotificationSpecResource ¶
type NotificationSpecResource struct { ID string `json:"id,omitempty" tf:"id,omitempty"` // Whether to disable sending resolve messages. // +optional DisableResolveMessage *bool `json:"disableResolveMessage,omitempty" tf:"disable_resolve_message"` // Frequency of alert reminders. Frequency must be set if reminders are enabled. // +optional Frequency *string `json:"frequency,omitempty" tf:"frequency"` // Is this the default channel for all your alerts. // +optional IsDefault *bool `json:"isDefault,omitempty" tf:"is_default"` // The name of the alert notification channel. Name *string `json:"name" tf:"name"` // Additional secure settings, for full reference lookup [Grafana Supported Settings documentation](https://grafana.com/docs/grafana/latest/administration/provisioning/#supported-settings). // +optional SecureSettings map[string]string `json:"-" sensitive:"true" tf:"secure_settings"` // Whether to send reminders for triggered alerts. // +optional SendReminder *bool `json:"sendReminder,omitempty" tf:"send_reminder"` // Additional settings, for full reference see [Grafana HTTP API documentation](https://grafana.com/docs/grafana/latest/http_api/alerting_notification_channels/). // +optional Settings map[string]string `json:"settings,omitempty" tf:"settings"` // The type of the alert notification channel. Type *string `json:"type" tf:"type"` // Unique identifier. If unset, this will be automatically generated. // +optional Uid *string `json:"uid,omitempty" tf:"uid"` }
func (*NotificationSpecResource) DeepCopy ¶
func (in *NotificationSpecResource) DeepCopy() *NotificationSpecResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationSpecResource.
func (*NotificationSpecResource) DeepCopyInto ¶
func (in *NotificationSpecResource) DeepCopyInto(out *NotificationSpecResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NotificationStatus ¶
type NotificationStatus 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 (*NotificationStatus) DeepCopy ¶
func (in *NotificationStatus) DeepCopy() *NotificationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationStatus.
func (*NotificationStatus) DeepCopyInto ¶
func (in *NotificationStatus) DeepCopyInto(out *NotificationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.