Documentation ¶
Index ¶
- func PossibleValuesForActionType() []string
- func PossibleValuesForDaysOfWeek() []string
- func PossibleValuesForField() []string
- func PossibleValuesForOperator() []string
- func PossibleValuesForRecurrenceType() []string
- func ValidateActionRuleID(input interface{}, key string) (warnings []string, errors []error)
- type Action
- type ActionRuleId
- type ActionType
- type AddActionGroups
- type AlertProcessingRule
- type AlertProcessingRuleOperationPredicate
- type AlertProcessingRuleProperties
- type AlertProcessingRulesClient
- func (c AlertProcessingRulesClient) CreateOrUpdate(ctx context.Context, id ActionRuleId, input AlertProcessingRule) (result CreateOrUpdateOperationResponse, err error)
- func (c AlertProcessingRulesClient) Delete(ctx context.Context, id ActionRuleId) (result DeleteOperationResponse, err error)
- func (c AlertProcessingRulesClient) GetByName(ctx context.Context, id ActionRuleId) (result GetByNameOperationResponse, err error)
- func (c AlertProcessingRulesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
- func (c AlertProcessingRulesClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
- func (c AlertProcessingRulesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListByResourceGroupCompleteResult, err error)
- func (c AlertProcessingRulesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error)
- func (c AlertProcessingRulesClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error)
- func (c AlertProcessingRulesClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ListBySubscriptionCompleteResult, err error)
- func (c AlertProcessingRulesClient) Update(ctx context.Context, id ActionRuleId, input PatchObject) (result UpdateOperationResponse, err error)
- type Condition
- type CreateOrUpdateOperationResponse
- type DailyRecurrence
- type DaysOfWeek
- type DeleteOperationResponse
- type Field
- type GetByNameOperationResponse
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupOperationResponse
- type ListBySubscriptionCompleteResult
- type ListBySubscriptionOperationResponse
- type MonthlyRecurrence
- type Operator
- type PatchObject
- type PatchProperties
- type RawActionImpl
- type RawRecurrenceImpl
- type Recurrence
- type RecurrenceType
- type RemoveAllActionGroups
- type Schedule
- type UpdateOperationResponse
- type WeeklyRecurrence
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForActionType ¶
func PossibleValuesForActionType() []string
func PossibleValuesForDaysOfWeek ¶
func PossibleValuesForDaysOfWeek() []string
func PossibleValuesForField ¶
func PossibleValuesForField() []string
func PossibleValuesForOperator ¶
func PossibleValuesForOperator() []string
func PossibleValuesForRecurrenceType ¶
func PossibleValuesForRecurrenceType() []string
func ValidateActionRuleID ¶
ValidateActionRuleID checks that 'input' can be parsed as a Action Rule ID
Types ¶
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 ActionType ¶
type ActionType string
const ( ActionTypeAddActionGroups ActionType = "AddActionGroups" ActionTypeRemoveAllActionGroups ActionType = "RemoveAllActionGroups" )
func (*ActionType) UnmarshalJSON ¶ added in v0.20230731.1080956
func (s *ActionType) UnmarshalJSON(bytes []byte) error
type AddActionGroups ¶
type AddActionGroups struct {
ActionGroupIds []string `json:"actionGroupIds"`
}
func (AddActionGroups) MarshalJSON ¶
func (s AddActionGroups) MarshalJSON() ([]byte, error)
type AlertProcessingRule ¶
type AlertProcessingRule struct { Id *string `json:"id,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties *AlertProcessingRuleProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type AlertProcessingRuleOperationPredicate ¶
type AlertProcessingRuleOperationPredicate struct { Id *string Location *string Name *string Type *string }
func (AlertProcessingRuleOperationPredicate) Matches ¶
func (p AlertProcessingRuleOperationPredicate) Matches(input AlertProcessingRule) bool
type AlertProcessingRuleProperties ¶
type AlertProcessingRuleProperties struct { Actions []Action `json:"actions"` Conditions *[]Condition `json:"conditions,omitempty"` Description *string `json:"description,omitempty"` Enabled *bool `json:"enabled,omitempty"` Schedule *Schedule `json:"schedule,omitempty"` Scopes []string `json:"scopes"` }
func (*AlertProcessingRuleProperties) UnmarshalJSON ¶
func (s *AlertProcessingRuleProperties) UnmarshalJSON(bytes []byte) error
type AlertProcessingRulesClient ¶
type AlertProcessingRulesClient struct {
Client *resourcemanager.Client
}
func NewAlertProcessingRulesClientWithBaseURI ¶
func NewAlertProcessingRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*AlertProcessingRulesClient, error)
func (AlertProcessingRulesClient) CreateOrUpdate ¶ added in v0.20230906.1160501
func (c AlertProcessingRulesClient) CreateOrUpdate(ctx context.Context, id ActionRuleId, input AlertProcessingRule) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (AlertProcessingRulesClient) Delete ¶ added in v0.20230906.1160501
func (c AlertProcessingRulesClient) Delete(ctx context.Context, id ActionRuleId) (result DeleteOperationResponse, err error)
Delete ...
func (AlertProcessingRulesClient) GetByName ¶ added in v0.20230906.1160501
func (c AlertProcessingRulesClient) GetByName(ctx context.Context, id ActionRuleId) (result GetByNameOperationResponse, err error)
GetByName ...
func (AlertProcessingRulesClient) ListByResourceGroup ¶ added in v0.20230906.1160501
func (c AlertProcessingRulesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (AlertProcessingRulesClient) ListByResourceGroupComplete ¶ added in v0.20230906.1160501
func (c AlertProcessingRulesClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
ListByResourceGroupComplete retrieves all the results into a single object
func (AlertProcessingRulesClient) ListByResourceGroupCompleteMatchingPredicate ¶ added in v0.20230906.1160501
func (c AlertProcessingRulesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate AlertProcessingRuleOperationPredicate) (result ListByResourceGroupCompleteResult, err error)
ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (AlertProcessingRulesClient) ListBySubscription ¶ added in v0.20230906.1160501
func (c AlertProcessingRulesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error)
ListBySubscription ...
func (AlertProcessingRulesClient) ListBySubscriptionComplete ¶ added in v0.20230906.1160501
func (c AlertProcessingRulesClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error)
ListBySubscriptionComplete retrieves all the results into a single object
func (AlertProcessingRulesClient) ListBySubscriptionCompleteMatchingPredicate ¶ added in v0.20230906.1160501
func (c AlertProcessingRulesClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate AlertProcessingRuleOperationPredicate) (result ListBySubscriptionCompleteResult, err error)
ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (AlertProcessingRulesClient) Update ¶ added in v0.20230906.1160501
func (c AlertProcessingRulesClient) Update(ctx context.Context, id ActionRuleId, input PatchObject) (result UpdateOperationResponse, err error)
Update ...
type CreateOrUpdateOperationResponse ¶ added in v0.20230906.1160501
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *AlertProcessingRule }
type DailyRecurrence ¶
type DailyRecurrence struct { // Fields inherited from Recurrence EndTime *string `json:"endTime,omitempty"` StartTime *string `json:"startTime,omitempty"` }
func (DailyRecurrence) MarshalJSON ¶
func (s DailyRecurrence) MarshalJSON() ([]byte, error)
type DaysOfWeek ¶
type DaysOfWeek string
const ( DaysOfWeekFriday DaysOfWeek = "Friday" DaysOfWeekMonday DaysOfWeek = "Monday" DaysOfWeekSaturday DaysOfWeek = "Saturday" DaysOfWeekSunday DaysOfWeek = "Sunday" DaysOfWeekThursday DaysOfWeek = "Thursday" DaysOfWeekTuesday DaysOfWeek = "Tuesday" DaysOfWeekWednesday DaysOfWeek = "Wednesday" )
func (*DaysOfWeek) UnmarshalJSON ¶ added in v0.20230731.1080956
func (s *DaysOfWeek) UnmarshalJSON(bytes []byte) error
type DeleteOperationResponse ¶ added in v0.20230906.1160501
type Field ¶
type Field string
const ( FieldAlertContext Field = "AlertContext" FieldAlertRuleId Field = "AlertRuleId" FieldAlertRuleName Field = "AlertRuleName" FieldDescription Field = "Description" FieldMonitorCondition Field = "MonitorCondition" FieldMonitorService Field = "MonitorService" FieldSeverity Field = "Severity" FieldSignalType Field = "SignalType" FieldTargetResource Field = "TargetResource" FieldTargetResourceGroup Field = "TargetResourceGroup" FieldTargetResourceType Field = "TargetResourceType" )
func (*Field) UnmarshalJSON ¶ added in v0.20230731.1080956
type GetByNameOperationResponse ¶ added in v0.20230906.1160501
type GetByNameOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *AlertProcessingRule }
type ListByResourceGroupCompleteResult ¶ added in v0.20230906.1160501
type ListByResourceGroupCompleteResult struct {
Items []AlertProcessingRule
}
type ListByResourceGroupOperationResponse ¶ added in v0.20230906.1160501
type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]AlertProcessingRule }
type ListBySubscriptionCompleteResult ¶ added in v0.20230906.1160501
type ListBySubscriptionCompleteResult struct {
Items []AlertProcessingRule
}
type ListBySubscriptionOperationResponse ¶ added in v0.20230906.1160501
type ListBySubscriptionOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]AlertProcessingRule }
type MonthlyRecurrence ¶
type MonthlyRecurrence struct { DaysOfMonth []int64 `json:"daysOfMonth"` // Fields inherited from Recurrence EndTime *string `json:"endTime,omitempty"` StartTime *string `json:"startTime,omitempty"` }
func (MonthlyRecurrence) MarshalJSON ¶
func (s MonthlyRecurrence) MarshalJSON() ([]byte, error)
type PatchObject ¶
type PatchObject struct { Properties *PatchProperties `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type PatchProperties ¶
type PatchProperties struct {
Enabled *bool `json:"enabled,omitempty"`
}
type RawActionImpl ¶ added in v0.20230807.1063129
RawModeOfTransitImpl 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 RawRecurrenceImpl ¶ added in v0.20230807.1063129
RawModeOfTransitImpl 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 Recurrence ¶
type Recurrence interface { }
type RecurrenceType ¶
type RecurrenceType string
const ( RecurrenceTypeDaily RecurrenceType = "Daily" RecurrenceTypeMonthly RecurrenceType = "Monthly" RecurrenceTypeWeekly RecurrenceType = "Weekly" )
func (*RecurrenceType) UnmarshalJSON ¶ added in v0.20230731.1080956
func (s *RecurrenceType) UnmarshalJSON(bytes []byte) error
type RemoveAllActionGroups ¶
type RemoveAllActionGroups struct { }
func (RemoveAllActionGroups) MarshalJSON ¶
func (s RemoveAllActionGroups) MarshalJSON() ([]byte, error)
type Schedule ¶
type Schedule struct { EffectiveFrom *string `json:"effectiveFrom,omitempty"` EffectiveUntil *string `json:"effectiveUntil,omitempty"` Recurrences *[]Recurrence `json:"recurrences,omitempty"` TimeZone *string `json:"timeZone,omitempty"` }
func (*Schedule) UnmarshalJSON ¶
type UpdateOperationResponse ¶ added in v0.20230906.1160501
type UpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *AlertProcessingRule }
type WeeklyRecurrence ¶
type WeeklyRecurrence struct { DaysOfWeek []DaysOfWeek `json:"daysOfWeek"` // Fields inherited from Recurrence EndTime *string `json:"endTime,omitempty"` StartTime *string `json:"startTime,omitempty"` }
func (WeeklyRecurrence) MarshalJSON ¶
func (s WeeklyRecurrence) MarshalJSON() ([]byte, error)
Source Files ¶
- client.go
- constants.go
- id_actionrule.go
- method_createorupdate.go
- method_delete.go
- method_getbyname.go
- method_listbyresourcegroup.go
- method_listbysubscription.go
- method_update.go
- model_action.go
- model_addactiongroups.go
- model_alertprocessingrule.go
- model_alertprocessingruleproperties.go
- model_condition.go
- model_dailyrecurrence.go
- model_monthlyrecurrence.go
- model_patchobject.go
- model_patchproperties.go
- model_recurrence.go
- model_removeallactiongroups.go
- model_schedule.go
- model_weeklyrecurrence.go
- predicates.go
- version.go