storage

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package storage contains API Schema definitions for the alertsmanagement storage API group +kubebuilder:object:generate=true All object properties are optional by default, this will be overridden when needed: +kubebuilder:validation:Optional +groupName=alertsmanagement.azure.com +versionName=v1api20230301storage

Code generated by azure-service-operator-codegen. DO NOT EDIT. Copyright (c) Microsoft Corporation. Licensed under the MIT license.

Index

Constants

View Source
const APIVersion_Value = APIVersion("2023-03-01")

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "alertsmanagement.azure.com", Version: "v1api20230301storage"}

	// 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
)

Functions

This section is empty.

Types

type APIVersion

type APIVersion string

Storage version of v1api20230301.APIVersion +kubebuilder:validation:Enum={"2023-03-01"}

type PrometheusRule

type PrometheusRule struct {
	Actions              []PrometheusRuleGroupAction         `json:"actions,omitempty"`
	Alert                *string                             `json:"alert,omitempty"`
	Annotations          map[string]string                   `json:"annotations,omitempty"`
	Enabled              *bool                               `json:"enabled,omitempty"`
	Expression           *string                             `json:"expression,omitempty"`
	For                  *string                             `json:"for,omitempty"`
	Labels               map[string]string                   `json:"labels,omitempty"`
	PropertyBag          genruntime.PropertyBag              `json:"$propertyBag,omitempty"`
	Record               *string                             `json:"record,omitempty"`
	ResolveConfiguration *PrometheusRuleResolveConfiguration `json:"resolveConfiguration,omitempty"`
	Severity             *int                                `json:"severity,omitempty"`
}

Storage version of v1api20230301.PrometheusRule An Azure Prometheus alerting or recording rule.

func (*PrometheusRule) DeepCopy

func (in *PrometheusRule) DeepCopy() *PrometheusRule

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

func (*PrometheusRule) DeepCopyInto

func (in *PrometheusRule) DeepCopyInto(out *PrometheusRule)

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

type PrometheusRuleGroup

