v1beta1

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=ces.flexibleengine.upbound.io +versionName=v1beta1

Index

Constants

View Source
const (
	CRDGroup   = "ces.flexibleengine.upbound.io"
	CRDVersion = "v1beta1"
)

Package type metadata.

Variables

View Source
var (
	AlarmRule_Kind             = "AlarmRule"
	AlarmRule_GroupKind        = schema.GroupKind{Group: CRDGroup, Kind: AlarmRule_Kind}.String()
	AlarmRule_KindAPIVersion   = AlarmRule_Kind + "." + CRDGroupVersion.String()
	AlarmRule_GroupVersionKind = CRDGroupVersion.WithKind(AlarmRule_Kind)
)

Repository type metadata.

View Source
var (
	// CRDGroupVersion is the API Group Version used to register the objects
	CRDGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: CRDGroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type AlarmActionsObservation

type AlarmActionsObservation struct {
}

func (*AlarmActionsObservation) DeepCopy

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

func (*AlarmActionsObservation) DeepCopyInto

func (in *AlarmActionsObservation) DeepCopyInto(out *AlarmActionsObservation)

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

type AlarmActionsParameters

type AlarmActionsParameters struct {

	// specifies the list of objects to be notified
	// if the alarm status changes, the maximum length is 5.
	// if type is set to notification, the value of notification_list cannot be empty.
	// if type is set to autoscaling, the value of notification_list must be []
	// and the value of namespace must be SYS.AS.
	// Note: to enable the autoscaling alarm rules take effect, you must bind scaling
	// policies.
	// +crossplane:generate:reference:type=github.com/FrangipaneTeam/provider-flexibleengine/apis/smn/v1beta1.Topic
	// +kubebuilder:validation:Optional
	NotificationList []*string `json:"notificationList,omitempty" tf:"notification_list,omitempty"`

	// References to Topic in smn to populate notificationList.
	// +kubebuilder:validation:Optional
	NotificationListRefs []v1.Reference `json:"notificationListRefs,omitempty" tf:"-"`

	// Selector for a list of Topic in smn to populate notificationList.
	// +kubebuilder:validation:Optional
	NotificationListSelector *v1.Selector `json:"notificationListSelector,omitempty" tf:"-"`

	// specifies the type of action triggered by an alarm. the
	// value can be notification or autoscaling.
	// +kubebuilder:validation:Required
	Type *string `json:"type" tf:"type,omitempty"`
}

func (*AlarmActionsParameters) DeepCopy

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

func (*AlarmActionsParameters) DeepCopyInto

func (in *AlarmActionsParameters) DeepCopyInto(out *AlarmActionsParameters)

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

type AlarmRule

type AlarmRule struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              AlarmRuleSpec   `json:"spec"`
	Status            AlarmRuleStatus `json:"status,omitempty"`
}

AlarmRule is the Schema for the AlarmRules API. ""page_title: "flexibleengine_ces_alarmrule" +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="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,flexibleengine}

func (*AlarmRule) DeepCopy

func (in *AlarmRule) DeepCopy() *AlarmRule

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

func (*AlarmRule) DeepCopyInto

func (in *AlarmRule) DeepCopyInto(out *AlarmRule)

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

func (*AlarmRule) DeepCopyObject

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

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

func (*AlarmRule) GetCondition

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

GetCondition of this AlarmRule.

func (*AlarmRule) GetConnectionDetailsMapping

func (tr *AlarmRule) GetConnectionDetailsMapping() map[string]string

GetConnectionDetailsMapping for this AlarmRule

func (*AlarmRule) GetDeletionPolicy

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

GetDeletionPolicy of this AlarmRule.

func (*AlarmRule) GetID

func (tr *AlarmRule) GetID() string

GetID returns ID of underlying Terraform resource of this AlarmRule

func (*AlarmRule) GetObservation

func (tr *AlarmRule) GetObservation() (map[string]any, error)

GetObservation of this AlarmRule

func (*AlarmRule) GetParameters

func (tr *AlarmRule) GetParameters() (map[string]any, error)

GetParameters of this AlarmRule

func (*AlarmRule) GetProviderConfigReference

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

GetProviderConfigReference of this AlarmRule.

func (*AlarmRule) GetProviderReference

func (mg *AlarmRule) GetProviderReference() *xpv1.Reference

GetProviderReference of this AlarmRule. Deprecated: Use GetProviderConfigReference.

func (*AlarmRule) GetPublishConnectionDetailsTo

func (mg *AlarmRule) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this AlarmRule.

func (*AlarmRule) GetTerraformResourceType

func (mg *AlarmRule) GetTerraformResourceType() string

