Documentation ¶
Index ¶
- func ValidatePrometheusRuleGroupID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListByResourceGroupOperationResponse
- type ListBySubscriptionOperationResponse
- type PrometheusRule
- type PrometheusRuleGroupAction
- type PrometheusRuleGroupId
- type PrometheusRuleGroupProperties
- type PrometheusRuleGroupResource
- type PrometheusRuleGroupResourceCollection
- type PrometheusRuleGroupResourcePatchParameters
- type PrometheusRuleGroupResourcePatchParametersProperties
- type PrometheusRuleGroupsClient
- func (c PrometheusRuleGroupsClient) CreateOrUpdate(ctx context.Context, id PrometheusRuleGroupId, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c PrometheusRuleGroupsClient) Delete(ctx context.Context, id PrometheusRuleGroupId) (result DeleteOperationResponse, err error)
- func (c PrometheusRuleGroupsClient) Get(ctx context.Context, id PrometheusRuleGroupId) (result GetOperationResponse, err error)
- func (c PrometheusRuleGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
- func (c PrometheusRuleGroupsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error)
- func (c PrometheusRuleGroupsClient) Update(ctx context.Context, id PrometheusRuleGroupId, ...) (result UpdateOperationResponse, err error)
- type PrometheusRuleResolveConfiguration
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidatePrometheusRuleGroupID ¶
func ValidatePrometheusRuleGroupID(input interface{}, key string) (warnings []string, errors []error)
ValidatePrometheusRuleGroupID checks that 'input' can be parsed as a Prometheus Rule Group ID
Types ¶
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *PrometheusRuleGroupResource }
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *PrometheusRuleGroupResource }
type ListByResourceGroupOperationResponse ¶
type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *PrometheusRuleGroupResourceCollection }
type ListBySubscriptionOperationResponse ¶
type ListBySubscriptionOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *PrometheusRuleGroupResourceCollection }
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"` For *string `json:"for,omitempty"` Labels *map[string]string `json:"labels,omitempty"` Record *string `json:"record,omitempty"` ResolveConfiguration *PrometheusRuleResolveConfiguration `json:"resolveConfiguration,omitempty"` Severity *int64 `json:"severity,omitempty"` }
type PrometheusRuleGroupId ¶
type PrometheusRuleGroupId struct { SubscriptionId string ResourceGroupName string PrometheusRuleGroupName string }
PrometheusRuleGroupId is a struct representing the Resource ID for a Prometheus Rule Group
func NewPrometheusRuleGroupID ¶
func NewPrometheusRuleGroupID(subscriptionId string, resourceGroupName string, prometheusRuleGroupName string) PrometheusRuleGroupId
NewPrometheusRuleGroupID returns a new PrometheusRuleGroupId struct
func ParsePrometheusRuleGroupID ¶
func ParsePrometheusRuleGroupID(input string) (*PrometheusRuleGroupId, error)
ParsePrometheusRuleGroupID parses 'input' into a PrometheusRuleGroupId
func ParsePrometheusRuleGroupIDInsensitively ¶
func ParsePrometheusRuleGroupIDInsensitively(input string) (*PrometheusRuleGroupId, error)
ParsePrometheusRuleGroupIDInsensitively parses 'input' case-insensitively into a PrometheusRuleGroupId note: this method should only be used for API response data and not user input
func (*PrometheusRuleGroupId) FromParseResult ¶
func (id *PrometheusRuleGroupId) FromParseResult(input resourceids.ParseResult) error
func (PrometheusRuleGroupId) ID ¶
func (id PrometheusRuleGroupId) ID() string
ID returns the formatted Prometheus Rule Group ID
func (PrometheusRuleGroupId) Segments ¶
func (id PrometheusRuleGroupId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Prometheus Rule Group ID
func (PrometheusRuleGroupId) String ¶
func (id PrometheusRuleGroupId) String() string
String returns a human-readable description of this Prometheus Rule Group ID
type PrometheusRuleGroupProperties ¶
type PrometheusRuleGroupProperties struct { ClusterName *string `json:"clusterName,omitempty"` Description *string `json:"description,omitempty"` Enabled *bool `json:"enabled,omitempty"` Interval *string `json:"interval,omitempty"` Rules []PrometheusRule `json:"rules"` Scopes []string `json:"scopes"` }
type PrometheusRuleGroupResource ¶
type PrometheusRuleGroupResource struct { Id *string `json:"id,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties PrometheusRuleGroupProperties `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type PrometheusRuleGroupResourceCollection ¶
type PrometheusRuleGroupResourceCollection struct {
Value *[]PrometheusRuleGroupResource `json:"value,omitempty"`
}
type PrometheusRuleGroupResourcePatchParameters ¶
type PrometheusRuleGroupResourcePatchParameters struct { Properties *PrometheusRuleGroupResourcePatchParametersProperties `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type PrometheusRuleGroupResourcePatchParametersProperties ¶
type PrometheusRuleGroupResourcePatchParametersProperties struct {
Enabled *bool `json:"enabled,omitempty"`
}
type PrometheusRuleGroupsClient ¶
type PrometheusRuleGroupsClient struct {
Client *resourcemanager.Client
}
func NewPrometheusRuleGroupsClientWithBaseURI ¶
func NewPrometheusRuleGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*PrometheusRuleGroupsClient, error)
func (PrometheusRuleGroupsClient) CreateOrUpdate ¶
func (c PrometheusRuleGroupsClient) CreateOrUpdate(ctx context.Context, id PrometheusRuleGroupId, input PrometheusRuleGroupResource) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (PrometheusRuleGroupsClient) Delete ¶
func (c PrometheusRuleGroupsClient) Delete(ctx context.Context, id PrometheusRuleGroupId) (result DeleteOperationResponse, err error)
Delete ...
func (PrometheusRuleGroupsClient) Get ¶
func (c PrometheusRuleGroupsClient) Get(ctx context.Context, id PrometheusRuleGroupId) (result GetOperationResponse, err error)
Get ...
func (PrometheusRuleGroupsClient) ListByResourceGroup ¶
func (c PrometheusRuleGroupsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (PrometheusRuleGroupsClient) ListBySubscription ¶
func (c PrometheusRuleGroupsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error)
ListBySubscription ...
func (PrometheusRuleGroupsClient) Update ¶
func (c PrometheusRuleGroupsClient) Update(ctx context.Context, id PrometheusRuleGroupId, input PrometheusRuleGroupResourcePatchParameters) (result UpdateOperationResponse, err error)
Update ...
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *PrometheusRuleGroupResource }
Source Files ¶
- client.go
- id_prometheusrulegroup.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_listbyresourcegroup.go
- method_listbysubscription.go
- method_update.go
- model_prometheusrule.go
- model_prometheusrulegroupaction.go
- model_prometheusrulegroupproperties.go
- model_prometheusrulegroupresource.go
- model_prometheusrulegroupresourcecollection.go
- model_prometheusrulegroupresourcepatchparameters.go
- model_prometheusrulegroupresourcepatchparametersproperties.go
- model_prometheusruleresolveconfiguration.go
- version.go