Documentation ¶
Overview ¶
+groupName=alert.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 Channel
- func (in *Channel) DeepCopy() *Channel
- func (in *Channel) DeepCopyInto(out *Channel)
- func (in *Channel) DeepCopyObject() runtime.Object
- func (r *Channel) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Channel) ValidateCreate() error
- func (r *Channel) ValidateDelete() error
- func (r *Channel) ValidateUpdate(old runtime.Object) error
- type ChannelList
- type ChannelSpec
- type ChannelSpecConfig
- type ChannelSpecConfigCodec
- type ChannelSpecResource
- type ChannelStatus
- type Condition
- func (in *Condition) DeepCopy() *Condition
- func (in *Condition) DeepCopyInto(out *Condition)
- func (in *Condition) DeepCopyObject() runtime.Object
- func (r *Condition) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Condition) ValidateCreate() error
- func (r *Condition) ValidateDelete() error
- func (r *Condition) ValidateUpdate(old runtime.Object) error
- type ConditionList
- type ConditionSpec
- type ConditionSpecResource
- type ConditionSpecTerm
- type ConditionStatus
- type MutingRule
- func (in *MutingRule) DeepCopy() *MutingRule
- func (in *MutingRule) DeepCopyInto(out *MutingRule)
- func (in *MutingRule) DeepCopyObject() runtime.Object
- func (r *MutingRule) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *MutingRule) ValidateCreate() error
- func (r *MutingRule) ValidateDelete() error
- func (r *MutingRule) ValidateUpdate(old runtime.Object) error
- type MutingRuleList
- type MutingRuleSpec
- type MutingRuleSpecCondition
- type MutingRuleSpecConditionCodec
- type MutingRuleSpecConditionConditions
- type MutingRuleSpecResource
- type MutingRuleSpecSchedule
- type MutingRuleSpecScheduleCodec
- type MutingRuleStatus
- type Policy
- func (in *Policy) DeepCopy() *Policy
- func (in *Policy) DeepCopyInto(out *Policy)
- func (in *Policy) DeepCopyObject() runtime.Object
- func (r *Policy) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Policy) ValidateCreate() error
- func (r *Policy) ValidateDelete() error
- func (r *Policy) ValidateUpdate(old runtime.Object) error
- type PolicyChannel
- func (in *PolicyChannel) DeepCopy() *PolicyChannel
- func (in *PolicyChannel) DeepCopyInto(out *PolicyChannel)
- func (in *PolicyChannel) DeepCopyObject() runtime.Object
- func (r *PolicyChannel) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *PolicyChannel) ValidateCreate() error
- func (r *PolicyChannel) ValidateDelete() error
- func (r *PolicyChannel) ValidateUpdate(old runtime.Object) error
- type PolicyChannelList
- type PolicyChannelSpec
- type PolicyChannelSpecResource
- type PolicyChannelStatus
- type PolicyList
- type PolicySpec
- type PolicySpecResource
- type PolicyStatus
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 Channel ¶
type Channel struct { metav1.TypeMeta `json:",inline,omitempty"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ChannelSpec `json:"spec,omitempty"` Status ChannelStatus `json:"status,omitempty"` }
func (*Channel) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Channel.
func (*Channel) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Channel) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Channel) SetupWebhookWithManager ¶
func (*Channel) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Channel) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type ChannelList ¶
type ChannelList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // Items is a list of Channel CRD objects Items []Channel `json:"items,omitempty"` }
ChannelList is a list of Channels
func (*ChannelList) DeepCopy ¶
func (in *ChannelList) DeepCopy() *ChannelList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChannelList.
func (*ChannelList) DeepCopyInto ¶
func (in *ChannelList) DeepCopyInto(out *ChannelList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ChannelList) DeepCopyObject ¶
func (in *ChannelList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ChannelSpec ¶
type ChannelSpec struct { State *ChannelSpecResource `json:"state,omitempty" tf:"-"` Resource ChannelSpecResource `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 (*ChannelSpec) DeepCopy ¶
func (in *ChannelSpec) DeepCopy() *ChannelSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChannelSpec.
func (*ChannelSpec) DeepCopyInto ¶
func (in *ChannelSpec) DeepCopyInto(out *ChannelSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ChannelSpecConfig ¶
type ChannelSpecConfig struct { // The API key for integrating with OpsGenie. // +optional ApiKey *string `json:"-" sensitive:"true" tf:"api_key"` // Specifies an authentication password for use with a channel. Supported by the webhook channel type. // +optional AuthPassword *string `json:"-" sensitive:"true" tf:"auth_password"` // Specifies an authentication method for use with a channel. Supported by the webhook channel type. Only HTTP basic authentication is currently supported via the value BASIC. // +optional AuthType *string `json:"-" sensitive:"true" tf:"auth_type"` // Specifies an authentication username for use with a channel. Supported by the webhook channel type. // +optional AuthUsername *string `json:"authUsername,omitempty" tf:"auth_username"` // The base URL of the webhook destination. // +optional BaseURL *string `json:"-" sensitive:"true" tf:"base_url"` // The Slack channel to send notifications to. // +optional Channel *string `json:"channel,omitempty" tf:"channel"` // A map of key/value pairs that represents extra HTTP headers to be sent along with the webhook payload. // +optional Headers *map[string]string `json:"-" sensitive:"true" tf:"headers"` // Use instead of headers if the desired payload is more complex than a list of key/value pairs (e.g. a set of headers that makes use of nested objects). The value provided should be a valid JSON string with escaped double quotes. Conflicts with headers. // +optional HeadersString *string `json:"-" sensitive:"true" tf:"headers_string"` // true or false. Flag for whether or not to attach a JSON document containing information about the associated alert to the email that is sent to recipients. // +optional IncludeJSONAttachment *string `json:"includeJSONAttachment,omitempty" tf:"include_json_attachment"` // The key for integrating with VictorOps. // +optional Key *string `json:"-" sensitive:"true" tf:"key"` // A map of key/value pairs that represents the webhook payload. Must provide payload_type if setting this argument. // +optional Payload *map[string]string `json:"-" sensitive:"true" tf:"payload"` // Use instead of payload if the desired payload is more complex than a list of key/value pairs (e.g. a payload that makes use of nested objects). The value provided should be a valid JSON string with escaped double quotes. Conflicts with payload. // +optional PayloadString *string `json:"-" sensitive:"true" tf:"payload_string"` // Can either be application/json or application/x-www-form-urlencoded. The payload_type argument is required if payload is set. // +optional PayloadType *string `json:"payloadType,omitempty" tf:"payload_type"` // A set of recipients for targeting notifications. Multiple values are comma separated. // +optional Recipients *string `json:"recipients,omitempty" tf:"recipients"` // The data center region to store your data. Valid values are US and EU. Default is US. // +optional Region *string `json:"region,omitempty" tf:"region"` // The route key for integrating with VictorOps. // +optional RouteKey *string `json:"-" sensitive:"true" tf:"route_key"` // Specifies the service key for integrating with Pagerduty. // +optional ServiceKey *string `json:"-" sensitive:"true" tf:"service_key"` // A set of tags for targeting notifications. Multiple values are comma separated. // +optional Tags *string `json:"tags,omitempty" tf:"tags"` // A set of teams for targeting notifications. Multiple values are comma separated. // +optional Teams *string `json:"teams,omitempty" tf:"teams"` // Your organization's Slack URL. // +optional Url *string `json:"-" sensitive:"true" tf:"url"` // The user ID for use with the user channel type. // +optional UserID *string `json:"userID,omitempty" tf:"user_id"` }
func (*ChannelSpecConfig) DeepCopy ¶
func (in *ChannelSpecConfig) DeepCopy() *ChannelSpecConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChannelSpecConfig.
func (*ChannelSpecConfig) DeepCopyInto ¶
func (in *ChannelSpecConfig) DeepCopyInto(out *ChannelSpecConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ChannelSpecConfigCodec ¶
type ChannelSpecConfigCodec struct { }
+k8s:deepcopy-gen=false
func (ChannelSpecConfigCodec) Decode ¶
func (ChannelSpecConfigCodec) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator)
func (ChannelSpecConfigCodec) Encode ¶
func (ChannelSpecConfigCodec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)
func (ChannelSpecConfigCodec) IsEmpty ¶
func (ChannelSpecConfigCodec) IsEmpty(ptr unsafe.Pointer) bool
type ChannelSpecResource ¶
type ChannelSpecResource struct { ID string `json:"id,omitempty" tf:"id,omitempty"` // The New Relic account ID where you want to create alert channels. // +optional AccountID *int64 `json:"accountID,omitempty" tf:"account_id"` // The configuration block for the alert channel. // +optional Config *ChannelSpecConfig `json:"config,omitempty" tf:"config"` // (Required) The name of the channel. Name *string `json:"name" tf:"name"` // (Required) The type of channel. One of: (pagerduty, slack, user, victorops, webhook, email, opsgenie). Type *string `json:"type" tf:"type"` }
func (*ChannelSpecResource) DeepCopy ¶
func (in *ChannelSpecResource) DeepCopy() *ChannelSpecResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChannelSpecResource.
func (*ChannelSpecResource) DeepCopyInto ¶
func (in *ChannelSpecResource) DeepCopyInto(out *ChannelSpecResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ChannelStatus ¶
type ChannelStatus 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 (*ChannelStatus) DeepCopy ¶
func (in *ChannelStatus) DeepCopy() *ChannelStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChannelStatus.
func (*ChannelStatus) DeepCopyInto ¶
func (in *ChannelStatus) DeepCopyInto(out *ChannelStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Condition ¶
type Condition struct { metav1.TypeMeta `json:",inline,omitempty"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ConditionSpec `json:"spec,omitempty"` Status ConditionStatus `json:"status,omitempty"` }
func (*Condition) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Condition) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Condition) SetupWebhookWithManager ¶
func (*Condition) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Condition) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type ConditionList ¶
type ConditionList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // Items is a list of Condition CRD objects Items []Condition `json:"items,omitempty"` }
ConditionList is a list of Conditions
func (*ConditionList) DeepCopy ¶
func (in *ConditionList) DeepCopy() *ConditionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConditionList.
func (*ConditionList) DeepCopyInto ¶
func (in *ConditionList) DeepCopyInto(out *ConditionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConditionList) DeepCopyObject ¶
func (in *ConditionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConditionSpec ¶
type ConditionSpec struct { State *ConditionSpecResource `json:"state,omitempty" tf:"-"` Resource ConditionSpecResource `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 (*ConditionSpec) DeepCopy ¶
func (in *ConditionSpec) DeepCopy() *ConditionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConditionSpec.
func (*ConditionSpec) DeepCopyInto ¶
func (in *ConditionSpec) DeepCopyInto(out *ConditionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConditionSpecResource ¶
type ConditionSpecResource struct { ID string `json:"id,omitempty" tf:"id,omitempty"` // One of (application, instance). Choose application for most scenarios. If you are using the JVM plugin in New Relic, the instance setting allows your condition to trigger for specific app instances. // +optional ConditionScope *string `json:"conditionScope,omitempty" tf:"condition_scope"` // Whether the condition is enabled. // +optional Enabled *bool `json:"enabled,omitempty" tf:"enabled"` // The instance IDs associated with this condition. // +kubebuilder:validation:MinItems=1 Entities []int64 `json:"entities" tf:"entities"` // A valid Garbage Collection metric e.g. GC/G1 Young Generation. This is required if you are using apm_jvm_metric with gc_cpu_time condition type. // +optional GcMetric *string `json:"gcMetric,omitempty" tf:"gc_metric"` // The metric field accepts parameters based on the type set. Metric *string `json:"metric" tf:"metric"` // The title of the condition. Must be between 1 and 128 characters, inclusive. Name *string `json:"name" tf:"name"` // The ID of the policy where this condition should be used. PolicyID *int64 `json:"policyID" tf:"policy_id"` // Runbook URL to display in notifications. // +optional RunbookURL *string `json:"runbookURL,omitempty" tf:"runbook_url"` // +kubebuilder:validation:MinItems=1 Term []ConditionSpecTerm `json:"term" tf:"term"` // The type of condition. One of: (browser_metric, mobile_metric, servers_metric, apm_app_metric, apm_jvm_metric, apm_kt_metric). Type *string `json:"type" tf:"type"` // A custom metric to be evaluated. // +optional UserDefinedMetric *string `json:"userDefinedMetric,omitempty" tf:"user_defined_metric"` // One of: (average, min, max, total, sample_size). // +optional UserDefinedValueFunction *string `json:"userDefinedValueFunction,omitempty" tf:"user_defined_value_function"` // Automatically close instance-based violations, including JVM health metric violations, after the number of hours specified. Must be: 1, 2, 4, 8, 12 or 24. // +optional ViolationCloseTimer *int64 `json:"violationCloseTimer,omitempty" tf:"violation_close_timer"` }
func (*ConditionSpecResource) DeepCopy ¶
func (in *ConditionSpecResource) DeepCopy() *ConditionSpecResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConditionSpecResource.
func (*ConditionSpecResource) DeepCopyInto ¶
func (in *ConditionSpecResource) DeepCopyInto(out *ConditionSpecResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConditionSpecTerm ¶
type ConditionSpecTerm struct { // In minutes, must be in the range of 5 to 120, inclusive. Duration *int64 `json:"duration" tf:"duration"` // One of (above, below, equal). Defaults to equal. // +optional Operator *string `json:"operator,omitempty" tf:"operator"` // One of (critical, warning). Defaults to critical. // +optional Priority *string `json:"priority,omitempty" tf:"priority"` // Must be 0 or greater. Threshold *float64 `json:"threshold" tf:"threshold"` // One of (all, any). TimeFunction *string `json:"timeFunction" tf:"time_function"` }
func (*ConditionSpecTerm) DeepCopy ¶
func (in *ConditionSpecTerm) DeepCopy() *ConditionSpecTerm
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConditionSpecTerm.
func (*ConditionSpecTerm) DeepCopyInto ¶
func (in *ConditionSpecTerm) DeepCopyInto(out *ConditionSpecTerm)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConditionStatus ¶
type ConditionStatus 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 (*ConditionStatus) DeepCopy ¶
func (in *ConditionStatus) DeepCopy() *ConditionStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConditionStatus.
func (*ConditionStatus) DeepCopyInto ¶
func (in *ConditionStatus) DeepCopyInto(out *ConditionStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MutingRule ¶
type MutingRule struct { metav1.TypeMeta `json:",inline,omitempty"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MutingRuleSpec `json:"spec,omitempty"` Status MutingRuleStatus `json:"status,omitempty"` }
func (*MutingRule) DeepCopy ¶
func (in *MutingRule) DeepCopy() *MutingRule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutingRule.
func (*MutingRule) DeepCopyInto ¶
func (in *MutingRule) DeepCopyInto(out *MutingRule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MutingRule) DeepCopyObject ¶
func (in *MutingRule) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MutingRule) SetupWebhookWithManager ¶
func (r *MutingRule) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*MutingRule) ValidateCreate ¶
func (r *MutingRule) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*MutingRule) ValidateDelete ¶
func (r *MutingRule) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*MutingRule) ValidateUpdate ¶
func (r *MutingRule) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type MutingRuleList ¶
type MutingRuleList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // Items is a list of MutingRule CRD objects Items []MutingRule `json:"items,omitempty"` }
MutingRuleList is a list of MutingRules
func (*MutingRuleList) DeepCopy ¶
func (in *MutingRuleList) DeepCopy() *MutingRuleList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutingRuleList.
func (*MutingRuleList) DeepCopyInto ¶
func (in *MutingRuleList) DeepCopyInto(out *MutingRuleList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MutingRuleList) DeepCopyObject ¶
func (in *MutingRuleList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MutingRuleSpec ¶
type MutingRuleSpec struct { State *MutingRuleSpecResource `json:"state,omitempty" tf:"-"` Resource MutingRuleSpecResource `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 (*MutingRuleSpec) DeepCopy ¶
func (in *MutingRuleSpec) DeepCopy() *MutingRuleSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutingRuleSpec.
func (*MutingRuleSpec) DeepCopyInto ¶
func (in *MutingRuleSpec) DeepCopyInto(out *MutingRuleSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MutingRuleSpecCondition ¶
type MutingRuleSpecCondition struct { // The individual MutingRuleConditions within the group. Conditions []MutingRuleSpecConditionConditions `json:"conditions" tf:"conditions"` // The operator used to combine all the MutingRuleConditions within the group. Operator *string `json:"operator" tf:"operator"` }
func (*MutingRuleSpecCondition) DeepCopy ¶
func (in *MutingRuleSpecCondition) DeepCopy() *MutingRuleSpecCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutingRuleSpecCondition.
func (*MutingRuleSpecCondition) DeepCopyInto ¶
func (in *MutingRuleSpecCondition) DeepCopyInto(out *MutingRuleSpecCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MutingRuleSpecConditionCodec ¶
type MutingRuleSpecConditionCodec struct { }
+k8s:deepcopy-gen=false
func (MutingRuleSpecConditionCodec) Decode ¶
func (MutingRuleSpecConditionCodec) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator)
func (MutingRuleSpecConditionCodec) Encode ¶
func (MutingRuleSpecConditionCodec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)
func (MutingRuleSpecConditionCodec) IsEmpty ¶
func (MutingRuleSpecConditionCodec) IsEmpty(ptr unsafe.Pointer) bool
type MutingRuleSpecConditionConditions ¶
type MutingRuleSpecConditionConditions struct { // The attribute on a violation. Attribute *string `json:"attribute" tf:"attribute"` // The operator used to compare the attribute's value with the supplied value(s). Operator *string `json:"operator" tf:"operator"` // The value(s) to compare against the attribute's value. // +kubebuilder:validation:MinItems=1 Values []string `json:"values" tf:"values"` }
func (*MutingRuleSpecConditionConditions) DeepCopy ¶
func (in *MutingRuleSpecConditionConditions) DeepCopy() *MutingRuleSpecConditionConditions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutingRuleSpecConditionConditions.
func (*MutingRuleSpecConditionConditions) DeepCopyInto ¶
func (in *MutingRuleSpecConditionConditions) DeepCopyInto(out *MutingRuleSpecConditionConditions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MutingRuleSpecResource ¶
type MutingRuleSpecResource struct { ID string `json:"id,omitempty" tf:"id,omitempty"` // The account id of the MutingRule.. // +optional AccountID *int64 `json:"accountID,omitempty" tf:"account_id"` // The condition that defines which violations to target. Condition *MutingRuleSpecCondition `json:"condition" tf:"condition"` // The description of the MutingRule. // +optional Description *string `json:"description,omitempty" tf:"description"` // Whether the MutingRule is enabled. Enabled *bool `json:"enabled" tf:"enabled"` // The name of the MutingRule. Name *string `json:"name" tf:"name"` // The time window when the MutingRule should actively mute violations. // +optional Schedule *MutingRuleSpecSchedule `json:"schedule,omitempty" tf:"schedule"` }
func (*MutingRuleSpecResource) DeepCopy ¶
func (in *MutingRuleSpecResource) DeepCopy() *MutingRuleSpecResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutingRuleSpecResource.
func (*MutingRuleSpecResource) DeepCopyInto ¶
func (in *MutingRuleSpecResource) DeepCopyInto(out *MutingRuleSpecResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MutingRuleSpecSchedule ¶
type MutingRuleSpecSchedule struct { // The datetime stamp when the MutingRule schedule should stop repeating. // +optional EndRepeat *string `json:"endRepeat,omitempty" tf:"end_repeat"` // The datetime stamp representing when the MutingRule should end. // +optional EndTime *string `json:"endTime,omitempty" tf:"end_time"` // The frequency the MutingRule schedule repeats. One of [DAILY, WEEKLY, MONTHLY] // +optional Repeat *string `json:"repeat,omitempty" tf:"repeat"` // The number of times the MutingRule schedule should repeat. // +optional RepeatCount *int64 `json:"repeatCount,omitempty" tf:"repeat_count"` // The datetime stamp representing when the MutingRule should start. // +optional StartTime *string `json:"startTime,omitempty" tf:"start_time"` // The time zone that applies to the MutingRule schedule. TimeZone *string `json:"timeZone" tf:"time_zone"` // The day(s) of the week that a MutingRule should repeat when the repeat field is set to WEEKLY. // +optional // +kubebuilder:validation:MaxItems=7 WeeklyRepeatDays []string `json:"weeklyRepeatDays,omitempty" tf:"weekly_repeat_days"` }
func (*MutingRuleSpecSchedule) DeepCopy ¶
func (in *MutingRuleSpecSchedule) DeepCopy() *MutingRuleSpecSchedule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutingRuleSpecSchedule.
func (*MutingRuleSpecSchedule) DeepCopyInto ¶
func (in *MutingRuleSpecSchedule) DeepCopyInto(out *MutingRuleSpecSchedule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MutingRuleSpecScheduleCodec ¶
type MutingRuleSpecScheduleCodec struct { }
+k8s:deepcopy-gen=false
func (MutingRuleSpecScheduleCodec) Decode ¶
func (MutingRuleSpecScheduleCodec) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator)
func (MutingRuleSpecScheduleCodec) Encode ¶
func (MutingRuleSpecScheduleCodec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)
func (MutingRuleSpecScheduleCodec) IsEmpty ¶
func (MutingRuleSpecScheduleCodec) IsEmpty(ptr unsafe.Pointer) bool
type MutingRuleStatus ¶
type MutingRuleStatus 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 (*MutingRuleStatus) DeepCopy ¶
func (in *MutingRuleStatus) DeepCopy() *MutingRuleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutingRuleStatus.
func (*MutingRuleStatus) DeepCopyInto ¶
func (in *MutingRuleStatus) DeepCopyInto(out *MutingRuleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Policy ¶
type Policy struct { metav1.TypeMeta `json:",inline,omitempty"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PolicySpec `json:"spec,omitempty"` Status PolicyStatus `json:"status,omitempty"` }
func (*Policy) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Policy.
func (*Policy) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Policy) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Policy) SetupWebhookWithManager ¶
func (*Policy) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Policy) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type PolicyChannel ¶
type PolicyChannel struct { metav1.TypeMeta `json:",inline,omitempty"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PolicyChannelSpec `json:"spec,omitempty"` Status PolicyChannelStatus `json:"status,omitempty"` }
func (*PolicyChannel) DeepCopy ¶
func (in *PolicyChannel) DeepCopy() *PolicyChannel
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyChannel.
func (*PolicyChannel) DeepCopyInto ¶
func (in *PolicyChannel) DeepCopyInto(out *PolicyChannel)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PolicyChannel) DeepCopyObject ¶
func (in *PolicyChannel) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PolicyChannel) SetupWebhookWithManager ¶
func (r *PolicyChannel) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*PolicyChannel) ValidateCreate ¶
func (r *PolicyChannel) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*PolicyChannel) ValidateDelete ¶
func (r *PolicyChannel) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*PolicyChannel) ValidateUpdate ¶
func (r *PolicyChannel) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type PolicyChannelList ¶
type PolicyChannelList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // Items is a list of PolicyChannel CRD objects Items []PolicyChannel `json:"items,omitempty"` }
PolicyChannelList is a list of PolicyChannels
func (*PolicyChannelList) DeepCopy ¶
func (in *PolicyChannelList) DeepCopy() *PolicyChannelList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyChannelList.
func (*PolicyChannelList) DeepCopyInto ¶
func (in *PolicyChannelList) DeepCopyInto(out *PolicyChannelList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PolicyChannelList) DeepCopyObject ¶
func (in *PolicyChannelList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PolicyChannelSpec ¶
type PolicyChannelSpec struct { State *PolicyChannelSpecResource `json:"state,omitempty" tf:"-"` Resource PolicyChannelSpecResource `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 (*PolicyChannelSpec) DeepCopy ¶
func (in *PolicyChannelSpec) DeepCopy() *PolicyChannelSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyChannelSpec.
func (*PolicyChannelSpec) DeepCopyInto ¶
func (in *PolicyChannelSpec) DeepCopyInto(out *PolicyChannelSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PolicyChannelSpecResource ¶
type PolicyChannelSpecResource struct { ID string `json:"id,omitempty" tf:"id,omitempty"` // The New Relic account ID where you want to link the channel to. // +optional AccountID *int64 `json:"accountID,omitempty" tf:"account_id"` // Array of channel IDs to apply to the specified policy. We recommended sorting channel IDs in ascending order to avoid drift your Terraform state. // +kubebuilder:validation:MinItems=1 ChannelIDS []int64 `json:"channelIDS" tf:"channel_ids"` // The ID of the policy. PolicyID *int64 `json:"policyID" tf:"policy_id"` }
func (*PolicyChannelSpecResource) DeepCopy ¶
func (in *PolicyChannelSpecResource) DeepCopy() *PolicyChannelSpecResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyChannelSpecResource.
func (*PolicyChannelSpecResource) DeepCopyInto ¶
func (in *PolicyChannelSpecResource) DeepCopyInto(out *PolicyChannelSpecResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PolicyChannelStatus ¶
type PolicyChannelStatus 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 (*PolicyChannelStatus) DeepCopy ¶
func (in *PolicyChannelStatus) DeepCopy() *PolicyChannelStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyChannelStatus.
func (*PolicyChannelStatus) DeepCopyInto ¶
func (in *PolicyChannelStatus) DeepCopyInto(out *PolicyChannelStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PolicyList ¶
type PolicyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // Items is a list of Policy CRD objects Items []Policy `json:"items,omitempty"` }
PolicyList is a list of Policys
func (*PolicyList) DeepCopy ¶
func (in *PolicyList) DeepCopy() *PolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyList.
func (*PolicyList) DeepCopyInto ¶
func (in *PolicyList) DeepCopyInto(out *PolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PolicyList) DeepCopyObject ¶
func (in *PolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PolicySpec ¶
type PolicySpec struct { State *PolicySpecResource `json:"state,omitempty" tf:"-"` Resource PolicySpecResource `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 (*PolicySpec) DeepCopy ¶
func (in *PolicySpec) DeepCopy() *PolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicySpec.
func (*PolicySpec) DeepCopyInto ¶
func (in *PolicySpec) DeepCopyInto(out *PolicySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PolicySpecResource ¶
type PolicySpecResource struct { ID string `json:"id,omitempty" tf:"id,omitempty"` // The New Relic account ID to operate on. // +optional AccountID *int64 `json:"accountID,omitempty" tf:"account_id"` // An array of channel IDs (integers) to assign to the policy. Adding or removing channel IDs from this array will result in a new alert policy resource being created and the old one being destroyed. Also note that channel IDs cannot be imported via terraform import. // +optional ChannelIDS []int64 `json:"channelIDS,omitempty" tf:"channel_ids"` // The rollup strategy for the policy. Options include: PER_POLICY, PER_CONDITION, or PER_CONDITION_AND_TARGET. The default is PER_POLICY. // +optional IncidentPreference *string `json:"incidentPreference,omitempty" tf:"incident_preference"` // The name of the policy. Name *string `json:"name" tf:"name"` }
func (*PolicySpecResource) DeepCopy ¶
func (in *PolicySpecResource) DeepCopy() *PolicySpecResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicySpecResource.
func (*PolicySpecResource) DeepCopyInto ¶
func (in *PolicySpecResource) DeepCopyInto(out *PolicySpecResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PolicyStatus ¶
type PolicyStatus 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 (*PolicyStatus) DeepCopy ¶
func (in *PolicyStatus) DeepCopy() *PolicyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyStatus.
func (*PolicyStatus) DeepCopyInto ¶
func (in *PolicyStatus) DeepCopyInto(out *PolicyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.