v1alpha1

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha1 contains the v1alpha1 group AlertsPolicy resources of the New Relic provider. +kubebuilder:object:generate=true +groupName=alertspolicy.provider-newrelic.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	Group   = "alertspolicy.provider-newrelic.crossplane.io"
	Version = "v1alpha1"
)

Package type metadata.

Variables

View Source
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}
)
View Source
var (
	AlertsPolicyKind             = reflect.TypeOf(AlertsPolicy{}).Name()
	AlertsPolicyGroupKind        = schema.GroupKind{Group: Group, Kind: AlertsPolicyKind}.String()
	AlertsPolicyKindAPIVersion   = AlertsPolicyKind + "." + SchemeGroupVersion.String()
	AlertsPolicyGroupVersionKind = SchemeGroupVersion.WithKind(AlertsPolicyKind)
)

AlertsPolicy type metadata.

Functions

This section is empty.

Types

type AlertsPolicy

type AlertsPolicy struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AlertsPolicySpec   `json:"spec"`
	Status AlertsPolicyStatus `json:"status,omitempty"`
}

AlertsPolicy 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 (*AlertsPolicy) DeepCopy

func (in *AlertsPolicy) DeepCopy() *AlertsPolicy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertsPolicy.

func (*AlertsPolicy) DeepCopyInto

func (in *AlertsPolicy) DeepCopyInto(out *AlertsPolicy)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AlertsPolicy) DeepCopyObject

func (in *AlertsPolicy) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AlertsPolicy) GetCondition

func (mg *AlertsPolicy) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this AlertsPolicy.

func (*AlertsPolicy) GetDeletionPolicy

func (mg *AlertsPolicy) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this AlertsPolicy.

func (*AlertsPolicy) GetManagementPolicies added in v0.1.6

func (mg *AlertsPolicy) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this AlertsPolicy.

func (*AlertsPolicy) GetProviderConfigReference

func (mg *AlertsPolicy) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this AlertsPolicy.

func (*AlertsPolicy) GetPublishConnectionDetailsTo

func (in *AlertsPolicy) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo is a func for connection details

func (*AlertsPolicy) GetWriteConnectionSecretToReference

func (mg *AlertsPolicy) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this AlertsPolicy.

func (*AlertsPolicy) SetConditions

func (mg *AlertsPolicy) SetConditions(c ...xpv1.Condition)

SetConditions of this AlertsPolicy.

func (*AlertsPolicy) SetDeletionPolicy

func (mg *AlertsPolicy) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this AlertsPolicy.

func (*AlertsPolicy) SetManagementPolicies added in v0.1.6

func (mg *AlertsPolicy) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this AlertsPolicy.

func (*AlertsPolicy) SetProviderConfigReference

func (mg *AlertsPolicy) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this AlertsPolicy.

func (*AlertsPolicy) SetPublishConnectionDetailsTo

func (in *AlertsPolicy) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo is a func for connection details

func (*AlertsPolicy) SetWriteConnectionSecretToReference

func (mg *AlertsPolicy) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this AlertsPolicy.

type AlertsPolicyList

type AlertsPolicyList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []AlertsPolicy `json:"items"`
}

AlertsPolicyList contains a list of AlertsPolicy

func (*AlertsPolicyList) DeepCopy

func (in *AlertsPolicyList) DeepCopy() *AlertsPolicyList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertsPolicyList.

func (*AlertsPolicyList) DeepCopyInto

func (in *AlertsPolicyList) DeepCopyInto(out *AlertsPolicyList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AlertsPolicyList) DeepCopyObject

func (in *AlertsPolicyList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*AlertsPolicyList) GetItems

func (l *AlertsPolicyList) GetItems() []resource.Managed

GetItems of this AlertsPolicyList.

type AlertsPolicyObservation

type AlertsPolicyObservation struct {
	// The stable and unique string id from NewRelic.
	ID              string `json:"id,omitempty"`
	ObservableField string `json:"observableField,omitempty"`
}

AlertsPolicyObservation are the observable fields of a AlertsPolicy.

func (*AlertsPolicyObservation) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertsPolicyObservation.

func (*AlertsPolicyObservation) DeepCopyInto

func (in *AlertsPolicyObservation) DeepCopyInto(out *AlertsPolicyObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AlertsPolicyParameters

type AlertsPolicyParameters struct {
	// Primary key for policies.
	ID string `json:"id,omitempty"`
	// Determines how incidents are created for critical violations of the conditions contained in the policy.
	// +kubebuilder:validation:Enum=PER_CONDITION;PER_CONDITION_AND_TARGET;PER_POLICY
	IncidentPreference string `json:"incidentPreference"`
	// Description of the policy.
	Name       string `json:"name"`
	ChannelIDs []int  `json:"channelIds"`
}

AlertsPolicyParameters - Container for conditions with associated notifications channels.

func (*AlertsPolicyParameters) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertsPolicyParameters.

func (*AlertsPolicyParameters) DeepCopyInto

func (in *AlertsPolicyParameters) DeepCopyInto(out *AlertsPolicyParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AlertsPolicySpec

type AlertsPolicySpec struct {
	xpv1.ResourceSpec `json:",inline"`
	ForProvider       AlertsPolicyParameters `json:"forProvider"`
}

AlertsPolicySpec defines the desired state of a AlertsPolicy.

func (*AlertsPolicySpec) DeepCopy

func (in *AlertsPolicySpec) DeepCopy() *AlertsPolicySpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertsPolicySpec.

func (*AlertsPolicySpec) DeepCopyInto

func (in *AlertsPolicySpec) DeepCopyInto(out *AlertsPolicySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AlertsPolicyStatus

type AlertsPolicyStatus struct {
	xpv1.ResourceStatus `json:",inline"`
	AtProvider          AlertsPolicyObservation `json:"atProvider,omitempty"`
}

AlertsPolicyStatus represents the observed state of a AlertsPolicy.

func (*AlertsPolicyStatus) DeepCopy

func (in *AlertsPolicyStatus) DeepCopy() *AlertsPolicyStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertsPolicyStatus.

func (*AlertsPolicyStatus) DeepCopyInto

func (in *AlertsPolicyStatus) DeepCopyInto(out *AlertsPolicyStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL