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) (result 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, ...) (result 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 ¶
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 *resourcemanager.Client
}
func NewAlertsSuppressionRulesClientWithBaseURI ¶
func NewAlertsSuppressionRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*AlertsSuppressionRulesClient, error)
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) (result ListOperationResponse, err error)
List ...
func (AlertsSuppressionRulesClient) ListComplete ¶
func (c AlertsSuppressionRulesClient) ListComplete(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (AlertsSuppressionRulesClient) ListCompleteMatchingPredicate ¶
func (c AlertsSuppressionRulesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions, predicate AlertsSuppressionRuleOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies 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 OData *odata.OData Model *AlertsSuppressionRule }
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []AlertsSuppressionRule }
type ListOperationOptions ¶
type ListOperationOptions struct {
AlertType *string
}
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶ added in v0.20240228.1142829
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶ added in v0.20240228.1142829
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶ added in v0.20240228.1142829
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]AlertsSuppressionRule }
type RuleState ¶
type RuleState string
func (*RuleState) UnmarshalJSON ¶ added in v0.20240228.1142829
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 OData *odata.OData Model *AlertsSuppressionRule }