GetTerraformResourceType returns Terraform resource type for this AlarmRule

func (*AlarmRule) GetTerraformSchemaVersion

func (tr *AlarmRule) GetTerraformSchemaVersion() int

GetTerraformSchemaVersion returns the associated Terraform schema version

func (*AlarmRule) GetWriteConnectionSecretToReference

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

GetWriteConnectionSecretToReference of this AlarmRule.

func (*AlarmRule) LateInitialize

func (tr *AlarmRule) LateInitialize(attrs []byte) (bool, error)

LateInitialize this AlarmRule using its observed tfState. returns True if there are any spec changes for the resource.

func (*AlarmRule) ResolveReferences added in v0.3.0

func (mg *AlarmRule) ResolveReferences(ctx context.Context, c client.Reader) error

ResolveReferences of this AlarmRule.

func (*AlarmRule) SetConditions

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

SetConditions of this AlarmRule.

func (*AlarmRule) SetDeletionPolicy

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

SetDeletionPolicy of this AlarmRule.

func (*AlarmRule) SetObservation

func (tr *AlarmRule) SetObservation(obs map[string]any) error

SetObservation for this AlarmRule

func (*AlarmRule) SetParameters

func (tr *AlarmRule) SetParameters(params map[string]any) error

SetParameters for this AlarmRule

func (*AlarmRule) SetProviderConfigReference

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

SetProviderConfigReference of this AlarmRule.

func (*AlarmRule) SetProviderReference

func (mg *AlarmRule) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this AlarmRule. Deprecated: Use SetProviderConfigReference.

func (*AlarmRule) SetPublishConnectionDetailsTo

func (mg *AlarmRule) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this AlarmRule.

func (*AlarmRule) SetWriteConnectionSecretToReference

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

SetWriteConnectionSecretToReference of this AlarmRule.

type AlarmRuleList

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

AlarmRuleList contains a list of AlarmRules

func (*AlarmRuleList) DeepCopy

func (in *AlarmRuleList) DeepCopy() *AlarmRuleList

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

func (*AlarmRuleList) DeepCopyInto

func (in *AlarmRuleList) DeepCopyInto(out *AlarmRuleList)

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

func (*AlarmRuleList) DeepCopyObject

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

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

func (*AlarmRuleList) GetItems

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

GetItems of this AlarmRuleList.

type AlarmRuleObservation

type AlarmRuleObservation struct {

	// Indicates the alarm status. The value can be:
	AlarmState *string `json:"alarmState,omitempty" tf:"alarm_state,omitempty"`

	// Specifies the alarm triggering condition. The structure
	// is described below.
	// +kubebuilder:validation:Required
	Condition []ConditionObservation `json:"condition,omitempty" tf:"condition,omitempty"`

	// Indicates the alarm rule ID.
	ID *string `json:"id,omitempty" tf:"id,omitempty"`

	// Indicates the time when the alarm status changed.
	// The value is a UNIX timestamp and the unit is ms.
	UpdateTime *float64 `json:"updateTime,omitempty" tf:"update_time,omitempty"`
}

func (*AlarmRuleObservation) DeepCopy

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

func (*AlarmRuleObservation) DeepCopyInto

func (in *AlarmRuleObservation) DeepCopyInto(out *AlarmRuleObservation)

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

type AlarmRuleParameters

type AlarmRuleParameters struct {

	// Specifies whether to enable the action
	// to be triggered by an alarm. The default value is true.
	// +kubebuilder:validation:Optional
	AlarmActionEnabled *bool `json:"alarmActionEnabled,omitempty" tf:"alarm_action_enabled,omitempty"`

	// Specifies the action triggered by an alarm. The
	// structure is described below.
	// +kubebuilder:validation:Optional
	AlarmActions []AlarmActionsParameters `json:"alarmActions,omitempty" tf:"alarm_actions,omitempty"`

	// The value can be a string of 0 to 256 characters.
	// +kubebuilder:validation:Optional
	AlarmDescription *string `json:"alarmDescription,omitempty" tf:"alarm_description,omitempty"`

	// Specifies whether to enable the alarm. The default
	// value is true.
	// +kubebuilder:validation:Optional
	AlarmEnabled *bool `json:"alarmEnabled,omitempty" tf:"alarm_enabled,omitempty"`

	// Specifies the alarm severity. The value can be
	// 1, 2, 3 or 4, which indicates critical, major, minor, and informational, respectively.
	// The default value is 2. Changing this creates a new resource.
	// +kubebuilder:validation:Optional
	AlarmLevel *float64 `json:"alarmLevel,omitempty" tf:"alarm_level,omitempty"`

	// Specifies the name of an alarm rule. The value can
	// be a string of 1 to 128 characters that can consist of numbers, lowercase letters,
	// uppercase letters, underscores (_), or hyphens (-).
	// +kubebuilder:validation:Required
	AlarmName *string `json:"alarmName" tf:"alarm_name,omitempty"`

	// Specifies the alarm triggering condition. The structure
	// is described below.
	// +kubebuilder:validation:Required
	Condition []ConditionParameters `json:"condition" tf:"condition,omitempty"`

	// +kubebuilder:validation:Optional
	InsufficientdataActions []InsufficientdataActionsParameters `json:"insufficientdataActions,omitempty" tf:"insufficientdata_actions,omitempty"`

	// Specifies the alarm metrics. The structure is described
	// below.
	// +kubebuilder:validation:Required
	Metric []MetricParameters `json:"metric" tf:"metric,omitempty"`

	// Specifies the action triggered by the clearing of
	// an alarm. The structure is described below.
	// +kubebuilder:validation:Optional
	OkActions []OkActionsParameters `json:"okActions,omitempty" tf:"ok_actions,omitempty"`

	// +kubebuilder:validation:Optional
	Region *string `json:"region,omitempty" tf:"region,omitempty"`
}

