Documentation ¶
Index ¶
- func PossibleValuesForActionRuleStatus() []string
- func PossibleValuesForActionRuleType() []string
- func PossibleValuesForMonitorService() []string
- func PossibleValuesForOperator() []string
- func PossibleValuesForScopeType() []string
- func PossibleValuesForSeverity() []string
- func PossibleValuesForSuppressionType() []string
- func ValidateActionRuleID(input interface{}, key string) (warnings []string, errors []error)
- type ActionGroup
- func (o *ActionGroup) GetCreatedAtAsTime() (*time.Time, error)
- func (o *ActionGroup) GetLastModifiedAtAsTime() (*time.Time, error)
- func (s ActionGroup) MarshalJSON() ([]byte, error)
- func (o *ActionGroup) SetCreatedAtAsTime(input time.Time)
- func (o *ActionGroup) SetLastModifiedAtAsTime(input time.Time)
- 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 Diagnostics
- func (o *Diagnostics) GetCreatedAtAsTime() (*time.Time, error)
- func (o *Diagnostics) GetLastModifiedAtAsTime() (*time.Time, error)
- func (s Diagnostics) MarshalJSON() ([]byte, error)
- func (o *Diagnostics) SetCreatedAtAsTime(input time.Time)
- func (o *Diagnostics) SetLastModifiedAtAsTime(input time.Time)
- type GetByNameOperationResponse
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupCustomPager
- type ListByResourceGroupOperationOptions
- type ListByResourceGroupOperationResponse
- type ListBySubscriptionCompleteResult
- type ListBySubscriptionCustomPager
- type ListBySubscriptionOperationOptions
- type ListBySubscriptionOperationResponse
- type MonitorService
- type Operator
- type PatchObject
- type PatchProperties
- type RawActionRulePropertiesImpl
- type Scope
- type ScopeType
- type Severity
- type Suppression
- func (o *Suppression) GetCreatedAtAsTime() (*time.Time, error)
- func (o *Suppression) GetLastModifiedAtAsTime() (*time.Time, error)
- func (s Suppression) MarshalJSON() ([]byte, error)
- func (o *Suppression) SetCreatedAtAsTime(input time.Time)
- func (o *Suppression) SetLastModifiedAtAsTime(input time.Time)
- type SuppressionConfig
- type SuppressionSchedule
- type SuppressionType
- 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 PossibleValuesForSuppressionType ¶ added in v0.20240402.1085733
func PossibleValuesForSuppressionType() []string
func ValidateActionRuleID ¶
ValidateActionRuleID checks that 'input' can be parsed as a Action Rule ID
Types ¶
type ActionGroup ¶ added in v0.20240402.1085733
type ActionGroup struct { ActionGroupId *string `json:"actionGroupId,omitempty"` // Fields inherited from ActionRuleProperties Conditions *Conditions `json:"conditions,omitempty"` CreatedAt *string `json:"createdAt,omitempty"` CreatedBy *string `json:"createdBy,omitempty"` Description *string `json:"description,omitempty"` LastModifiedAt *string `json:"lastModifiedAt,omitempty"` LastModifiedBy *string `json:"lastModifiedBy,omitempty"` Scope *Scope `json:"scope,omitempty"` Status *ActionRuleStatus `json:"status,omitempty"` }
func (*ActionGroup) GetCreatedAtAsTime ¶ added in v0.20240402.1085733
func (o *ActionGroup) GetCreatedAtAsTime() (*time.Time, error)
func (*ActionGroup) GetLastModifiedAtAsTime ¶ added in v0.20240402.1085733
func (o *ActionGroup) GetLastModifiedAtAsTime() (*time.Time, error)
func (ActionGroup) MarshalJSON ¶ added in v0.20240402.1085733
func (s ActionGroup) MarshalJSON() ([]byte, error)
func (*ActionGroup) SetCreatedAtAsTime ¶ added in v0.20240402.1085733
func (o *ActionGroup) SetCreatedAtAsTime(input time.Time)
func (*ActionGroup) SetLastModifiedAtAsTime ¶ added in v0.20240402.1085733
func (o *ActionGroup) SetLastModifiedAtAsTime(input time.Time)
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) FromParseResult ¶
func (id *ActionRuleId) FromParseResult(input resourceids.ParseResult) error
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 Diagnostics ¶ added in v0.20240402.1085733
type Diagnostics struct { // Fields inherited from ActionRuleProperties Conditions *Conditions `json:"conditions,omitempty"` CreatedAt *string `json:"createdAt,omitempty"` CreatedBy *string `json:"createdBy,omitempty"` Description *string `json:"description,omitempty"` LastModifiedAt *string `json:"lastModifiedAt,omitempty"` LastModifiedBy *string `json:"lastModifiedBy,omitempty"` Scope *Scope `json:"scope,omitempty"` Status *ActionRuleStatus `json:"status,omitempty"` }
func (*Diagnostics) GetCreatedAtAsTime ¶ added in v0.20240402.1085733
func (o *Diagnostics) GetCreatedAtAsTime() (*time.Time, error)
func (*Diagnostics) GetLastModifiedAtAsTime ¶ added in v0.20240402.1085733
func (o *Diagnostics) GetLastModifiedAtAsTime() (*time.Time, error)
func (Diagnostics) MarshalJSON ¶ added in v0.20240402.1085733
func (s Diagnostics) MarshalJSON() ([]byte, error)
func (*Diagnostics) SetCreatedAtAsTime ¶ added in v0.20240402.1085733
func (o *Diagnostics) SetCreatedAtAsTime(input time.Time)
func (*Diagnostics) SetLastModifiedAtAsTime ¶ added in v0.20240402.1085733
func (o *Diagnostics) SetLastModifiedAtAsTime(input time.Time)
type GetByNameOperationResponse ¶
type GetByNameOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ActionRule }
type ListByResourceGroupCompleteResult ¶
type ListByResourceGroupCompleteResult struct { LatestHttpResponse *http.Response Items []ActionRule }
type ListByResourceGroupCustomPager ¶ added in v0.20240628.1153531
func (*ListByResourceGroupCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link
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 { LatestHttpResponse *http.Response Items []ActionRule }
type ListBySubscriptionCustomPager ¶ added in v0.20240628.1153531
func (*ListBySubscriptionCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link
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 Suppression ¶ added in v0.20240402.1085733
type Suppression struct { SuppressionConfig *SuppressionConfig `json:"suppressionConfig,omitempty"` // Fields inherited from ActionRuleProperties Conditions *Conditions `json:"conditions,omitempty"` CreatedAt *string `json:"createdAt,omitempty"` CreatedBy *string `json:"createdBy,omitempty"` Description *string `json:"description,omitempty"` LastModifiedAt *string `json:"lastModifiedAt,omitempty"` LastModifiedBy *string `json:"lastModifiedBy,omitempty"` Scope *Scope `json:"scope,omitempty"` Status *ActionRuleStatus `json:"status,omitempty"` }
func (*Suppression) GetCreatedAtAsTime ¶ added in v0.20240402.1085733
func (o *Suppression) GetCreatedAtAsTime() (*time.Time, error)
func (*Suppression) GetLastModifiedAtAsTime ¶ added in v0.20240402.1085733
func (o *Suppression) GetLastModifiedAtAsTime() (*time.Time, error)
func (Suppression) MarshalJSON ¶ added in v0.20240402.1085733
func (s Suppression) MarshalJSON() ([]byte, error)
func (*Suppression) SetCreatedAtAsTime ¶ added in v0.20240402.1085733
func (o *Suppression) SetCreatedAtAsTime(input time.Time)
func (*Suppression) SetLastModifiedAtAsTime ¶ added in v0.20240402.1085733
func (o *Suppression) SetLastModifiedAtAsTime(input time.Time)
type SuppressionConfig ¶ added in v0.20240402.1085733
type SuppressionConfig struct { RecurrenceType SuppressionType `json:"recurrenceType"` Schedule *SuppressionSchedule `json:"schedule,omitempty"` }
type SuppressionSchedule ¶ added in v0.20240402.1085733
type SuppressionType ¶ added in v0.20240402.1085733
type SuppressionType string
const ( SuppressionTypeAlways SuppressionType = "Always" SuppressionTypeDaily SuppressionType = "Daily" SuppressionTypeMonthly SuppressionType = "Monthly" SuppressionTypeOnce SuppressionType = "Once" SuppressionTypeWeekly SuppressionType = "Weekly" )
func (*SuppressionType) UnmarshalJSON ¶ added in v0.20240402.1085733
func (s *SuppressionType) UnmarshalJSON(bytes []byte) error
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_actiongroup.go
- model_actionrule.go
- model_actionruleproperties.go
- model_condition.go
- model_conditions.go
- model_diagnostics.go
- model_patchobject.go
- model_patchproperties.go
- model_scope.go
- model_suppression.go
- model_suppressionconfig.go
- model_suppressionschedule.go
- predicates.go
- version.go