Documentation ¶
Overview ¶
Package v1alpha1 contains the v1alpha1 group NrqlAlertCondition resources of the New Relic provider. +kubebuilder:object:generate=true +groupName=nrqlalertcondition.provider-newrelic.crossplane.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- func AlertPolicyID() reference.ExtractValueFn
- type Expiration
- type Nrql
- type NrqlAlertCondition
- func (in *NrqlAlertCondition) DeepCopy() *NrqlAlertCondition
- func (in *NrqlAlertCondition) DeepCopyInto(out *NrqlAlertCondition)
- func (in *NrqlAlertCondition) DeepCopyObject() runtime.Object
- func (mg *NrqlAlertCondition) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (mg *NrqlAlertCondition) GetDeletionPolicy() xpv1.DeletionPolicy
- func (mg *NrqlAlertCondition) GetManagementPolicies() xpv1.ManagementPolicies
- func (mg *NrqlAlertCondition) GetProviderConfigReference() *xpv1.Reference
- func (mg *NrqlAlertCondition) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *NrqlAlertCondition) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (mg *NrqlAlertCondition) ResolveReferences(ctx context.Context, c client.Reader) error
- func (mg *NrqlAlertCondition) SetConditions(c ...xpv1.Condition)
- func (mg *NrqlAlertCondition) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *NrqlAlertCondition) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (mg *NrqlAlertCondition) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *NrqlAlertCondition) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *NrqlAlertCondition) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type NrqlAlertConditionList
- type NrqlAlertConditionObservation
- type NrqlAlertConditionParameters
- type NrqlAlertConditionSpec
- type NrqlAlertConditionStatus
- type NrqlConditionTerm
- type Signal
Constants ¶
const ( Group = "nrqlalertcondition.provider-newrelic.crossplane.io" Version = "v1alpha1" )
Package type metadata.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
var ( NrqlAlertConditionKind = reflect.TypeOf(NrqlAlertCondition{}).Name() NrqlAlertConditionGroupKind = schema.GroupKind{Group: Group, Kind: NrqlAlertConditionKind}.String() NrqlAlertConditionKindAPIVersion = NrqlAlertConditionKind + "." + SchemeGroupVersion.String() NrqlAlertConditionGroupVersionKind = SchemeGroupVersion.WithKind(NrqlAlertConditionKind) )
Condition type metadata.
Functions ¶
func AlertPolicyID ¶
func AlertPolicyID() reference.ExtractValueFn
AlertPolicyID extracts info from a kubernetes referenced object
Types ¶
type Expiration ¶
type Expiration struct { ExpirationDuration *int `json:"expirationDuration,omitempty"` OpenViolationOnExpiration bool `json:"openViolationOnExpiration"` CloseViolationsOnExpiration bool `json:"closeViolationsOnExpiration"` }
Expiration are the configurable fields of a Condition
func (*Expiration) DeepCopy ¶
func (in *Expiration) DeepCopy() *Expiration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Expiration.
func (*Expiration) DeepCopyInto ¶
func (in *Expiration) DeepCopyInto(out *Expiration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Nrql ¶
type Nrql struct {
Query string `json:"query"`
}
Nrql are the configurable fields of a Condition
func (*Nrql) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Nrql.
func (*Nrql) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NrqlAlertCondition ¶
type NrqlAlertCondition struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NrqlAlertConditionSpec `json:"spec"` Status NrqlAlertConditionStatus `json:"status,omitempty"` }
A NrqlAlertCondition is an example API type. +kubebuilder:subresource:status +kubebuilder:printcolumn:name="ID",type="string",JSONPath=".status.atProvider.id" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,newrelic}
func (*NrqlAlertCondition) DeepCopy ¶
func (in *NrqlAlertCondition) DeepCopy() *NrqlAlertCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NrqlAlertCondition.
func (*NrqlAlertCondition) DeepCopyInto ¶
func (in *NrqlAlertCondition) DeepCopyInto(out *NrqlAlertCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NrqlAlertCondition) DeepCopyObject ¶
func (in *NrqlAlertCondition) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*NrqlAlertCondition) GetCondition ¶
func (mg *NrqlAlertCondition) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this NrqlAlertCondition.
func (*NrqlAlertCondition) GetDeletionPolicy ¶
func (mg *NrqlAlertCondition) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this NrqlAlertCondition.
func (*NrqlAlertCondition) GetManagementPolicies ¶ added in v0.1.6
func (mg *NrqlAlertCondition) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this NrqlAlertCondition.
func (*NrqlAlertCondition) GetProviderConfigReference ¶
func (mg *NrqlAlertCondition) GetProviderConfigReference() *xpv1.Reference
GetProviderConfigReference of this NrqlAlertCondition.
func (*NrqlAlertCondition) GetPublishConnectionDetailsTo ¶
func (mg *NrqlAlertCondition) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this NrqlAlertCondition.
func (*NrqlAlertCondition) GetWriteConnectionSecretToReference ¶
func (mg *NrqlAlertCondition) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this NrqlAlertCondition.
func (*NrqlAlertCondition) ResolveReferences ¶
ResolveReferences of this AlertNrqlCondition
func (*NrqlAlertCondition) SetConditions ¶
func (mg *NrqlAlertCondition) SetConditions(c ...xpv1.Condition)
SetConditions of this NrqlAlertCondition.
func (*NrqlAlertCondition) SetDeletionPolicy ¶
func (mg *NrqlAlertCondition) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this NrqlAlertCondition.
func (*NrqlAlertCondition) SetManagementPolicies ¶ added in v0.1.6
func (mg *NrqlAlertCondition) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this NrqlAlertCondition.
func (*NrqlAlertCondition) SetProviderConfigReference ¶
func (mg *NrqlAlertCondition) SetProviderConfigReference(r *xpv1.Reference)
SetProviderConfigReference of this NrqlAlertCondition.
func (*NrqlAlertCondition) SetPublishConnectionDetailsTo ¶
func (mg *NrqlAlertCondition) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this NrqlAlertCondition.
func (*NrqlAlertCondition) SetWriteConnectionSecretToReference ¶
func (mg *NrqlAlertCondition) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this NrqlAlertCondition.
type NrqlAlertConditionList ¶
type NrqlAlertConditionList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []NrqlAlertCondition `json:"items"` }
NrqlAlertConditionList contains a list of Condition
func (*NrqlAlertConditionList) DeepCopy ¶
func (in *NrqlAlertConditionList) DeepCopy() *NrqlAlertConditionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NrqlAlertConditionList.
func (*NrqlAlertConditionList) DeepCopyInto ¶
func (in *NrqlAlertConditionList) DeepCopyInto(out *NrqlAlertConditionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NrqlAlertConditionList) DeepCopyObject ¶
func (in *NrqlAlertConditionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*NrqlAlertConditionList) GetItems ¶
func (l *NrqlAlertConditionList) GetItems() []resource.Managed
GetItems of this NrqlAlertConditionList.
type NrqlAlertConditionObservation ¶
type NrqlAlertConditionObservation struct { // The stable and unique string id from NewRelic. ID string `json:"id,omitempty"` ObservableField string `json:"observableField,omitempty"` }
NrqlAlertConditionObservation are the observable fields of a Condition.
func (*NrqlAlertConditionObservation) DeepCopy ¶
func (in *NrqlAlertConditionObservation) DeepCopy() *NrqlAlertConditionObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NrqlAlertConditionObservation.
func (*NrqlAlertConditionObservation) DeepCopyInto ¶
func (in *NrqlAlertConditionObservation) DeepCopyInto(out *NrqlAlertConditionObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NrqlAlertConditionParameters ¶
type NrqlAlertConditionParameters struct { ID string `json:"id,omitempty"` // +kubebuilder:validation:Enum=STATIC;BASELINE;OUTLIER Type string `json:"type,omitempty"` Name string `json:"name"` RunbookURL *string `json:"runbookUrl,omitempty"` Enabled bool `json:"enabled"` // +kubebuilder:validation:Maximum=2592000 // +kubebuilder:validation:Minimum=300 ViolationTimeLimitSeconds *int `json:"violationTimeLimitSeconds,omitempty"` // +kubebuilder:validation:MaxItems=2 Terms []NrqlConditionTerm `json:"terms"` Nrql Nrql `json:"nrql"` Signal Signal `json:"signal"` Expiration *Expiration `json:"expiration,omitempty"` Description *string `json:"description,omitempty"` // +kubebuilder:validation:Enum=LOWER_ONLY;UPPER_AND_LOWER;UPPER_ONLY BaselineDirection *string `json:"baselineDirection,omitempty"` // Below are referenced items AlertsPolicyID string `json:"policyId,omitempty"` // AlertPolicyRef is a reference to an AlertPolicy used to set // the PolicyID. // +optional AlertsPolicyRef *xpv1.Reference `json:"alertsPolicyRef,omitempty"` // AlertPolicySelector selects references to an AlertPolicy used // to set the AlertPolicyID. // +optional AlertsPolicySelector *xpv1.Selector `json:"alertsPolicySelector,omitempty"` }
NrqlAlertConditionParameters are the configurable fields of a Condition
func (*NrqlAlertConditionParameters) DeepCopy ¶
func (in *NrqlAlertConditionParameters) DeepCopy() *NrqlAlertConditionParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NrqlAlertConditionParameters.
func (*NrqlAlertConditionParameters) DeepCopyInto ¶
func (in *NrqlAlertConditionParameters) DeepCopyInto(out *NrqlAlertConditionParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NrqlAlertConditionSpec ¶
type NrqlAlertConditionSpec struct { xpv1.ResourceSpec `json:",inline"` ForProvider NrqlAlertConditionParameters `json:"forProvider"` }
A NrqlAlertConditionSpec defines the desired state of a Condition.
func (*NrqlAlertConditionSpec) DeepCopy ¶
func (in *NrqlAlertConditionSpec) DeepCopy() *NrqlAlertConditionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NrqlAlertConditionSpec.
func (*NrqlAlertConditionSpec) DeepCopyInto ¶
func (in *NrqlAlertConditionSpec) DeepCopyInto(out *NrqlAlertConditionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NrqlAlertConditionStatus ¶
type NrqlAlertConditionStatus struct { xpv1.ResourceStatus `json:",inline"` AtProvider NrqlAlertConditionObservation `json:"atProvider,omitempty"` }
A NrqlAlertConditionStatus represents the observed state of a Condition.
func (*NrqlAlertConditionStatus) DeepCopy ¶
func (in *NrqlAlertConditionStatus) DeepCopy() *NrqlAlertConditionStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NrqlAlertConditionStatus.
func (*NrqlAlertConditionStatus) DeepCopyInto ¶
func (in *NrqlAlertConditionStatus) DeepCopyInto(out *NrqlAlertConditionStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NrqlConditionTerm ¶
type NrqlConditionTerm struct { // +kubebuilder:validation:Enum=ABOVE;BELOW;EQUALS Operator string `json:"operator,omitempty"` // +kubebuilder:validation:Enum=CRITICAL;WARNING Priority string `json:"priority,omitempty"` Threshold string `json:"threshold"` // +kubebuilder:validation:Maximum=7200 // +kubebuilder:validation:Minimum=60 // +kubebuilder:validation:MultipleOf=60 ThresholdDuration int `json:"thresholdDuration,omitempty"` // +kubebuilder:validation:Enum=ALL;AT_LEAST_ONCE ThresholdOccurrences string `json:"thresholdOccurrences,omitempty"` }
NrqlConditionTerm are the configurable fields of a Condition
func (*NrqlConditionTerm) DeepCopy ¶
func (in *NrqlConditionTerm) DeepCopy() *NrqlConditionTerm
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NrqlConditionTerm.
func (*NrqlConditionTerm) DeepCopyInto ¶
func (in *NrqlConditionTerm) DeepCopyInto(out *NrqlConditionTerm)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Signal ¶
type Signal struct { // +kubebuilder:validation:Minimum=60 // +kubebuilder:validation:MultipleOf=60 AggregationWindow *int `json:"aggregationWindow,omitempty"` // +kubebuilder:validation:Enum=LAST_VALUE;NONE;STATIC FillOption string `json:"fillOption"` FillValue *string `json:"fillValue,omitempty"` // +kubebuilder:validation:Enum=CADENCE;EVENT_FLOW;EVENT_TIMER AggregationMethod *string `json:"aggregationMethod,omitempty"` AggregationDelay *int `json:"aggregationDelay,omitempty"` AggregationTimer *int `json:"aggregationTimer,omitempty"` EvaluationOffset *int `json:"evaluationOffset,omitempty"` EvaluationDelay *int `json:"evaluationDelay,omitempty"` }
Signal are the configurable fields of a Condition
func (*Signal) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Signal.
func (*Signal) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.