Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the alerts v1 API group +kubebuilder:object:generate=true +groupName=alerts.k8s.newrelic.com
Index ¶
- Constants
- Variables
- func CheckForAPIKeyOrSecret(apiKey string, secret NewRelicSecret) error
- type AiNotificationsCredentialsInput
- type AiNotificationsCustomHeadersAuthInput
- type AiNotificationsPropertyInput
- type AiWorkflowsEnrichmentsInput
- type AiWorkflowsFilterInput
- type AiWorkflowsNRQLConfigurationInput
- type AiWorkflowsNRQLEnrichmentInput
- type AiWorkflowsPredicateInput
- type AlertChannel
- func (r *AlertChannel) ApplyDefaults()
- func (in *AlertChannel) DeepCopy() *AlertChannel
- func (in *AlertChannel) DeepCopyInto(out *AlertChannel)
- func (in *AlertChannel) DeepCopyObject() runtime.Object
- func (r *AlertChannel) Default()
- func (r *AlertChannel) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *AlertChannel) ValidateAPIKeyOrSecret() field.ErrorList
- func (r *AlertChannel) ValidateChannelSchema() field.ErrorList
- func (r *AlertChannel) ValidateCreate() (admission.Warnings, error)
- func (r *AlertChannel) ValidateDelete() (admission.Warnings, error)
- func (r *AlertChannel) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- type AlertChannelList
- type AlertChannelSpec
- type AlertChannelStatus
- type AlertDestination
- func (r *AlertDestination) ApplyDefaults()
- func (in *AlertDestination) DeepCopy() *AlertDestination
- func (in *AlertDestination) DeepCopyInto(out *AlertDestination)
- func (in *AlertDestination) DeepCopyObject() runtime.Object
- func (r *AlertDestination) Default()
- func (r *AlertDestination) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *AlertDestination) ValidateAPIKeyOrSecret() field.ErrorList
- func (r *AlertDestination) ValidateCreate() (admission.Warnings, error)
- func (r *AlertDestination) ValidateDelete() (admission.Warnings, error)
- func (r *AlertDestination) ValidateDestinationSchema() field.ErrorList
- func (r *AlertDestination) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- type AlertDestinationBaseSpec
- type AlertDestinationList
- type AlertDestinationSpec
- type AlertDestinationStatus
- type AlertPolicy
- func (r *AlertPolicy) ApplyDefaults()
- func (in *AlertPolicy) DeepCopy() *AlertPolicy
- func (in *AlertPolicy) DeepCopyInto(out *AlertPolicy)
- func (in *AlertPolicy) DeepCopyObject() runtime.Object
- func (r *AlertPolicy) Default()
- func (r *AlertPolicy) IsMultiple(input int, divisor int) bool
- func (r *AlertPolicy) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *AlertPolicy) ValidateAPIKeyOrSecret() field.ErrorList
- func (r *AlertPolicy) ValidateConditionSchema() field.ErrorList
- func (r *AlertPolicy) ValidateCreate() (admission.Warnings, error)
- func (r *AlertPolicy) ValidateDelete() (admission.Warnings, error)
- func (r *AlertPolicy) ValidatePolicySchema() field.ErrorList
- func (r *AlertPolicy) ValidateTypeSwitch(oldPolicy *AlertPolicy) field.ErrorList
- func (r *AlertPolicy) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- type AlertPolicyList
- type AlertPolicySpec
- type AlertPolicyStatus
- type AlertWorkflow
- func (r *AlertWorkflow) ApplyDefaults()
- func (in *AlertWorkflow) DeepCopy() *AlertWorkflow
- func (in *AlertWorkflow) DeepCopyInto(out *AlertWorkflow)
- func (in *AlertWorkflow) DeepCopyObject() runtime.Object
- func (r *AlertWorkflow) Default()
- func (r *AlertWorkflow) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *AlertWorkflow) ValidateAPIKeyOrSecret() field.ErrorList
- func (r *AlertWorkflow) ValidateChannelSchema() field.ErrorList
- func (r *AlertWorkflow) ValidateCreate() (admission.Warnings, error)
- func (r *AlertWorkflow) ValidateDelete() (admission.Warnings, error)
- func (r *AlertWorkflow) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- func (r *AlertWorkflow) ValidateWorkflowSchema() field.ErrorList
- type AlertWorkflowList
- type AlertWorkflowSpec
- type AlertWorkflowStatus
- type AlertsBaselineSpecificSpec
- type AlertsNrqlBaseSpec
- type AlertsNrqlConditionExpiration
- type AlertsNrqlConditionSignal
- type AlertsNrqlConditionTerm
- type DestinationChannel
- type DestinationChannelSpec
- type NewRelicSecret
- type NrqlCondition
- func (r *NrqlCondition) ApplyDefaults()
- func (in *NrqlCondition) DeepCopy() *NrqlCondition
- func (in *NrqlCondition) DeepCopyInto(out *NrqlCondition)
- func (in *NrqlCondition) DeepCopyObject() runtime.Object
- func (r *NrqlCondition) Default()
- func (r *NrqlCondition) IsMultiple(input int, divisor int) bool
- func (r *NrqlCondition) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *NrqlCondition) ValidateAPIKeyOrSecret() field.ErrorList
- func (r *NrqlCondition) ValidateConditionSchema() field.ErrorList
- func (r *NrqlCondition) ValidateCreate() (admission.Warnings, error)
- func (r *NrqlCondition) ValidateDelete() (admission.Warnings, error)
- func (r *NrqlCondition) ValidateTypeSwitch(oldCondition *NrqlCondition) field.ErrorList
- func (r *NrqlCondition) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- type NrqlConditionCreateQuery
- type NrqlConditionList
- type NrqlConditionSpec
- type NrqlConditionStatus
- type PolicyCondition
- type PolicyConditionSpec
Constants ¶
const ( IncidentPreferencePerPolicy = "PER_POLICY" IncidentPreferencePerCondition = "PER_CONDITION" IncidentPreferencePerConditionAndTarget = "PER_CONDITION_AND_TARGET" )
Allowed incident preferences
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "alerts.k8s.newrelic.com", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
var Log = logf.Log.WithName("alertpolicy-resource")
log is for logging in this package.
Functions ¶
func CheckForAPIKeyOrSecret ¶
func CheckForAPIKeyOrSecret(apiKey string, secret NewRelicSecret) error
CheckForAPIKeyOrSecret - returns error if a API KEY or k8 secret is not passed in
Types ¶
type AiNotificationsCredentialsInput ¶
type AiNotificationsCredentialsInput struct { Basic notifications.AiNotificationsBasicAuthInput `json:"basic,omitempty"` CustomHeaders *AiNotificationsCustomHeadersAuthInput `json:"customHeaders,omitempty"` Oauth2 notifications.AiNotificationsOAuth2AuthInput `json:"oauth2,omitempty"` Token notifications.AiNotificationsTokenAuthInput `json:"token,omitempty"` Type notifications.AiNotificationsAuthType `json:"type"` }
AiNotificationsCredentialsInput - Credential input object
func (*AiNotificationsCredentialsInput) DeepCopy ¶
func (in *AiNotificationsCredentialsInput) DeepCopy() *AiNotificationsCredentialsInput
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AiNotificationsCredentialsInput.
func (*AiNotificationsCredentialsInput) DeepCopyInto ¶
func (in *AiNotificationsCredentialsInput) DeepCopyInto(out *AiNotificationsCredentialsInput)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AiNotificationsCustomHeadersAuthInput ¶
type AiNotificationsCustomHeadersAuthInput struct {
CustomHeaders []notifications.AiNotificationsCustomHeaderInput `json:"customHeaders,omitempty"`
}
AiNotificationsCustomHeadersAuthInput - Custom headers auth input object
func (*AiNotificationsCustomHeadersAuthInput) DeepCopy ¶
func (in *AiNotificationsCustomHeadersAuthInput) DeepCopy() *AiNotificationsCustomHeadersAuthInput
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AiNotificationsCustomHeadersAuthInput.
func (*AiNotificationsCustomHeadersAuthInput) DeepCopyInto ¶
func (in *AiNotificationsCustomHeadersAuthInput) DeepCopyInto(out *AiNotificationsCustomHeadersAuthInput)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AiNotificationsPropertyInput ¶
type AiNotificationsPropertyInput struct { DisplayValue string `json:"displayValue,omitempty"` Key string `json:"key"` Label string `json:"label,omitempty"` Value string `json:"value"` }
AiNotificationsPropertyInput defines the inputs for a given destination type
func (*AiNotificationsPropertyInput) DeepCopy ¶
func (in *AiNotificationsPropertyInput) DeepCopy() *AiNotificationsPropertyInput
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AiNotificationsPropertyInput.
func (*AiNotificationsPropertyInput) DeepCopyInto ¶
func (in *AiNotificationsPropertyInput) DeepCopyInto(out *AiNotificationsPropertyInput)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AiWorkflowsEnrichmentsInput ¶
type AiWorkflowsEnrichmentsInput struct {
NRQL []AiWorkflowsNRQLEnrichmentInput `json:"nrql,omitempty"`
}
AiWorkflowsEnrichmentsInput defines optional enrichment for a workflow
func (*AiWorkflowsEnrichmentsInput) DeepCopy ¶
func (in *AiWorkflowsEnrichmentsInput) DeepCopy() *AiWorkflowsEnrichmentsInput
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AiWorkflowsEnrichmentsInput.
func (*AiWorkflowsEnrichmentsInput) DeepCopyInto ¶
func (in *AiWorkflowsEnrichmentsInput) DeepCopyInto(out *AiWorkflowsEnrichmentsInput)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AiWorkflowsFilterInput ¶
type AiWorkflowsFilterInput struct { Name string `json:"name,omitempty"` Predicates []AiWorkflowsPredicateInput `json:"predicates,omitempty"` Type workflows.AiWorkflowsFilterType `json:"type"` }
AiWorkflowsFilterInput defines the filters for a workflow
func (*AiWorkflowsFilterInput) DeepCopy ¶
func (in *AiWorkflowsFilterInput) DeepCopy() *AiWorkflowsFilterInput
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AiWorkflowsFilterInput.
func (*AiWorkflowsFilterInput) DeepCopyInto ¶
func (in *AiWorkflowsFilterInput) DeepCopyInto(out *AiWorkflowsFilterInput)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AiWorkflowsNRQLConfigurationInput ¶
type AiWorkflowsNRQLConfigurationInput struct {
Query string `json:"query"`
}
AiWorkflowsNRQLConfigurationInput - NRQL type configuration input object
func (*AiWorkflowsNRQLConfigurationInput) DeepCopy ¶
func (in *AiWorkflowsNRQLConfigurationInput) DeepCopy() *AiWorkflowsNRQLConfigurationInput
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AiWorkflowsNRQLConfigurationInput.
func (*AiWorkflowsNRQLConfigurationInput) DeepCopyInto ¶
func (in *AiWorkflowsNRQLConfigurationInput) DeepCopyInto(out *AiWorkflowsNRQLConfigurationInput)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AiWorkflowsNRQLEnrichmentInput ¶
type AiWorkflowsNRQLEnrichmentInput struct { Configuration []AiWorkflowsNRQLConfigurationInput `json:"configuration,omitempty"` Name string `json:"name"` }
AiWorkflowsNRQLEnrichmentInput - NRQL type enrichment input object
func (*AiWorkflowsNRQLEnrichmentInput) DeepCopy ¶
func (in *AiWorkflowsNRQLEnrichmentInput) DeepCopy() *AiWorkflowsNRQLEnrichmentInput
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AiWorkflowsNRQLEnrichmentInput.
func (*AiWorkflowsNRQLEnrichmentInput) DeepCopyInto ¶
func (in *AiWorkflowsNRQLEnrichmentInput) DeepCopyInto(out *AiWorkflowsNRQLEnrichmentInput)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AiWorkflowsPredicateInput ¶
type AiWorkflowsPredicateInput struct { Attribute string `json:"attribute"` Operator workflows.AiWorkflowsOperator `json:"operator"` Values []string `json:"values"` }
AiWorkflowsPredicateInput - PredicateInput input object
func (*AiWorkflowsPredicateInput) DeepCopy ¶
func (in *AiWorkflowsPredicateInput) DeepCopy() *AiWorkflowsPredicateInput
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AiWorkflowsPredicateInput.
func (*AiWorkflowsPredicateInput) DeepCopyInto ¶
func (in *AiWorkflowsPredicateInput) DeepCopyInto(out *AiWorkflowsPredicateInput)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertChannel ¶
type AlertChannel struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AlertChannelSpec `json:"spec,omitempty"` Status AlertChannelStatus `json:"status,omitempty"` }
AlertChannel is the Schema for the alertchannels API
func (*AlertChannel) ApplyDefaults ¶
func (r *AlertChannel) ApplyDefaults()
ApplyDefaults sets default values for required fields if not set
func (*AlertChannel) DeepCopy ¶
func (in *AlertChannel) DeepCopy() *AlertChannel
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertChannel.
func (*AlertChannel) DeepCopyInto ¶
func (in *AlertChannel) DeepCopyInto(out *AlertChannel)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AlertChannel) DeepCopyObject ¶
func (in *AlertChannel) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*AlertChannel) Default ¶
func (r *AlertChannel) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*AlertChannel) SetupWebhookWithManager ¶
func (r *AlertChannel) SetupWebhookWithManager(mgr ctrl.Manager) error
SetupWebhookWithManager will setup the manager to manage the webhooks
func (*AlertChannel) ValidateAPIKeyOrSecret ¶
func (r *AlertChannel) ValidateAPIKeyOrSecret() field.ErrorList
ValidateAPIKeyOrSecret validates an api key or secret is configured
func (*AlertChannel) ValidateChannelSchema ¶
func (r *AlertChannel) ValidateChannelSchema() field.ErrorList
func (*AlertChannel) ValidateCreate ¶
func (r *AlertChannel) ValidateCreate() (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*AlertChannel) ValidateDelete ¶
func (r *AlertChannel) ValidateDelete() (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*AlertChannel) ValidateUpdate ¶
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type AlertChannelList ¶
type AlertChannelList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []AlertChannel `json:"items"` }
AlertChannelList contains a list of AlertChannel
func (*AlertChannelList) DeepCopy ¶
func (in *AlertChannelList) DeepCopy() *AlertChannelList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertChannelList.
func (*AlertChannelList) DeepCopyInto ¶
func (in *AlertChannelList) DeepCopyInto(out *AlertChannelList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AlertChannelList) DeepCopyObject ¶
func (in *AlertChannelList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AlertChannelSpec ¶
type AlertChannelSpec struct { APIKey string `json:"apiKey,omitempty"` APIKeySecret NewRelicSecret `json:"apiKeySecret,omitempty"` AccountID int `json:"accountId,omitempty"` Region string `json:"region,omitempty"` DestinationName string `json:"destinationName"` DestinationID string `json:"destinationId,omitempty"` Name string `json:"name"` Active bool `json:"active,omitempty"` Properties []AiNotificationsPropertyInput `json:"properties,omitempty"` Product notifications.AiNotificationsProduct `json:"product"` Type notifications.AiNotificationsChannelType `json:"type"` }
AlertChannelSpec defines the desired state of AlertChannel
func (*AlertChannelSpec) DeepCopy ¶
func (in *AlertChannelSpec) DeepCopy() *AlertChannelSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertChannelSpec.
func (*AlertChannelSpec) DeepCopyInto ¶
func (in *AlertChannelSpec) DeepCopyInto(out *AlertChannelSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertChannelStatus ¶
type AlertChannelStatus struct { AppliedSpec *AlertChannelSpec `json:"appliedSpec"` ChannelID string `json:"channelId"` }
AlertChannelStatus defines the observed state of AlertChannel
func (*AlertChannelStatus) DeepCopy ¶
func (in *AlertChannelStatus) DeepCopy() *AlertChannelStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertChannelStatus.
func (*AlertChannelStatus) DeepCopyInto ¶
func (in *AlertChannelStatus) DeepCopyInto(out *AlertChannelStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertDestination ¶
type AlertDestination struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AlertDestinationSpec `json:"spec,omitempty"` Status AlertDestinationStatus `json:"status,omitempty"` }
AlertDestination is the Schema for the alertdestinations API
func (*AlertDestination) ApplyDefaults ¶
func (r *AlertDestination) ApplyDefaults()
ApplyDefaults sets default values for required fields if not set
func (*AlertDestination) DeepCopy ¶
func (in *AlertDestination) DeepCopy() *AlertDestination
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertDestination.
func (*AlertDestination) DeepCopyInto ¶
func (in *AlertDestination) DeepCopyInto(out *AlertDestination)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AlertDestination) DeepCopyObject ¶
func (in *AlertDestination) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*AlertDestination) Default ¶
func (r *AlertDestination) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*AlertDestination) SetupWebhookWithManager ¶
func (r *AlertDestination) SetupWebhookWithManager(mgr ctrl.Manager) error
SetupWebhookWithManager will setup the manager to manage the webhooks
func (*AlertDestination) ValidateAPIKeyOrSecret ¶
func (r *AlertDestination) ValidateAPIKeyOrSecret() field.ErrorList
ValidateAPIKeyOrSecret validates an api key or secret is configured
func (*AlertDestination) ValidateCreate ¶
func (r *AlertDestination) ValidateCreate() (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*AlertDestination) ValidateDelete ¶
func (r *AlertDestination) ValidateDelete() (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*AlertDestination) ValidateDestinationSchema ¶
func (r *AlertDestination) ValidateDestinationSchema() field.ErrorList
func (*AlertDestination) ValidateUpdate ¶
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type AlertDestinationBaseSpec ¶
type AlertDestinationBaseSpec struct { APIKey string `json:"apiKey,omitempty"` APIKeySecret NewRelicSecret `json:"apiKeySecret,omitempty"` AccountID int `json:"accountId,omitempty"` Region string `json:"region,omitempty"` Auth *AiNotificationsCredentialsInput `json:"auth,omitempty"` Name string `json:"name"` ID string `json:"id,omitempty"` Active bool `json:"active,omitempty"` Properties []AiNotificationsPropertyInput `json:"properties"` SecureURL *notifications.AiNotificationsSecureURLInput `json:"secureUrl,omitempty"` Type notifications.AiNotificationsDestinationType `json:"type"` }
AlertDestinationBaseSpec defines the desired state when creating a destination
func (*AlertDestinationBaseSpec) DeepCopy ¶
func (in *AlertDestinationBaseSpec) DeepCopy() *AlertDestinationBaseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertDestinationBaseSpec.
func (*AlertDestinationBaseSpec) DeepCopyInto ¶
func (in *AlertDestinationBaseSpec) DeepCopyInto(out *AlertDestinationBaseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertDestinationList ¶
type AlertDestinationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []AlertDestination `json:"items"` }
AlertDestinationList contains a list of AlertDestination
func (*AlertDestinationList) DeepCopy ¶
func (in *AlertDestinationList) DeepCopy() *AlertDestinationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertDestinationList.
func (*AlertDestinationList) DeepCopyInto ¶
func (in *AlertDestinationList) DeepCopyInto(out *AlertDestinationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AlertDestinationList) DeepCopyObject ¶
func (in *AlertDestinationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AlertDestinationSpec ¶
type AlertDestinationSpec struct {
AlertDestinationBaseSpec `json:",inline"`
}
AlertDestinationSpec defines the desired state of AlertDestination
func (*AlertDestinationSpec) DeepCopy ¶
func (in *AlertDestinationSpec) DeepCopy() *AlertDestinationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertDestinationSpec.
func (*AlertDestinationSpec) DeepCopyInto ¶
func (in *AlertDestinationSpec) DeepCopyInto(out *AlertDestinationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertDestinationStatus ¶
type AlertDestinationStatus struct { AppliedSpec *AlertDestinationSpec `json:"appliedSpec"` DestinationID string `json:"destinationId"` }
AlertDestinationStatus defines the observed state of AlertDestination
func (*AlertDestinationStatus) DeepCopy ¶
func (in *AlertDestinationStatus) DeepCopy() *AlertDestinationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertDestinationStatus.
func (*AlertDestinationStatus) DeepCopyInto ¶
func (in *AlertDestinationStatus) DeepCopyInto(out *AlertDestinationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertPolicy ¶
type AlertPolicy struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AlertPolicySpec `json:"spec,omitempty"` Status AlertPolicyStatus `json:"status,omitempty"` }
AlertPolicy is the Schema for the alertpolicies API
func (*AlertPolicy) ApplyDefaults ¶
func (r *AlertPolicy) ApplyDefaults()
ApplyDefaults sets default values for required fields if not set
func (*AlertPolicy) DeepCopy ¶
func (in *AlertPolicy) DeepCopy() *AlertPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertPolicy.
func (*AlertPolicy) DeepCopyInto ¶
func (in *AlertPolicy) DeepCopyInto(out *AlertPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AlertPolicy) DeepCopyObject ¶
func (in *AlertPolicy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*AlertPolicy) Default ¶
func (r *AlertPolicy) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*AlertPolicy) IsMultiple ¶
func (r *AlertPolicy) IsMultiple(input int, divisor int) bool
IsMultiple validates that a given thresholdDuration is a multiple of the signal.aggregationWindow configured
func (*AlertPolicy) SetupWebhookWithManager ¶
func (r *AlertPolicy) SetupWebhookWithManager(mgr ctrl.Manager) error
SetupWebhookWithManager will setup the manager to manage the webhooks
func (*AlertPolicy) ValidateAPIKeyOrSecret ¶
func (r *AlertPolicy) ValidateAPIKeyOrSecret() field.ErrorList
ValidateAPIKeyOrSecret validates an api key or secret is configured
func (*AlertPolicy) ValidateConditionSchema ¶
func (r *AlertPolicy) ValidateConditionSchema() field.ErrorList
ValidateConditionSchema validates the required fields for conditions under a policy
func (*AlertPolicy) ValidateCreate ¶
func (r *AlertPolicy) ValidateCreate() (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*AlertPolicy) ValidateDelete ¶
func (r *AlertPolicy) ValidateDelete() (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*AlertPolicy) ValidatePolicySchema ¶
func (r *AlertPolicy) ValidatePolicySchema() field.ErrorList
ValidatePolicySchema validates the required fields for a policy
func (*AlertPolicy) ValidateTypeSwitch ¶
func (r *AlertPolicy) ValidateTypeSwitch(oldPolicy *AlertPolicy) field.ErrorList
ValidateTypeSwitch validates if type is attempted to be switched from static -> baseline or vice versa
func (*AlertPolicy) ValidateUpdate ¶
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type AlertPolicyList ¶
type AlertPolicyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []AlertPolicy `json:"items"` }
AlertPolicyList contains a list of AlertPolicy
func (*AlertPolicyList) DeepCopy ¶
func (in *AlertPolicyList) DeepCopy() *AlertPolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertPolicyList.
func (*AlertPolicyList) DeepCopyInto ¶
func (in *AlertPolicyList) DeepCopyInto(out *AlertPolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AlertPolicyList) DeepCopyObject ¶
func (in *AlertPolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AlertPolicySpec ¶
type AlertPolicySpec struct { // +kubebuilder:validation:Enum=PER_POLICY;PER_CONDITION;PER_CONDITION_AND_TARGET IncidentPreference string `json:"incidentPreference,omitempty"` Name string `json:"name"` APIKey string `json:"apiKey,omitempty"` APIKeySecret NewRelicSecret `json:"apiKeySecret,omitempty"` Region string `json:"region"` AccountID int `json:"accountId,omitempty"` Conditions []PolicyCondition `json:"conditions,omitempty"` }
AlertPolicySpec defines the desired state of AlertPolicy
func (*AlertPolicySpec) DeepCopy ¶
func (in *AlertPolicySpec) DeepCopy() *AlertPolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertPolicySpec.
func (*AlertPolicySpec) DeepCopyInto ¶
func (in *AlertPolicySpec) DeepCopyInto(out *AlertPolicySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertPolicyStatus ¶
type AlertPolicyStatus struct { AppliedSpec *AlertPolicySpec `json:"appliedSpec"` PolicyID int `json:"policyId"` }
AlertPolicyStatus defines the observed state of AlertPolicy
func (*AlertPolicyStatus) DeepCopy ¶
func (in *AlertPolicyStatus) DeepCopy() *AlertPolicyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertPolicyStatus.
func (*AlertPolicyStatus) DeepCopyInto ¶
func (in *AlertPolicyStatus) DeepCopyInto(out *AlertPolicyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertWorkflow ¶
type AlertWorkflow struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AlertWorkflowSpec `json:"spec,omitempty"` Status AlertWorkflowStatus `json:"status,omitempty"` }
AlertWorkflow is the Schema for the alertworkflows API
func (*AlertWorkflow) ApplyDefaults ¶
func (r *AlertWorkflow) ApplyDefaults()
ApplyDefaults sets default values for required fields if not set
func (*AlertWorkflow) DeepCopy ¶
func (in *AlertWorkflow) DeepCopy() *AlertWorkflow
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertWorkflow.
func (*AlertWorkflow) DeepCopyInto ¶
func (in *AlertWorkflow) DeepCopyInto(out *AlertWorkflow)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AlertWorkflow) DeepCopyObject ¶
func (in *AlertWorkflow) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*AlertWorkflow) Default ¶
func (r *AlertWorkflow) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*AlertWorkflow) SetupWebhookWithManager ¶
func (r *AlertWorkflow) SetupWebhookWithManager(mgr ctrl.Manager) error
SetupWebhookWithManager will setup the manager to manage the webhooks
func (*AlertWorkflow) ValidateAPIKeyOrSecret ¶
func (r *AlertWorkflow) ValidateAPIKeyOrSecret() field.ErrorList
ValidateAPIKeyOrSecret validates an api key or secret is configured
func (*AlertWorkflow) ValidateChannelSchema ¶
func (r *AlertWorkflow) ValidateChannelSchema() field.ErrorList
func (*AlertWorkflow) ValidateCreate ¶
func (r *AlertWorkflow) ValidateCreate() (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*AlertWorkflow) ValidateDelete ¶
func (r *AlertWorkflow) ValidateDelete() (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*AlertWorkflow) ValidateUpdate ¶
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
func (*AlertWorkflow) ValidateWorkflowSchema ¶
func (r *AlertWorkflow) ValidateWorkflowSchema() field.ErrorList
type AlertWorkflowList ¶
type AlertWorkflowList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []AlertWorkflow `json:"items"` }
AlertWorkflowList contains a list of AlertWorkflow
func (*AlertWorkflowList) DeepCopy ¶
func (in *AlertWorkflowList) DeepCopy() *AlertWorkflowList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertWorkflowList.
func (*AlertWorkflowList) DeepCopyInto ¶
func (in *AlertWorkflowList) DeepCopyInto(out *AlertWorkflowList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AlertWorkflowList) DeepCopyObject ¶
func (in *AlertWorkflowList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AlertWorkflowSpec ¶
type AlertWorkflowSpec struct { APIKey string `json:"apiKey,omitempty"` APIKeySecret NewRelicSecret `json:"apiKeySecret,omitempty"` AccountID int `json:"accountId,omitempty"` Region string `json:"region,omitempty"` Name string `json:"name"` Enabled bool `json:"enabled,omitempty"` IssuesFilter *AiWorkflowsFilterInput `json:"issuesFilter,omitempty"` Enrichments AiWorkflowsEnrichmentsInput `json:"enrichments,omitempty"` EnrichmentsEnabled bool `json:"enrichmentsEnabled,omitempty"` MutingRulesHandling workflows.AiWorkflowsMutingRulesHandling `json:"mutingRulesHandling"` Channels []DestinationChannel `json:"channels"` ChannelsEnabled bool `json:"channelsEnabled,omitempty"` }
AlertWorkflowSpec defines the desired state of AlertWorkflow
func (*AlertWorkflowSpec) DeepCopy ¶
func (in *AlertWorkflowSpec) DeepCopy() *AlertWorkflowSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertWorkflowSpec.
func (*AlertWorkflowSpec) DeepCopyInto ¶
func (in *AlertWorkflowSpec) DeepCopyInto(out *AlertWorkflowSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertWorkflowStatus ¶
type AlertWorkflowStatus struct { AppliedSpec *AlertWorkflowSpec `json:"appliedSpec"` WorkflowID string `json:"workflowId"` }
AlertWorkflowStatus defines the observed state of AlertWorkflow
func (*AlertWorkflowStatus) DeepCopy ¶
func (in *AlertWorkflowStatus) DeepCopy() *AlertWorkflowStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertWorkflowStatus.
func (*AlertWorkflowStatus) DeepCopyInto ¶
func (in *AlertWorkflowStatus) DeepCopyInto(out *AlertWorkflowStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertsBaselineSpecificSpec ¶
type AlertsBaselineSpecificSpec struct {
BaselineDirection *alerts.NrqlBaselineDirection `json:"baselineDirection,omitempty"`
}
AlertsBaselineSpecificSpec - Settings for the direction of anomaly type alerts
func (*AlertsBaselineSpecificSpec) DeepCopy ¶
func (in *AlertsBaselineSpecificSpec) DeepCopy() *AlertsBaselineSpecificSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertsBaselineSpecificSpec.
func (*AlertsBaselineSpecificSpec) DeepCopyInto ¶
func (in *AlertsBaselineSpecificSpec) DeepCopyInto(out *AlertsBaselineSpecificSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertsNrqlBaseSpec ¶
type AlertsNrqlBaseSpec struct { Description string `json:"description,omitempty"` APIKey string `json:"apiKey,omitempty"` APIKeySecret NewRelicSecret `json:"apiKeySecret,omitempty"` AccountID int `json:"accountId,omitempty"` ExistingPolicyID string `json:"existingPolicyId,omitempty"` ID int `json:"id,omitempty"` Enabled bool `json:"enabled,omitempty"` Region string `json:"region,omitempty"` Name string `json:"name,omitempty"` Nrql NrqlConditionCreateQuery `json:"nrql,omitempty"` RunbookURL string `json:"runbookUrl,omitempty"` Terms []AlertsNrqlConditionTerm `json:"terms,omitempty"` Type alerts.NrqlConditionType `json:"type,omitempty"` ViolationTimeLimit alerts.NrqlConditionViolationTimeLimit `json:"violationTimeLimit,omitempty"` ViolationTimeLimitSeconds int `json:"violationTimeLimitSeconds,omitempty"` Expiration *AlertsNrqlConditionExpiration `json:"expiration,omitempty"` Signal *AlertsNrqlConditionSignal `json:"signal,omitempty"` TitleTemplate *string `json:"titleTemplate,omitempty"` }
AlertsNrqlBaseSpec defines the desired state of AlertsNrqlCondition
func (*AlertsNrqlBaseSpec) DeepCopy ¶
func (in *AlertsNrqlBaseSpec) DeepCopy() *AlertsNrqlBaseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertsNrqlBaseSpec.
func (*AlertsNrqlBaseSpec) DeepCopyInto ¶
func (in *AlertsNrqlBaseSpec) DeepCopyInto(out *AlertsNrqlBaseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertsNrqlConditionExpiration ¶
type AlertsNrqlConditionExpiration struct { ExpirationDuration *int `json:"expirationDuration,omitempty"` CloseViolationsOnExpiration bool `json:"closeViolationsOnExpiration,omitempty"` OpenViolationOnExpiration bool `json:"openViolationOnExpiration,omitempty"` IgnoreOnExpectedTermination bool `json:"ignoreOnExpectedTermination,omitempty"` }
AlertsNrqlConditionExpiration - Settings for how violations are opened or closed when a signal expires.
func (*AlertsNrqlConditionExpiration) DeepCopy ¶
func (in *AlertsNrqlConditionExpiration) DeepCopy() *AlertsNrqlConditionExpiration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertsNrqlConditionExpiration.
func (*AlertsNrqlConditionExpiration) DeepCopyInto ¶
func (in *AlertsNrqlConditionExpiration) DeepCopyInto(out *AlertsNrqlConditionExpiration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertsNrqlConditionSignal ¶
type AlertsNrqlConditionSignal struct { AggregationWindow *int `json:"aggregationWindow,omitempty"` EvaluationOffset *int `json:"evaluationOffset,omitempty"` EvaluationDelay *int `json:"evaluationDelay,omitempty"` FillOption *alerts.AlertsFillOption `json:"fillOption,omitempty"` FillValue *float64 `json:"fillValue,omitempty"` AggregationMethod *alerts.NrqlConditionAggregationMethod `json:"aggregationMethod,omitempty"` AggregationDelay *int `json:"aggregationDelay,omitempty"` AggregationTimer *int `json:"aggregationTimer,omitempty"` SlideBy *int `json:"slideBy,omitempty"` }
AlertsNrqlConditionSignal - Configuration that defines the signal that the NRQL condition will use to evaluate.
func (*AlertsNrqlConditionSignal) DeepCopy ¶
func (in *AlertsNrqlConditionSignal) DeepCopy() *AlertsNrqlConditionSignal
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertsNrqlConditionSignal.
func (*AlertsNrqlConditionSignal) DeepCopyInto ¶
func (in *AlertsNrqlConditionSignal) DeepCopyInto(out *AlertsNrqlConditionSignal)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AlertsNrqlConditionTerm ¶
type AlertsNrqlConditionTerm struct { Operator alerts.AlertsNRQLConditionTermsOperator `json:"operator,omitempty"` Priority alerts.NrqlConditionPriority `json:"priority,omitempty"` Threshold string `json:"threshold,omitempty"` ThresholdDuration int `json:"thresholdDuration,omitempty"` ThresholdOccurrences alerts.ThresholdOccurrence `json:"thresholdOccurrences,omitempty"` }
AlertsNrqlConditionTerm represents the terms of a New Relic alert condition.
func (*AlertsNrqlConditionTerm) DeepCopy ¶
func (in *AlertsNrqlConditionTerm) DeepCopy() *AlertsNrqlConditionTerm
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertsNrqlConditionTerm.
func (*AlertsNrqlConditionTerm) DeepCopyInto ¶
func (in *AlertsNrqlConditionTerm) DeepCopyInto(out *AlertsNrqlConditionTerm)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DestinationChannel ¶
type DestinationChannel struct { ChannelID string `json:"channelId,omitempty"` NotificationTriggers []workflows.AiWorkflowsNotificationTrigger `json:"notificationTriggers"` UpdateOriginalMessage *bool `json:"updateOriginalMessage,omitempty"` // Update original notification message (Slack channels only) Spec DestinationChannelSpec `json:"spec,omitempty"` }
DestinationChannel defines the channels attached to a workflow
func (*DestinationChannel) DeepCopy ¶
func (in *DestinationChannel) DeepCopy() *DestinationChannel
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DestinationChannel.
func (*DestinationChannel) DeepCopyInto ¶
func (in *DestinationChannel) DeepCopyInto(out *DestinationChannel)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DestinationChannelSpec ¶
type DestinationChannelSpec struct {
AlertChannelSpec `json:",inline"`
}
DestinationChannelSpec defines the desired state of a DestinationChannel
func (*DestinationChannelSpec) DeepCopy ¶
func (in *DestinationChannelSpec) DeepCopy() *DestinationChannelSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DestinationChannelSpec.
func (*DestinationChannelSpec) DeepCopyInto ¶
func (in *DestinationChannelSpec) DeepCopyInto(out *DestinationChannelSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NewRelicSecret ¶
type NewRelicSecret struct { Name string `json:"name,omitempty"` Namespace string `json:"namespace,omitempty"` KeyName string `json:"keyName,omitempty"` }
NewRelicSecret masks sensitive data input into configs
func (*NewRelicSecret) DeepCopy ¶
func (in *NewRelicSecret) DeepCopy() *NewRelicSecret
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NewRelicSecret.
func (*NewRelicSecret) DeepCopyInto ¶
func (in *NewRelicSecret) DeepCopyInto(out *NewRelicSecret)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NrqlCondition ¶
type NrqlCondition struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NrqlConditionSpec `json:"spec,omitempty"` Status NrqlConditionStatus `json:"status,omitempty"` }
NrqlCondition is the Schema for the nrqlconditions API
func (*NrqlCondition) ApplyDefaults ¶
func (r *NrqlCondition) ApplyDefaults()
ApplyDefaults sets default values for required fields if not set
func (*NrqlCondition) DeepCopy ¶
func (in *NrqlCondition) DeepCopy() *NrqlCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NrqlCondition.
func (*NrqlCondition) DeepCopyInto ¶
func (in *NrqlCondition) DeepCopyInto(out *NrqlCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NrqlCondition) DeepCopyObject ¶
func (in *NrqlCondition) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*NrqlCondition) Default ¶
func (r *NrqlCondition) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*NrqlCondition) IsMultiple ¶
func (r *NrqlCondition) IsMultiple(input int, divisor int) bool
IsMultiple validates that a given thresholdDuration is a multiple of the signal.aggregationWindow configured
func (*NrqlCondition) SetupWebhookWithManager ¶
func (r *NrqlCondition) SetupWebhookWithManager(mgr ctrl.Manager) error
SetupWebhookWithManager will setup the manager to manage the webhooks
func (*NrqlCondition) ValidateAPIKeyOrSecret ¶
func (r *NrqlCondition) ValidateAPIKeyOrSecret() field.ErrorList
ValidateAPIKeyOrSecret validates an api key or secret is configured
func (*NrqlCondition) ValidateConditionSchema ¶
func (r *NrqlCondition) ValidateConditionSchema() field.ErrorList
ValidateConditionSchema validates fields for a nrql condition
func (*NrqlCondition) ValidateCreate ¶
func (r *NrqlCondition) ValidateCreate() (admission.Warnings, error)
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*NrqlCondition) ValidateDelete ¶
func (r *NrqlCondition) ValidateDelete() (admission.Warnings, error)
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*NrqlCondition) ValidateTypeSwitch ¶
func (r *NrqlCondition) ValidateTypeSwitch(oldCondition *NrqlCondition) field.ErrorList
ValidateTypeSwitch validates if type is attempted to be switched from static -> baseline or vice versa
func (*NrqlCondition) ValidateUpdate ¶
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type NrqlConditionCreateQuery ¶
type NrqlConditionCreateQuery struct { Query string `json:"query,omitempty"` DataAccountID *int `json:"dataAccountId,omitempty"` EvaluationOffset *int `json:"evaluationOffset,omitempty"` }
NrqlConditionCreateQuery defines a nrql configuration
func (*NrqlConditionCreateQuery) DeepCopy ¶
func (in *NrqlConditionCreateQuery) DeepCopy() *NrqlConditionCreateQuery
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NrqlConditionCreateQuery.
func (*NrqlConditionCreateQuery) DeepCopyInto ¶
func (in *NrqlConditionCreateQuery) DeepCopyInto(out *NrqlConditionCreateQuery)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NrqlConditionList ¶
type NrqlConditionList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []NrqlCondition `json:"items"` }
NrqlConditionList contains a list of NrqlCondition
func (*NrqlConditionList) DeepCopy ¶
func (in *NrqlConditionList) DeepCopy() *NrqlConditionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NrqlConditionList.
func (*NrqlConditionList) DeepCopyInto ¶
func (in *NrqlConditionList) DeepCopyInto(out *NrqlConditionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NrqlConditionList) DeepCopyObject ¶
func (in *NrqlConditionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NrqlConditionSpec ¶
type NrqlConditionSpec struct { AlertsNrqlBaseSpec `json:",inline"` AlertsBaselineSpecificSpec `json:",inline"` }
NrqlConditionSpec defines the desired state of NrqlCondition
func (*NrqlConditionSpec) DeepCopy ¶
func (in *NrqlConditionSpec) DeepCopy() *NrqlConditionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NrqlConditionSpec.
func (*NrqlConditionSpec) DeepCopyInto ¶
func (in *NrqlConditionSpec) DeepCopyInto(out *NrqlConditionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NrqlConditionStatus ¶
type NrqlConditionStatus struct { AppliedSpec *NrqlConditionSpec `json:"appliedSpec"` ConditionID string `json:"conditionId"` }
NrqlConditionStatus defines the observed state of NrqlCondition
func (*NrqlConditionStatus) DeepCopy ¶
func (in *NrqlConditionStatus) DeepCopy() *NrqlConditionStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NrqlConditionStatus.
func (*NrqlConditionStatus) DeepCopyInto ¶
func (in *NrqlConditionStatus) DeepCopyInto(out *NrqlConditionStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PolicyCondition ¶
type PolicyCondition struct { Name string `json:"name,omitempty"` ID string `json:"id,omitempty"` Spec PolicyConditionSpec `json:"spec,omitempty"` }
PolicyCondition defines the conditions contained within an AlertPolicy
func (*PolicyCondition) DeepCopy ¶
func (in *PolicyCondition) DeepCopy() *PolicyCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyCondition.
func (*PolicyCondition) DeepCopyInto ¶
func (in *PolicyCondition) DeepCopyInto(out *PolicyCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PolicyConditionSpec ¶
type PolicyConditionSpec struct {
NrqlConditionSpec `json:",inline"`
}
PolicyConditionSpec defines the desired state of PolicyCondition
func (*PolicyConditionSpec) DeepCopy ¶
func (in *PolicyConditionSpec) DeepCopy() *PolicyConditionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyConditionSpec.
func (*PolicyConditionSpec) DeepCopyInto ¶
func (in *PolicyConditionSpec) DeepCopyInto(out *PolicyConditionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.