type PrometheusRuleGroup struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              PrometheusRuleGroup_Spec   `json:"spec,omitempty"`
	Status            PrometheusRuleGroup_STATUS `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:storageversion +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="Severity",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].severity" +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].reason" +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].message" Storage version of v1api20230301.PrometheusRuleGroup Generator information: - Generated from: /alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2023-03-01/PrometheusRuleGroups.json - ARM URI: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{ruleGroupName}

func (*PrometheusRuleGroup) AzureName

func (group *PrometheusRuleGroup) AzureName() string

AzureName returns the Azure name of the resource

func (*PrometheusRuleGroup) DeepCopy

func (in *PrometheusRuleGroup) DeepCopy() *PrometheusRuleGroup

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

func (*PrometheusRuleGroup) DeepCopyInto

func (in *PrometheusRuleGroup) DeepCopyInto(out *PrometheusRuleGroup)

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

func (*PrometheusRuleGroup) DeepCopyObject

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

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

func (PrometheusRuleGroup) GetAPIVersion

func (group PrometheusRuleGroup) GetAPIVersion() string

GetAPIVersion returns the ARM API version of the resource. This is always "2023-03-01"

func (*PrometheusRuleGroup) GetConditions

func (group *PrometheusRuleGroup) GetConditions() conditions.Conditions

GetConditions returns the conditions of the resource

func (*PrometheusRuleGroup) GetResourceScope

func (group *PrometheusRuleGroup) GetResourceScope() genruntime.ResourceScope

GetResourceScope returns the scope of the resource

func (*PrometheusRuleGroup) GetSpec

GetSpec returns the specification of this resource

func (*PrometheusRuleGroup) GetStatus

GetStatus returns the status of this resource

func (*PrometheusRuleGroup) GetSupportedOperations

func (group *PrometheusRuleGroup) GetSupportedOperations() []genruntime.ResourceOperation

GetSupportedOperations returns the operations supported by the resource

func (*PrometheusRuleGroup) GetType

func (group *PrometheusRuleGroup) GetType() string

GetType returns the ARM Type of the resource. This is always "Microsoft.AlertsManagement/prometheusRuleGroups"

func (*PrometheusRuleGroup) Hub

func (group *PrometheusRuleGroup) Hub()

Hub marks that this PrometheusRuleGroup is the hub type for conversion

func (*PrometheusRuleGroup) NewEmptyStatus

func (group *PrometheusRuleGroup) NewEmptyStatus() genruntime.ConvertibleStatus

NewEmptyStatus returns a new empty (blank) status

func (*PrometheusRuleGroup) OriginalGVK

func (group *PrometheusRuleGroup) OriginalGVK() *schema.GroupVersionKind

OriginalGVK returns a GroupValueKind for the original API version used to create the resource

func (*PrometheusRuleGroup) Owner

Owner returns the ResourceReference of the owner

func (*PrometheusRuleGroup) SetConditions

func (group *PrometheusRuleGroup) SetConditions(conditions conditions.Conditions)

SetConditions sets the conditions on the resource status

func (*PrometheusRuleGroup) SetStatus

func (group *PrometheusRuleGroup) SetStatus(status genruntime.ConvertibleStatus) error

SetStatus sets the status of this resource

type PrometheusRuleGroupAction

type PrometheusRuleGroupAction struct {
	// ActionGroupReference: The resource id of the action group to use.
	ActionGroupReference *genruntime.ResourceReference `armReference:"ActionGroupId" json:"actionGroupReference,omitempty"`
	ActionProperties     map[string]string             `json:"actionProperties,omitempty"`
	PropertyBag          genruntime.PropertyBag        `json:"$propertyBag,omitempty"`
}

Storage version of v1api20230301.PrometheusRuleGroupAction An alert action. Only relevant for alerts.

func (*PrometheusRuleGroupAction) DeepCopy

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

func (*PrometheusRuleGroupAction) DeepCopyInto

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

type PrometheusRuleGroupAction_STATUS

type PrometheusRuleGroupAction_STATUS struct {
	ActionGroupId    *string                `json:"actionGroupId,omitempty"`
	ActionProperties map[string]string      `json:"actionProperties,omitempty"`
	PropertyBag      genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

Storage version of v1api20230301.PrometheusRuleGroupAction_STATUS An alert action. Only relevant for alerts.

func (*PrometheusRuleGroupAction_STATUS) DeepCopy

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

func (*PrometheusRuleGroupAction_STATUS) DeepCopyInto

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

type PrometheusRuleGroupList

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

+kubebuilder:object:root=true Storage version of v1api20230301.PrometheusRuleGroup Generator information: - Generated from: /alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2023-03-01/PrometheusRuleGroups.json - ARM URI: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{ruleGroupName}

func (*PrometheusRuleGroupList) DeepCopy

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

func (*PrometheusRuleGroupList) DeepCopyInto

func (in *PrometheusRuleGroupList) DeepCopyInto(out *PrometheusRuleGroupList)

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

func (*PrometheusRuleGroupList) DeepCopyObject

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

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

type PrometheusRuleGroup_STATUS

type PrometheusRuleGroup_STATUS struct {
	ClusterName *string                 `json:"clusterName,omitempty"`
	Conditions  []conditions.Condition  `json:"conditions,omitempty"`
	Description *string                 `json:"description,omitempty"`
	Enabled     *bool                   `json:"enabled,omitempty"`
	Id          *string                 `json:"id,omitempty"`
	Interval    *string                 `json:"interval,omitempty"`
	Location    *string                 `json:"location,omitempty"`
	Name        *string                 `json:"name,omitempty"`
	PropertyBag genruntime.PropertyBag  `json:"$propertyBag,omitempty"`
	Rules       []PrometheusRule_STATUS `json:"rules,omitempty"`
	Scopes      []string                `json:"scopes,omitempty"`
	SystemData  *SystemData_STATUS      `json:"systemData,omitempty"`
	Tags        map[string]string       `json:"tags,omitempty"`
	Type        *string                 `json:"type,omitempty"`
}

Storage version of v1api20230301.PrometheusRuleGroup_STATUS

func (*PrometheusRuleGroup_STATUS) ConvertStatusFrom

func (group *PrometheusRuleGroup_STATUS) ConvertStatusFrom(source genruntime.ConvertibleStatus) error

ConvertStatusFrom populates our PrometheusRuleGroup_STATUS from the provided source

func (*PrometheusRuleGroup_STATUS) ConvertStatusTo

func (group *PrometheusRuleGroup_STATUS) ConvertStatusTo(destination genruntime.ConvertibleStatus) error

ConvertStatusTo populates the provided destination from our PrometheusRuleGroup_STATUS

func (*PrometheusRuleGroup_STATUS) DeepCopy

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

func (*PrometheusRuleGroup_STATUS) DeepCopyInto

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

type PrometheusRuleGroup_Spec

type PrometheusRuleGroup_Spec struct {
	// AzureName: The name of the resource in Azure. This is often the same as the name of the resource in Kubernetes but it
	// doesn't have to be.
	AzureName       string  `json:"azureName,omitempty"`
	ClusterName     *string `json:"clusterName,omitempty"`
	Description     *string `json:"description,omitempty"`
	Enabled         *bool   `json:"enabled,omitempty"`
	Interval        *string `json:"interval,omitempty"`
	Location        *string `json:"location,omitempty"`
	OriginalVersion string  `json:"originalVersion,omitempty"`

	// +kubebuilder:validation:Required
	// Owner: The owner of the resource. The owner controls where the resource goes when it is deployed. The owner also
	// controls the resources lifecycle. When the owner is deleted the resource will also be deleted. Owner is expected to be a
	// reference to a resources.azure.com/ResourceGroup resource
	Owner            *genruntime.KnownResourceReference `group:"resources.azure.com" json:"owner,omitempty" kind:"ResourceGroup"`
	PropertyBag      genruntime.PropertyBag             `json:"$propertyBag,omitempty"`
	Rules            []PrometheusRule                   `json:"rules,omitempty"`
	ScopesReferences []genruntime.ResourceReference     `armReference:"Scopes" json:"scopesReferences,omitempty"`
	Tags             map[string]string                  `json:"tags,omitempty"`
}

Storage version of v1api20230301.PrometheusRuleGroup_Spec

func (*PrometheusRuleGroup_Spec) ConvertSpecFrom

func (group *PrometheusRuleGroup_Spec) ConvertSpecFrom(source genruntime.ConvertibleSpec) error

ConvertSpecFrom populates our PrometheusRuleGroup_Spec from the provided source

func (*PrometheusRuleGroup_Spec) ConvertSpecTo

func (group *PrometheusRuleGroup_Spec) ConvertSpecTo(destination genruntime.ConvertibleSpec) error

ConvertSpecTo populates the provided destination from our PrometheusRuleGroup_Spec

func (*PrometheusRuleGroup_Spec) DeepCopy

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

func (*PrometheusRuleGroup_Spec) DeepCopyInto

func (in *PrometheusRuleGroup_Spec) DeepCopyInto(out *PrometheusRuleGroup_Spec)

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

type PrometheusRuleResolveConfiguration

type PrometheusRuleResolveConfiguration struct {
	AutoResolved  *bool                  `json:"autoResolved,omitempty"`
	PropertyBag   genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	TimeToResolve *string                `json:"timeToResolve,omitempty"`
}

Storage version of v1api20230301.PrometheusRuleResolveConfiguration Specifies the Prometheus alert rule configuration.

func (*PrometheusRuleResolveConfiguration) DeepCopy

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

func (*PrometheusRuleResolveConfiguration) DeepCopyInto

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

type PrometheusRuleResolveConfiguration_STATUS

type PrometheusRuleResolveConfiguration_STATUS struct {
	AutoResolved  *bool                  `json:"autoResolved,omitempty"`
	PropertyBag   genruntime.PropertyBag `json:"$propertyBag,omitempty"`
	TimeToResolve *string                `json:"timeToResolve,omitempty"`
}

Storage version of v1api20230301.PrometheusRuleResolveConfiguration_STATUS Specifies the Prometheus alert rule configuration.

func (*PrometheusRuleResolveConfiguration_STATUS) DeepCopy

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

func (*PrometheusRuleResolveConfiguration_STATUS) DeepCopyInto

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

type PrometheusRule_STATUS

type PrometheusRule_STATUS struct {
	Actions              []PrometheusRuleGroupAction_STATUS         `json:"actions,omitempty"`
	Alert                *string                                    `json:"alert,omitempty"`
	Annotations          map[string]string                          `json:"annotations,omitempty"`
	Enabled              *bool                                      `json:"enabled,omitempty"`
	Expression           *string                                    `json:"expression,omitempty"`
	For                  *string                                    `json:"for,omitempty"`
	Labels               map[string]string                          `json:"labels,omitempty"`
	PropertyBag          genruntime.PropertyBag                     `json:"$propertyBag,omitempty"`
	Record               *string                                    `json:"record,omitempty"`
	ResolveConfiguration *PrometheusRuleResolveConfiguration_STATUS `json:"resolveConfiguration,omitempty"`
	Severity             *int                                       `json:"severity,omitempty"`
}

Storage version of v1api20230301.PrometheusRule_STATUS An Azure Prometheus alerting or recording rule.

func (*PrometheusRule_STATUS) DeepCopy

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

func (*PrometheusRule_STATUS) DeepCopyInto

func (in *PrometheusRule_STATUS) DeepCopyInto(out *PrometheusRule_STATUS)

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

type SystemData_STATUS

type SystemData_STATUS struct {
	CreatedAt          *string                `json:"createdAt,omitempty"`
	CreatedBy          *string                `json:"createdBy,omitempty"`
	CreatedByType      *string                `json:"createdByType,omitempty"`
	LastModifiedAt     *string                `json:"lastModifiedAt,omitempty"`
	LastModifiedBy     *string                `json:"lastModifiedBy,omitempty"`
	LastModifiedByType *string                `json:"lastModifiedByType,omitempty"`
	PropertyBag        genruntime.PropertyBag `json:"$propertyBag,omitempty"`
}

Storage version of v1api20230301.SystemData_STATUS Metadata pertaining to creation and last modification of the resource.

func (*SystemData_STATUS) DeepCopy

func (in *SystemData_STATUS) DeepCopy() *SystemData_STATUS

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

func (*SystemData_STATUS) DeepCopyInto

func (in *SystemData_STATUS) DeepCopyInto(out *SystemData_STATUS)

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