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 (s ActionGroup) ActionRuleProperties() BaseActionRulePropertiesImpl
- 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 BaseActionRulePropertiesImpl
- type Condition
- type Conditions
- type CreateUpdateOperationResponse
- type DeleteOperationResponse
- type Diagnostics
- func (s Diagnostics) ActionRuleProperties() BaseActionRulePropertiesImpl
- 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 (s Suppression) ActionRuleProperties() BaseActionRulePropertiesImpl
- 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 ¶
func PossibleValuesForSuppressionType() []string
func ValidateActionRuleID ¶
ValidateActionRuleID checks that 'input' can be parsed as a Action Rule ID
Types ¶
type ActionGroup ¶
type ActionGroup struct { ActionGroupId *string `json:"actionGroupId,omitempty"` 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"` Type ActionRuleType `json:"type"` }
func (ActionGroup) ActionRuleProperties ¶
func (s ActionGroup) ActionRuleProperties() BaseActionRulePropertiesImpl
func (*ActionGroup) GetCreatedAtAsTime ¶
func (o *ActionGroup) GetCreatedAtAsTime() (*time.Time, error)
func (*ActionGroup) GetLastModifiedAtAsTime ¶
func (o *ActionGroup) GetLastModifiedAtAsTime() (*time.Time, error)
func (ActionGroup) MarshalJSON ¶
func (s ActionGroup) MarshalJSON() ([]byte, error)
func (*ActionGroup) SetCreatedAtAsTime ¶
func (o *ActionGroup) SetCreatedAtAsTime(input time.Time)
func (*ActionGroup) SetLastModifiedAtAsTime ¶
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 {
ActionRuleProperties() BaseActionRulePropertiesImpl
}
func UnmarshalActionRulePropertiesImplementation ¶
func UnmarshalActionRulePropertiesImplementation(input []byte) (ActionRuleProperties, error)
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 BaseActionRulePropertiesImpl ¶
type BaseActionRulePropertiesImpl struct { 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"` Type ActionRuleType `json:"type"` }
func (BaseActionRulePropertiesImpl) ActionRuleProperties ¶
func (s BaseActionRulePropertiesImpl) ActionRuleProperties() BaseActionRulePropertiesImpl
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 ¶
type Diagnostics struct { 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"` Type ActionRuleType `json:"type"` }
func (Diagnostics) ActionRuleProperties ¶
func (s Diagnostics) ActionRuleProperties() BaseActionRulePropertiesImpl
func (*Diagnostics) GetCreatedAtAsTime ¶
func (o *Diagnostics) GetCreatedAtAsTime() (*time.Time, error)
func (*Diagnostics) GetLastModifiedAtAsTime ¶
func (o *Diagnostics) GetLastModifiedAtAsTime() (*time.Time, error)
func (Diagnostics) MarshalJSON ¶
func (s Diagnostics) MarshalJSON() ([]byte, error)
func (*Diagnostics) SetCreatedAtAsTime ¶
func (o *Diagnostics) SetCreatedAtAsTime(input time.Time)
func (*Diagnostics) SetLastModifiedAtAsTime ¶
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 ¶
func (*ListByResourceGroupCustomPager) NextPageLink ¶
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 ¶
func (*ListBySubscriptionCustomPager) NextPageLink ¶
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 ¶
type RawActionRulePropertiesImpl struct { Type string Values map[string]interface{} // contains filtered or unexported fields }
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).
func (RawActionRulePropertiesImpl) ActionRuleProperties ¶
func (s RawActionRulePropertiesImpl) ActionRuleProperties() BaseActionRulePropertiesImpl
type Suppression ¶
type Suppression struct { SuppressionConfig *SuppressionConfig `json:"suppressionConfig,omitempty"` 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"` Type ActionRuleType `json:"type"` }
func (Suppression) ActionRuleProperties ¶
func (s Suppression) ActionRuleProperties() BaseActionRulePropertiesImpl
func (*Suppression) GetCreatedAtAsTime ¶
func (o *Suppression) GetCreatedAtAsTime() (*time.Time, error)
func (*Suppression) GetLastModifiedAtAsTime ¶
func (o *Suppression) GetLastModifiedAtAsTime() (*time.Time, error)
func (Suppression) MarshalJSON ¶
func (s Suppression) MarshalJSON() ([]byte, error)
func (*Suppression) SetCreatedAtAsTime ¶
func (o *Suppression) SetCreatedAtAsTime(input time.Time)
func (*Suppression) SetLastModifiedAtAsTime ¶
func (o *Suppression) SetLastModifiedAtAsTime(input time.Time)
type SuppressionConfig ¶
type SuppressionConfig struct { RecurrenceType SuppressionType `json:"recurrenceType"` Schedule *SuppressionSchedule `json:"schedule,omitempty"` }
type SuppressionSchedule ¶
type SuppressionType ¶
type SuppressionType string
const ( SuppressionTypeAlways SuppressionType = "Always" SuppressionTypeDaily SuppressionType = "Daily" SuppressionTypeMonthly SuppressionType = "Monthly" SuppressionTypeOnce SuppressionType = "Once" SuppressionTypeWeekly SuppressionType = "Weekly" )
func (*SuppressionType) UnmarshalJSON ¶
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