Documentation ¶
Index ¶
- func PossibleValuesForAlertRuleState() []string
- func PossibleValuesForSeverity() []string
- func ValidateSmartDetectorAlertRuleID(input interface{}, key string) (warnings []string, errors []error)
- type ActionGroupsInformation
- type AlertRule
- type AlertRuleOperationPredicate
- type AlertRulePatchObject
- type AlertRulePatchProperties
- type AlertRuleProperties
- type AlertRuleState
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type Detector
- type GetOperationOptions
- type GetOperationResponse
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupOperationOptions
- type ListByResourceGroupOperationResponse
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type PatchOperationResponse
- type Severity
- type SmartDetectorAlertRuleId
- type SmartDetectorAlertRulesClient
- func (c SmartDetectorAlertRulesClient) CreateOrUpdate(ctx context.Context, id SmartDetectorAlertRuleId, input AlertRule) (result CreateOrUpdateOperationResponse, err error)
- func (c SmartDetectorAlertRulesClient) Delete(ctx context.Context, id SmartDetectorAlertRuleId) (result DeleteOperationResponse, err error)
- func (c SmartDetectorAlertRulesClient) Get(ctx context.Context, id SmartDetectorAlertRuleId, options GetOperationOptions) (result GetOperationResponse, err error)
- func (c SmartDetectorAlertRulesClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c SmartDetectorAlertRulesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListByResourceGroupOperationResponse, err error)
- func (c SmartDetectorAlertRulesClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId, ...) (ListByResourceGroupCompleteResult, error)
- func (c SmartDetectorAlertRulesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListByResourceGroupCompleteResult, err error)
- func (c SmartDetectorAlertRulesClient) ListComplete(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (ListCompleteResult, error)
- func (c SmartDetectorAlertRulesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions, ...) (result ListCompleteResult, err error)
- func (c SmartDetectorAlertRulesClient) Patch(ctx context.Context, id SmartDetectorAlertRuleId, input AlertRulePatchObject) (result PatchOperationResponse, err error)
- type ThrottlingInformation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAlertRuleState ¶
func PossibleValuesForAlertRuleState() []string
func PossibleValuesForSeverity ¶
func PossibleValuesForSeverity() []string
func ValidateSmartDetectorAlertRuleID ¶
func ValidateSmartDetectorAlertRuleID(input interface{}, key string) (warnings []string, errors []error)
ValidateSmartDetectorAlertRuleID checks that 'input' can be parsed as a Smart Detector Alert Rule ID
Types ¶
type ActionGroupsInformation ¶
type AlertRuleOperationPredicate ¶
func (AlertRuleOperationPredicate) Matches ¶
func (p AlertRuleOperationPredicate) Matches(input AlertRule) bool
type AlertRulePatchObject ¶
type AlertRulePatchProperties ¶
type AlertRulePatchProperties struct { ActionGroups *ActionGroupsInformation `json:"actionGroups,omitempty"` Description *string `json:"description,omitempty"` Frequency *string `json:"frequency,omitempty"` Severity *Severity `json:"severity,omitempty"` State *AlertRuleState `json:"state,omitempty"` Throttling *ThrottlingInformation `json:"throttling,omitempty"` }
type AlertRuleProperties ¶
type AlertRuleProperties struct { ActionGroups ActionGroupsInformation `json:"actionGroups"` Description *string `json:"description,omitempty"` Detector Detector `json:"detector"` Frequency string `json:"frequency"` Scope []string `json:"scope"` Severity Severity `json:"severity"` State AlertRuleState `json:"state"` Throttling *ThrottlingInformation `json:"throttling,omitempty"` }
type AlertRuleState ¶
type AlertRuleState string
const ( AlertRuleStateDisabled AlertRuleState = "Disabled" AlertRuleStateEnabled AlertRuleState = "Enabled" )
func (*AlertRuleState) UnmarshalJSON ¶
func (s *AlertRuleState) UnmarshalJSON(bytes []byte) error
type DeleteOperationResponse ¶
type Detector ¶
type Detector struct { Description *string `json:"description,omitempty"` Id string `json:"id"` ImagePaths *[]string `json:"imagePaths,omitempty"` Name *string `json:"name,omitempty"` Parameters *map[string]interface{} `json:"parameters,omitempty"` SupportedResourceTypes *[]string `json:"supportedResourceTypes,omitempty"` }
type GetOperationOptions ¶
type GetOperationOptions struct {
ExpandDetector *bool
}
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
func (GetOperationOptions) ToHeaders ¶
func (o GetOperationOptions) ToHeaders() *client.Headers
func (GetOperationOptions) ToOData ¶
func (o GetOperationOptions) ToOData() *odata.Query
func (GetOperationOptions) ToQuery ¶
func (o GetOperationOptions) ToQuery() *client.QueryParams
type GetOperationResponse ¶
type ListByResourceGroupCompleteResult ¶
type ListByResourceGroupCompleteResult struct {
Items []AlertRule
}
type ListByResourceGroupOperationOptions ¶
type ListByResourceGroupOperationOptions struct {
ExpandDetector *bool
}
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 ListCompleteResult ¶
type ListCompleteResult struct {
Items []AlertRule
}
type ListOperationOptions ¶
type ListOperationOptions struct {
ExpandDetector *bool
}
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type PatchOperationResponse ¶
type SmartDetectorAlertRuleId ¶
type SmartDetectorAlertRuleId struct { SubscriptionId string ResourceGroupName string SmartDetectorAlertRuleName string }
SmartDetectorAlertRuleId is a struct representing the Resource ID for a Smart Detector Alert Rule
func NewSmartDetectorAlertRuleID ¶
func NewSmartDetectorAlertRuleID(subscriptionId string, resourceGroupName string, smartDetectorAlertRuleName string) SmartDetectorAlertRuleId
NewSmartDetectorAlertRuleID returns a new SmartDetectorAlertRuleId struct
func ParseSmartDetectorAlertRuleID ¶
func ParseSmartDetectorAlertRuleID(input string) (*SmartDetectorAlertRuleId, error)
ParseSmartDetectorAlertRuleID parses 'input' into a SmartDetectorAlertRuleId
func ParseSmartDetectorAlertRuleIDInsensitively ¶
func ParseSmartDetectorAlertRuleIDInsensitively(input string) (*SmartDetectorAlertRuleId, error)
ParseSmartDetectorAlertRuleIDInsensitively parses 'input' case-insensitively into a SmartDetectorAlertRuleId note: this method should only be used for API response data and not user input
func (*SmartDetectorAlertRuleId) FromParseResult ¶ added in v0.20231127.1171502
func (id *SmartDetectorAlertRuleId) FromParseResult(input resourceids.ParseResult) error
func (SmartDetectorAlertRuleId) ID ¶
func (id SmartDetectorAlertRuleId) ID() string
ID returns the formatted Smart Detector Alert Rule ID
func (SmartDetectorAlertRuleId) Segments ¶
func (id SmartDetectorAlertRuleId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Smart Detector Alert Rule ID
func (SmartDetectorAlertRuleId) String ¶
func (id SmartDetectorAlertRuleId) String() string
String returns a human-readable description of this Smart Detector Alert Rule ID
type SmartDetectorAlertRulesClient ¶
type SmartDetectorAlertRulesClient struct {
Client *resourcemanager.Client
}
func NewSmartDetectorAlertRulesClientWithBaseURI ¶
func NewSmartDetectorAlertRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*SmartDetectorAlertRulesClient, error)
func (SmartDetectorAlertRulesClient) CreateOrUpdate ¶
func (c SmartDetectorAlertRulesClient) CreateOrUpdate(ctx context.Context, id SmartDetectorAlertRuleId, input AlertRule) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (SmartDetectorAlertRulesClient) Delete ¶
func (c SmartDetectorAlertRulesClient) Delete(ctx context.Context, id SmartDetectorAlertRuleId) (result DeleteOperationResponse, err error)
Delete ...
func (SmartDetectorAlertRulesClient) Get ¶
func (c SmartDetectorAlertRulesClient) Get(ctx context.Context, id SmartDetectorAlertRuleId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (SmartDetectorAlertRulesClient) List ¶
func (c SmartDetectorAlertRulesClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (SmartDetectorAlertRulesClient) ListByResourceGroup ¶
func (c SmartDetectorAlertRulesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (SmartDetectorAlertRulesClient) ListByResourceGroupComplete ¶
func (c SmartDetectorAlertRulesClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions) (ListByResourceGroupCompleteResult, error)
ListByResourceGroupComplete retrieves all the results into a single object
func (SmartDetectorAlertRulesClient) ListByResourceGroupCompleteMatchingPredicate ¶
func (c SmartDetectorAlertRulesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, options ListByResourceGroupOperationOptions, predicate AlertRuleOperationPredicate) (result ListByResourceGroupCompleteResult, err error)
ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (SmartDetectorAlertRulesClient) ListComplete ¶
func (c SmartDetectorAlertRulesClient) ListComplete(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (SmartDetectorAlertRulesClient) ListCompleteMatchingPredicate ¶
func (c SmartDetectorAlertRulesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions, predicate AlertRuleOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (SmartDetectorAlertRulesClient) Patch ¶
func (c SmartDetectorAlertRulesClient) Patch(ctx context.Context, id SmartDetectorAlertRuleId, input AlertRulePatchObject) (result PatchOperationResponse, err error)
Patch ...
type ThrottlingInformation ¶
type ThrottlingInformation struct {
Duration *string `json:"duration,omitempty"`
}
Source Files ¶
- client.go
- constants.go
- id_smartdetectoralertrule.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_list.go
- method_listbyresourcegroup.go
- method_patch.go
- model_actiongroupsinformation.go
- model_alertrule.go
- model_alertrulepatchobject.go
- model_alertrulepatchproperties.go
- model_alertruleproperties.go
- model_detector.go
- model_throttlinginformation.go
- predicates.go
- version.go