func (*AlarmRuleParameters) DeepCopy

func (in *AlarmRuleParameters) DeepCopy() *AlarmRuleParameters

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

func (*AlarmRuleParameters) DeepCopyInto

func (in *AlarmRuleParameters) DeepCopyInto(out *AlarmRuleParameters)

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

type AlarmRuleSpec

type AlarmRuleSpec struct {
	v1.ResourceSpec `json:",inline"`
	ForProvider     AlarmRuleParameters `json:"forProvider"`
}

AlarmRuleSpec defines the desired state of AlarmRule

func (*AlarmRuleSpec) DeepCopy

func (in *AlarmRuleSpec) DeepCopy() *AlarmRuleSpec

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

func (*AlarmRuleSpec) DeepCopyInto

func (in *AlarmRuleSpec) DeepCopyInto(out *AlarmRuleSpec)

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

type AlarmRuleStatus

type AlarmRuleStatus struct {
	v1.ResourceStatus `json:",inline"`
	AtProvider        AlarmRuleObservation `json:"atProvider,omitempty"`
}

AlarmRuleStatus defines the observed state of AlarmRule.

func (*AlarmRuleStatus) DeepCopy

func (in *AlarmRuleStatus) DeepCopy() *AlarmRuleStatus

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

func (*AlarmRuleStatus) DeepCopyInto

func (in *AlarmRuleStatus) DeepCopyInto(out *AlarmRuleStatus)

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

type ConditionObservation

type ConditionObservation struct {
	SuppressDuration *float64 `json:"suppressDuration,omitempty" tf:"suppress_duration,omitempty"`
}

func (*ConditionObservation) DeepCopy

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

func (*ConditionObservation) DeepCopyInto

func (in *ConditionObservation) DeepCopyInto(out *ConditionObservation)

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

type ConditionParameters

type ConditionParameters struct {

	// Specifies the comparison condition of alarm
	// thresholds. The value can be >, =, <, >=, or <=.
	// +kubebuilder:validation:Required
	ComparisonOperator *string `json:"comparisonOperator" tf:"comparison_operator,omitempty"`

	// Specifies the number of consecutive occurrence times.
	// The value ranges from 1 to 5.
	// +kubebuilder:validation:Required
	Count *float64 `json:"count" tf:"count,omitempty"`

	// Specifies the data rollup methods. The value can be
	// max, min, average, sum, and vaiance.
	// +kubebuilder:validation:Required
	Filter *string `json:"filter" tf:"filter,omitempty"`

	// Specifies the alarm checking period in seconds. The
	// value can be 1, 300, 1200, 3600, 14400, and 86400.
	// Note: If period is set to 1, the raw metric data is used to determine
	// whether to generate an alarm.
	// +kubebuilder:validation:Required
	Period *float64 `json:"period" tf:"period,omitempty"`

	// Specifies the data unit.
	// +kubebuilder:validation:Optional
	Unit *string `json:"unit,omitempty" tf:"unit,omitempty"`

	// Specifies the alarm threshold. The value ranges from
	// 0 to Number of 1.7976931348623157e+308.
	// +kubebuilder:validation:Required
	Value *float64 `json:"value" tf:"value,omitempty"`
}

func (*ConditionParameters) DeepCopy

func (in *ConditionParameters) DeepCopy() *ConditionParameters

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

func (*ConditionParameters) DeepCopyInto

