Documentation ¶
Index ¶
- func PossibleValuesForActionRuleStatus() []string
- func PossibleValuesForActionRuleType() []string
- func PossibleValuesForMonitorService() []string
- func PossibleValuesForOperator() []string
- func PossibleValuesForScopeType() []string
- func PossibleValuesForSeverity() []string
- func ValidateActionRuleID(input interface{}, key string) (warnings []string, errors []error)
- type ActionRule
- type ActionRuleId
- type ActionRuleOperationPredicate
- type ActionRuleProperties
- type ActionRuleStatus
- type ActionRuleType
- type ActionRulesClient
- func (c ActionRulesClient) CreateUpdate(ctx context.Context, id ActionRuleId, input ActionRule) (result CreateUpdateOperationResponse, err error)
- func (c ActionRulesClient) Delete(ctx context.Context, id ActionRuleId) (result DeleteOperationResponse, err error)
- func (c ActionRulesClient) GetByName(ctx context.Context, id ActionRuleId) (result GetByNameOperationResponse, err error)
- func (c ActionRulesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListByResourceGroupOperationResponse, err error)
- func (c ActionRulesClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId, ...) (ListByResourceGroupCompleteResult, error)
- func (c ActionRulesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListByResourceGroupCompleteResult, err error)
- func (c ActionRulesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, ...) (result ListBySubscriptionOperationResponse, err error)
- func (c ActionRulesClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId, ...) (ListBySubscriptionCompleteResult, error)
- func (c ActionRulesClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ListBySubscriptionCompleteResult, err error)
- func (c ActionRulesClient) Update(ctx context.Context, id ActionRuleId, input PatchObject) (result UpdateOperationResponse, err error)
- type Condition
- type Conditions
- type CreateUpdateOperationResponse
- type DeleteOperationResponse
- type GetByNameOperationResponse
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupOperationOptions
- type ListByResourceGroupOperationResponse
- type ListBySubscriptionCompleteResult
- type ListBySubscriptionOperationOptions
- type ListBySubscriptionOperationResponse
- type MonitorService
- type Operator
- type PatchObject
- type PatchProperties
- type RawActionRulePropertiesImpl
- type Scope
- type ScopeType
- type Severity
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForActionRuleStatus ¶
func PossibleValuesForActionRuleStatus() []string
func PossibleValuesForActionRuleType ¶
func PossibleValuesForActionRuleType() []string
func PossibleValuesForMonitorService ¶
func PossibleValuesForMonitorService() []string
func PossibleValuesForOperator ¶
func PossibleValuesForOperator() []string
func PossibleValuesForScopeType ¶
func PossibleValuesForScopeType() []string
func PossibleValuesForSeverity ¶
func PossibleValuesForSeverity() []string
func ValidateActionRuleID ¶
ValidateActionRuleID checks that 'input' can be parsed as a Action Rule ID
Types ¶
type ActionRule ¶
type ActionRule struct { Id *string `json:"id,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties ActionRuleProperties `json:"properties"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
func (*ActionRule) UnmarshalJSON ¶
func (s *ActionRule) UnmarshalJSON(bytes []byte) error
type ActionRuleId ¶
ActionRuleId is a struct representing the Resource ID for a Action Rule
func NewActionRuleID ¶
func NewActionRuleID(subscriptionId string, resourceGroupName string, actionRuleName string) ActionRuleId
NewActionRuleID returns a new ActionRuleId struct
func ParseActionRuleID ¶
func ParseActionRuleID(input string) (*ActionRuleId, error)
ParseActionRuleID parses 'input' into a ActionRuleId
func ParseActionRuleIDInsensitively ¶
func ParseActionRuleIDInsensitively(input string) (*ActionRuleId, error)
ParseActionRuleIDInsensitively parses 'input' case-insensitively into a ActionRuleId note: this method should only be used for API response data and not user input
func (ActionRuleId) Segments ¶
func (id ActionRuleId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Action Rule ID
func (ActionRuleId) String ¶
func (id ActionRuleId) String() string
String returns a human-readable description of this Action Rule ID
type ActionRuleOperationPredicate ¶
func (ActionRuleOperationPredicate) Matches ¶
func (p ActionRuleOperationPredicate) Matches(input ActionRule) bool
type ActionRuleProperties ¶
type ActionRuleProperties interface { }
type ActionRuleStatus ¶
type ActionRuleStatus string
const ( ActionRuleStatusDisabled ActionRuleStatus = "Disabled" ActionRuleStatusEnabled ActionRuleStatus = "Enabled" )
func (*ActionRuleStatus) UnmarshalJSON ¶
func (s *ActionRuleStatus) UnmarshalJSON(bytes []byte) error
type ActionRuleType ¶
type ActionRuleType string
const ( ActionRuleTypeActionGroup ActionRuleType = "ActionGroup" ActionRuleTypeDiagnostics ActionRuleType = "Diagnostics" ActionRuleTypeSuppression ActionRuleType = "Suppression" )
func (*ActionRuleType) UnmarshalJSON ¶
func (s *ActionRuleType) UnmarshalJSON(bytes []byte) error
type ActionRulesClient ¶
type ActionRulesClient struct {
Client *resourcemanager.Client
}
func NewActionRulesClientWithBaseURI ¶
func NewActionRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*ActionRulesClient, error)
func (ActionRulesClient) CreateUpdate ¶
func (c ActionRulesClient) CreateUpdate(ctx context.Context, id ActionRuleId, input ActionRule) (result CreateUpdateOperationResponse, err error)
CreateUpdate ...
func (ActionRulesClient) Delete ¶
func (c ActionRulesClient) Delete(ctx context.Context, id ActionRuleId) (result DeleteOperationResponse, err error)
Delete ...
func (ActionRulesClient) GetByName ¶
func (c ActionRulesClient) GetByName(ctx context.Context, id ActionRuleId) (result GetByNameOperationResponse, err error)
GetByName ...
func (ActionRulesClient) ListByResourceGroup ¶
func (c ActionRulesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (ActionRulesClient) ListByResourceGroupComplete ¶
func (c ActionRulesClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (ListByResourceGroupCompleteResult, error)
ListByResourceGroupComplete retrieves all the results into a single object
func (ActionRulesClient) ListByResourceGroupCompleteMatchingPredicate ¶
func (c ActionRulesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions, predicate ActionRuleOperationPredicate) (result ListByResourceGroupCompleteResult, err error)
ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ActionRulesClient) ListBySubscription ¶
func (c ActionRulesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error)
ListBySubscription ...
func (ActionRulesClient) ListBySubscriptionComplete ¶
func (c ActionRulesClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (ListBySubscriptionCompleteResult, error)
ListBySubscriptionComplete retrieves all the results into a single object
func (ActionRulesClient) ListBySubscriptionCompleteMatchingPredicate ¶
func (c ActionRulesClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions, predicate ActionRuleOperationPredicate) (result ListBySubscriptionCompleteResult, err error)
ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ActionRulesClient) Update ¶
func (c ActionRulesClient) Update(ctx context.Context, id ActionRuleId, input PatchObject) (result UpdateOperationResponse, err error)
Update ...
type Conditions ¶
type Conditions struct { AlertContext *Condition `json:"alertContext,omitempty"` AlertRuleId *Condition `json:"alertRuleId,omitempty"` AlertRuleName *Condition `json:"alertRuleName,omitempty"` Description *Condition `json:"description,omitempty"` MonitorCondition *Condition `json:"monitorCondition,omitempty"` MonitorService *Condition `json:"monitorService,omitempty"` Severity *Condition `json:"severity,omitempty"` TargetResourceType *Condition `json:"targetResourceType,omitempty"` }
type CreateUpdateOperationResponse ¶
type CreateUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ActionRule }
type DeleteOperationResponse ¶
type GetByNameOperationResponse ¶
type GetByNameOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ActionRule }
type ListByResourceGroupCompleteResult ¶
type ListByResourceGroupCompleteResult struct {
Items []ActionRule
}
type ListByResourceGroupOperationOptions ¶
type ListByResourceGroupOperationOptions struct { ActionGroup *string AlertRuleId *string Description *string ImpactedScope *string MonitorService *MonitorService Name *string Severity *Severity TargetResource *string TargetResourceGroup *string TargetResourceType *string }
func DefaultListByResourceGroupOperationOptions ¶
func DefaultListByResourceGroupOperationOptions() ListByResourceGroupOperationOptions
func (ListByResourceGroupOperationOptions) ToHeaders ¶
func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers
func (ListByResourceGroupOperationOptions) ToOData ¶
func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query
func (ListByResourceGroupOperationOptions) ToQuery ¶
func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams
type ListByResourceGroupOperationResponse ¶
type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ActionRule }
type ListBySubscriptionCompleteResult ¶
type ListBySubscriptionCompleteResult struct {
Items []ActionRule
}
type ListBySubscriptionOperationOptions ¶
type ListBySubscriptionOperationOptions struct { ActionGroup *string AlertRuleId *string Description *string ImpactedScope *string MonitorService *MonitorService Name *string Severity *Severity TargetResource *string TargetResourceGroup *string TargetResourceType *string }
func DefaultListBySubscriptionOperationOptions ¶
func DefaultListBySubscriptionOperationOptions() ListBySubscriptionOperationOptions
func (ListBySubscriptionOperationOptions) ToHeaders ¶
func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers
func (ListBySubscriptionOperationOptions) ToOData ¶
func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query
func (ListBySubscriptionOperationOptions) ToQuery ¶
func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams
type ListBySubscriptionOperationResponse ¶
type ListBySubscriptionOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ActionRule }
type MonitorService ¶
type MonitorService string
const ( MonitorServiceActivityLogAdministrative MonitorService = "ActivityLog Administrative" MonitorServiceActivityLogAutoscale MonitorService = "ActivityLog Autoscale" MonitorServiceActivityLogPolicy MonitorService = "ActivityLog Policy" MonitorServiceActivityLogRecommendation MonitorService = "ActivityLog Recommendation" MonitorServiceActivityLogSecurity MonitorService = "ActivityLog Security" MonitorServiceApplicationInsights MonitorService = "Application Insights" MonitorServiceLogAnalytics MonitorService = "Log Analytics" MonitorServiceNagios MonitorService = "Nagios" MonitorServicePlatform MonitorService = "Platform" MonitorServiceSCOM MonitorService = "SCOM" MonitorServiceServiceHealth MonitorService = "ServiceHealth" MonitorServiceSmartDetector MonitorService = "SmartDetector" MonitorServiceVMInsights MonitorService = "VM Insights" MonitorServiceZabbix MonitorService = "Zabbix" )
func (*MonitorService) UnmarshalJSON ¶
func (s *MonitorService) UnmarshalJSON(bytes []byte) error
type PatchObject ¶
type PatchObject struct { Properties *PatchProperties `json:"properties,omitempty"` Tags *interface{} `json:"tags,omitempty"` }
type PatchProperties ¶
type PatchProperties struct {
Status *ActionRuleStatus `json:"status,omitempty"`
}
type RawActionRulePropertiesImpl ¶
RawActionRulePropertiesImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ActionRule }
Source Files ¶
- client.go
- constants.go
- id_actionrule.go
- method_createupdate.go
- method_delete.go
- method_getbyname.go
- method_listbyresourcegroup.go
- method_listbysubscription.go
- method_update.go
- model_actionrule.go
- model_actionruleproperties.go
- model_condition.go
- model_conditions.go
- model_patchobject.go
- model_patchproperties.go
- model_scope.go
- predicates.go
- version.go