Documentation ¶
Index ¶
- func PossibleValuesForRuleState() []string
- func ValidateAlertsSuppressionRuleID(input interface{}, key string) (warnings []string, errors []error)
- type AlertsSuppressionRule
- type AlertsSuppressionRuleId
- type AlertsSuppressionRuleOperationPredicate
- type AlertsSuppressionRuleProperties
- func (o *AlertsSuppressionRuleProperties) GetExpirationDateUtcAsTime() (*time.Time, error)
- func (o *AlertsSuppressionRuleProperties) GetLastModifiedUtcAsTime() (*time.Time, error)
- func (o *AlertsSuppressionRuleProperties) SetExpirationDateUtcAsTime(input time.Time)
- func (o *AlertsSuppressionRuleProperties) SetLastModifiedUtcAsTime(input time.Time)
- type AlertsSuppressionRulesClient
- func (c AlertsSuppressionRulesClient) Delete(ctx context.Context, id AlertsSuppressionRuleId) (result DeleteOperationResponse, err error)
- func (c AlertsSuppressionRulesClient) Get(ctx context.Context, id AlertsSuppressionRuleId) (result GetOperationResponse, err error)
- func (c AlertsSuppressionRulesClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (resp ListOperationResponse, err error)
- func (c AlertsSuppressionRulesClient) ListComplete(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (ListCompleteResult, error)
- func (c AlertsSuppressionRulesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions, ...) (resp ListCompleteResult, err error)
- func (c AlertsSuppressionRulesClient) Update(ctx context.Context, id AlertsSuppressionRuleId, input AlertsSuppressionRule) (result UpdateOperationResponse, err error)
- type DeleteOperationResponse
- type GetOperationResponse
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type RuleState
- type ScopeElement
- type SuppressionAlertsScope
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForRuleState ¶
func PossibleValuesForRuleState() []string
func ValidateAlertsSuppressionRuleID ¶
func ValidateAlertsSuppressionRuleID(input interface{}, key string) (warnings []string, errors []error)
ValidateAlertsSuppressionRuleID checks that 'input' can be parsed as a Alerts Suppression Rule ID
Types ¶
type AlertsSuppressionRule ¶
type AlertsSuppressionRule struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *AlertsSuppressionRuleProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type AlertsSuppressionRuleId ¶
AlertsSuppressionRuleId is a struct representing the Resource ID for a Alerts Suppression Rule
func NewAlertsSuppressionRuleID ¶
func NewAlertsSuppressionRuleID(subscriptionId string, alertsSuppressionRuleName string) AlertsSuppressionRuleId
NewAlertsSuppressionRuleID returns a new AlertsSuppressionRuleId struct
func ParseAlertsSuppressionRuleID ¶
func ParseAlertsSuppressionRuleID(input string) (*AlertsSuppressionRuleId, error)
ParseAlertsSuppressionRuleID parses 'input' into a AlertsSuppressionRuleId
func ParseAlertsSuppressionRuleIDInsensitively ¶
func ParseAlertsSuppressionRuleIDInsensitively(input string) (*AlertsSuppressionRuleId, error)
ParseAlertsSuppressionRuleIDInsensitively parses 'input' case-insensitively into a AlertsSuppressionRuleId note: this method should only be used for API response data and not user input
func (*AlertsSuppressionRuleId) FromParseResult ¶ added in v0.20231127.1171502
func (id *AlertsSuppressionRuleId) FromParseResult(input resourceids.ParseResult) error
func (AlertsSuppressionRuleId) ID ¶
func (id AlertsSuppressionRuleId) ID() string
ID returns the formatted Alerts Suppression Rule ID
func (AlertsSuppressionRuleId) Segments ¶
func (id AlertsSuppressionRuleId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Alerts Suppression Rule ID
func (AlertsSuppressionRuleId) String ¶
func (id AlertsSuppressionRuleId) String() string
String returns a human-readable description of this Alerts Suppression Rule ID
type AlertsSuppressionRuleOperationPredicate ¶
func (AlertsSuppressionRuleOperationPredicate) Matches ¶
func (p AlertsSuppressionRuleOperationPredicate) Matches(input AlertsSuppressionRule) bool
type AlertsSuppressionRuleProperties ¶
type AlertsSuppressionRuleProperties struct { AlertType string `json:"alertType"` Comment *string `json:"comment,omitempty"` ExpirationDateUtc *string `json:"expirationDateUtc,omitempty"` LastModifiedUtc *string `json:"lastModifiedUtc,omitempty"` Reason string `json:"reason"` State RuleState `json:"state"` SuppressionAlertsScope *SuppressionAlertsScope `json:"suppressionAlertsScope,omitempty"` }
func (*AlertsSuppressionRuleProperties) GetExpirationDateUtcAsTime ¶
func (o *AlertsSuppressionRuleProperties) GetExpirationDateUtcAsTime() (*time.Time, error)
func (*AlertsSuppressionRuleProperties) GetLastModifiedUtcAsTime ¶
func (o *AlertsSuppressionRuleProperties) GetLastModifiedUtcAsTime() (*time.Time, error)
func (*AlertsSuppressionRuleProperties) SetExpirationDateUtcAsTime ¶
func (o *AlertsSuppressionRuleProperties) SetExpirationDateUtcAsTime(input time.Time)
func (*AlertsSuppressionRuleProperties) SetLastModifiedUtcAsTime ¶
func (o *AlertsSuppressionRuleProperties) SetLastModifiedUtcAsTime(input time.Time)
type AlertsSuppressionRulesClient ¶
type AlertsSuppressionRulesClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewAlertsSuppressionRulesClientWithBaseURI ¶
func NewAlertsSuppressionRulesClientWithBaseURI(endpoint string) AlertsSuppressionRulesClient
func (AlertsSuppressionRulesClient) Delete ¶
func (c AlertsSuppressionRulesClient) Delete(ctx context.Context, id AlertsSuppressionRuleId) (result DeleteOperationResponse, err error)
Delete ...
func (AlertsSuppressionRulesClient) Get ¶
func (c AlertsSuppressionRulesClient) Get(ctx context.Context, id AlertsSuppressionRuleId) (result GetOperationResponse, err error)
Get ...
func (AlertsSuppressionRulesClient) List ¶
func (c AlertsSuppressionRulesClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (resp ListOperationResponse, err error)
List ...
func (AlertsSuppressionRulesClient) ListComplete ¶
func (c AlertsSuppressionRulesClient) ListComplete(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (AlertsSuppressionRulesClient) ListCompleteMatchingPredicate ¶
func (c AlertsSuppressionRulesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions, predicate AlertsSuppressionRuleOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (AlertsSuppressionRulesClient) Update ¶
func (c AlertsSuppressionRulesClient) Update(ctx context.Context, id AlertsSuppressionRuleId, input AlertsSuppressionRule) (result UpdateOperationResponse, err error)
Update ...
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *AlertsSuppressionRule }
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []AlertsSuppressionRule
}
type ListOperationOptions ¶
type ListOperationOptions struct {
AlertType *string
}
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]AlertsSuppressionRule // contains filtered or unexported fields }
func (ListOperationResponse) HasMore ¶
func (r ListOperationResponse) HasMore() bool
func (ListOperationResponse) LoadMore ¶
func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)
type ScopeElement ¶
type ScopeElement struct {
Field *string `json:"field,omitempty"`
}
type SuppressionAlertsScope ¶
type SuppressionAlertsScope struct {
AllOf []ScopeElement `json:"allOf"`
}
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response Model *AlertsSuppressionRule }
Source Files ¶
- client.go
- constants.go
- id_alertssuppressionrule.go
- method_delete_autorest.go
- method_get_autorest.go
- method_list_autorest.go
- method_update_autorest.go
- model_alertssuppressionrule.go
- model_alertssuppressionruleproperties.go
- model_scopeelement.go
- model_suppressionalertsscope.go
- predicates.go
- version.go