func (in *ConditionParameters) DeepCopyInto(out *ConditionParameters)

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

type DimensionsObservation

type DimensionsObservation struct {
}

func (*DimensionsObservation) DeepCopy

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

func (*DimensionsObservation) DeepCopyInto

func (in *DimensionsObservation) DeepCopyInto(out *DimensionsObservation)

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

type DimensionsParameters

type DimensionsParameters struct {

	// Specifies the dimension name. The value can be a string
	// of 1 to 32 characters that must start with a letter and can consists of uppercase
	// letters, lowercase letters, numbers, underscores (_), or hyphens (-).
	// +kubebuilder:validation:Required
	Name *string `json:"name" tf:"name,omitempty"`

	// Specifies the dimension value. The value can be a string
	// of 1 to 64 characters that must start with a letter or a number and can consists
	// of uppercase letters, lowercase letters, numbers, underscores (_), or hyphens
	// (-).
	// +kubebuilder:validation:Required
	Value *string `json:"value" tf:"value,omitempty"`
}

func (*DimensionsParameters) DeepCopy

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

func (*DimensionsParameters) DeepCopyInto

func (in *DimensionsParameters) DeepCopyInto(out *DimensionsParameters)

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

type InsufficientdataActionsObservation

type InsufficientdataActionsObservation struct {
}

func (*InsufficientdataActionsObservation) DeepCopy

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

func (*InsufficientdataActionsObservation) DeepCopyInto

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

type InsufficientdataActionsParameters

type InsufficientdataActionsParameters struct {

	// specifies the list of objects to be notified
	// if the alarm status changes, the maximum length is 5.
	// +kubebuilder:validation:Required
	NotificationList []*string `json:"notificationList" tf:"notification_list,omitempty"`

	// specifies the type of action triggered by an alarm. the
	// value is notification.
	// notification: indicates that a notification will be sent to the user.
	// +kubebuilder:validation:Required
	Type *string `json:"type" tf:"type,omitempty"`
}

func (*InsufficientdataActionsParameters) DeepCopy

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

func (*InsufficientdataActionsParameters) DeepCopyInto

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

type MetricObservation

type MetricObservation struct {
}

func (*MetricObservation) DeepCopy

func (in *MetricObservation) DeepCopy() *MetricObservation

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

func (*MetricObservation) DeepCopyInto

func (in *MetricObservation) DeepCopyInto(out *MetricObservation)

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

type MetricParameters

type MetricParameters struct {

	// Specifies the list of metric dimensions. Currently,
	// the maximum length of the dimesion list that are supported is 3. The structure
	// is described below.
	// +kubebuilder:validation:Required
	Dimensions []DimensionsParameters `json:"dimensions" tf:"dimensions,omitempty"`

	// Specifies the metric name. The value can be a string
	// of 1 to 64 characters that must start with a letter and can consists of uppercase
	// letters, lowercase letters, numbers, or underscores (_).
	// +kubebuilder:validation:Required
	MetricName *string `json:"metricName" tf:"metric_name,omitempty"`

	// Specifies the namespace in service.item format.
	// service.item can be a string of 3 to 32 characters that must start with a letter and
	// can consists of uppercase letters, lowercase letters, numbers, or underscores (_).
	// For details, see Services Interconnected with Cloud Eye.
	// +kubebuilder:validation:Required
	Namespace *string `json:"namespace" tf:"namespace,omitempty"`
}

func (*MetricParameters) DeepCopy

func (in *MetricParameters) DeepCopy() *MetricParameters

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

func (*MetricParameters) DeepCopyInto

func (in *MetricParameters) DeepCopyInto(out *MetricParameters)

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

type OkActionsObservation

type OkActionsObservation struct {
}

func (*OkActionsObservation) DeepCopy

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

func (*OkActionsObservation) DeepCopyInto

func (in *OkActionsObservation) DeepCopyInto(out *OkActionsObservation)

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

type OkActionsParameters

type OkActionsParameters struct {

	// specifies the list of objects to be notified
	// if the alarm status changes, the maximum length is 5.
	// +kubebuilder:validation:Required
	NotificationList []*string `json:"notificationList" tf:"notification_list,omitempty"`

	// specifies the type of action triggered by an alarm. the
	// value is notification.
	// notification: indicates that a notification will be sent to the user.
	// +kubebuilder:validation:Required
	Type *string `json:"type" tf:"type,omitempty"`
}

func (*OkActionsParameters) DeepCopy

func (in *OkActionsParameters) DeepCopy() *OkActionsParameters

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

func (*OkActionsParameters) DeepCopyInto

func (in *OkActionsParameters) DeepCopyInto(out *OkActionsParameters)

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