Documentation ¶
Index ¶
- func PossibleValuesForAlertSeverity() []int64
- func PossibleValuesForConditionOperator() []string
- func PossibleValuesForDimensionOperator() []string
- func PossibleValuesForKind() []string
- func PossibleValuesForTimeAggregation() []string
- func ValidateScheduledQueryRuleID(input interface{}, key string) (warnings []string, errors []error)
- type Actions
- type AlertSeverity
- type Condition
- type ConditionFailingPeriods
- type ConditionOperator
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type Dimension
- type DimensionOperator
- type GetOperationResponse
- type Kind
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupOperationResponse
- type ListBySubscriptionCompleteResult
- type ListBySubscriptionOperationResponse
- type ScheduledQueryRuleCriteria
- type ScheduledQueryRuleId
- type ScheduledQueryRuleProperties
- type ScheduledQueryRuleResource
- type ScheduledQueryRuleResourceOperationPredicate
- type ScheduledQueryRuleResourcePatch
- type ScheduledQueryRulesClient
- func (c ScheduledQueryRulesClient) CreateOrUpdate(ctx context.Context, id ScheduledQueryRuleId, input ScheduledQueryRuleResource) (result CreateOrUpdateOperationResponse, err error)
- func (c ScheduledQueryRulesClient) Delete(ctx context.Context, id ScheduledQueryRuleId) (result DeleteOperationResponse, err error)
- func (c ScheduledQueryRulesClient) Get(ctx context.Context, id ScheduledQueryRuleId) (result GetOperationResponse, err error)
- func (c ScheduledQueryRulesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (resp ListByResourceGroupOperationResponse, err error)
- func (c ScheduledQueryRulesClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
- func (c ScheduledQueryRulesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (resp ListByResourceGroupCompleteResult, err error)
- func (c ScheduledQueryRulesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (resp ListBySubscriptionOperationResponse, err error)
- func (c ScheduledQueryRulesClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error)
- func (c ScheduledQueryRulesClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (resp ListBySubscriptionCompleteResult, err error)
- func (c ScheduledQueryRulesClient) Update(ctx context.Context, id ScheduledQueryRuleId, ...) (result UpdateOperationResponse, err error)
- type TimeAggregation
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAlertSeverity ¶
func PossibleValuesForAlertSeverity() []int64
func PossibleValuesForConditionOperator ¶
func PossibleValuesForConditionOperator() []string
func PossibleValuesForDimensionOperator ¶
func PossibleValuesForDimensionOperator() []string
func PossibleValuesForKind ¶
func PossibleValuesForKind() []string
func PossibleValuesForTimeAggregation ¶
func PossibleValuesForTimeAggregation() []string
func ValidateScheduledQueryRuleID ¶
func ValidateScheduledQueryRuleID(input interface{}, key string) (warnings []string, errors []error)
ValidateScheduledQueryRuleID checks that 'input' can be parsed as a Scheduled Query Rule ID
Types ¶
type AlertSeverity ¶
type AlertSeverity int64
const ( AlertSeverityFour AlertSeverity = 4 AlertSeverityOne AlertSeverity = 1 AlertSeverityThree AlertSeverity = 3 AlertSeverityTwo AlertSeverity = 2 AlertSeverityZero AlertSeverity = 0 )
type Condition ¶
type Condition struct { Dimensions *[]Dimension `json:"dimensions,omitempty"` FailingPeriods *ConditionFailingPeriods `json:"failingPeriods,omitempty"` MetricMeasureColumn *string `json:"metricMeasureColumn,omitempty"` MetricName *string `json:"metricName,omitempty"` Operator *ConditionOperator `json:"operator,omitempty"` Query *string `json:"query,omitempty"` ResourceIdColumn *string `json:"resourceIdColumn,omitempty"` Threshold *float64 `json:"threshold,omitempty"` TimeAggregation *TimeAggregation `json:"timeAggregation,omitempty"` }
type ConditionFailingPeriods ¶
type ConditionOperator ¶
type ConditionOperator string
const ( ConditionOperatorEquals ConditionOperator = "Equals" ConditionOperatorGreaterThan ConditionOperator = "GreaterThan" ConditionOperatorGreaterThanOrEqual ConditionOperator = "GreaterThanOrEqual" ConditionOperatorLessThan ConditionOperator = "LessThan" ConditionOperatorLessThanOrEqual ConditionOperator = "LessThanOrEqual" )
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response Model *ScheduledQueryRuleResource }
type DeleteOperationResponse ¶
type Dimension ¶
type Dimension struct { Name string `json:"name"` Operator DimensionOperator `json:"operator"` Values []string `json:"values"` }
type DimensionOperator ¶
type DimensionOperator string
const ( DimensionOperatorExclude DimensionOperator = "Exclude" DimensionOperatorInclude DimensionOperator = "Include" )
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *ScheduledQueryRuleResource }
type ListByResourceGroupCompleteResult ¶
type ListByResourceGroupCompleteResult struct {
Items []ScheduledQueryRuleResource
}
type ListByResourceGroupOperationResponse ¶
type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response Model *[]ScheduledQueryRuleResource // contains filtered or unexported fields }
func (ListByResourceGroupOperationResponse) HasMore ¶
func (r ListByResourceGroupOperationResponse) HasMore() bool
func (ListByResourceGroupOperationResponse) LoadMore ¶
func (r ListByResourceGroupOperationResponse) LoadMore(ctx context.Context) (resp ListByResourceGroupOperationResponse, err error)
type ListBySubscriptionCompleteResult ¶
type ListBySubscriptionCompleteResult struct {
Items []ScheduledQueryRuleResource
}
type ListBySubscriptionOperationResponse ¶
type ListBySubscriptionOperationResponse struct { HttpResponse *http.Response Model *[]ScheduledQueryRuleResource // contains filtered or unexported fields }
func (ListBySubscriptionOperationResponse) HasMore ¶
func (r ListBySubscriptionOperationResponse) HasMore() bool
func (ListBySubscriptionOperationResponse) LoadMore ¶
func (r ListBySubscriptionOperationResponse) LoadMore(ctx context.Context) (resp ListBySubscriptionOperationResponse, err error)
type ScheduledQueryRuleCriteria ¶
type ScheduledQueryRuleCriteria struct {
AllOf *[]Condition `json:"allOf,omitempty"`
}
type ScheduledQueryRuleId ¶
type ScheduledQueryRuleId struct { SubscriptionId string ResourceGroupName string ScheduledQueryRuleName string }
ScheduledQueryRuleId is a struct representing the Resource ID for a Scheduled Query Rule
func NewScheduledQueryRuleID ¶
func NewScheduledQueryRuleID(subscriptionId string, resourceGroupName string, scheduledQueryRuleName string) ScheduledQueryRuleId
NewScheduledQueryRuleID returns a new ScheduledQueryRuleId struct
func ParseScheduledQueryRuleID ¶
func ParseScheduledQueryRuleID(input string) (*ScheduledQueryRuleId, error)
ParseScheduledQueryRuleID parses 'input' into a ScheduledQueryRuleId
func ParseScheduledQueryRuleIDInsensitively ¶
func ParseScheduledQueryRuleIDInsensitively(input string) (*ScheduledQueryRuleId, error)
ParseScheduledQueryRuleIDInsensitively parses 'input' case-insensitively into a ScheduledQueryRuleId note: this method should only be used for API response data and not user input
func (*ScheduledQueryRuleId) FromParseResult ¶
func (id *ScheduledQueryRuleId) FromParseResult(input resourceids.ParseResult) error
func (ScheduledQueryRuleId) ID ¶
func (id ScheduledQueryRuleId) ID() string
ID returns the formatted Scheduled Query Rule ID
func (ScheduledQueryRuleId) Segments ¶
func (id ScheduledQueryRuleId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Scheduled Query Rule ID
func (ScheduledQueryRuleId) String ¶
func (id ScheduledQueryRuleId) String() string
String returns a human-readable description of this Scheduled Query Rule ID
type ScheduledQueryRuleProperties ¶
type ScheduledQueryRuleProperties struct { Actions *Actions `json:"actions,omitempty"` AutoMitigate *bool `json:"autoMitigate,omitempty"` CheckWorkspaceAlertsStorageConfigured *bool `json:"checkWorkspaceAlertsStorageConfigured,omitempty"` CreatedWithApiVersion *string `json:"createdWithApiVersion,omitempty"` Criteria *ScheduledQueryRuleCriteria `json:"criteria,omitempty"` Description *string `json:"description,omitempty"` DisplayName *string `json:"displayName,omitempty"` Enabled *bool `json:"enabled,omitempty"` EvaluationFrequency *string `json:"evaluationFrequency,omitempty"` IsLegacyLogAnalyticsRule *bool `json:"isLegacyLogAnalyticsRule,omitempty"` IsWorkspaceAlertsStorageConfigured *bool `json:"isWorkspaceAlertsStorageConfigured,omitempty"` MuteActionsDuration *string `json:"muteActionsDuration,omitempty"` OverrideQueryTimeRange *string `json:"overrideQueryTimeRange,omitempty"` Scopes *[]string `json:"scopes,omitempty"` Severity *AlertSeverity `json:"severity,omitempty"` SkipQueryValidation *bool `json:"skipQueryValidation,omitempty"` TargetResourceTypes *[]string `json:"targetResourceTypes,omitempty"` WindowSize *string `json:"windowSize,omitempty"` }
type ScheduledQueryRuleResource ¶
type ScheduledQueryRuleResource struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Kind *Kind `json:"kind,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties ScheduledQueryRuleProperties `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type ScheduledQueryRuleResourceOperationPredicate ¶
type ScheduledQueryRuleResourceOperationPredicate struct { Etag *string Id *string Location *string Name *string Type *string }
func (ScheduledQueryRuleResourceOperationPredicate) Matches ¶
func (p ScheduledQueryRuleResourceOperationPredicate) Matches(input ScheduledQueryRuleResource) bool
type ScheduledQueryRuleResourcePatch ¶
type ScheduledQueryRuleResourcePatch struct { Properties *ScheduledQueryRuleProperties `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type ScheduledQueryRulesClient ¶
type ScheduledQueryRulesClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewScheduledQueryRulesClientWithBaseURI ¶
func NewScheduledQueryRulesClientWithBaseURI(endpoint string) ScheduledQueryRulesClient
func (ScheduledQueryRulesClient) CreateOrUpdate ¶
func (c ScheduledQueryRulesClient) CreateOrUpdate(ctx context.Context, id ScheduledQueryRuleId, input ScheduledQueryRuleResource) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ScheduledQueryRulesClient) Delete ¶
func (c ScheduledQueryRulesClient) Delete(ctx context.Context, id ScheduledQueryRuleId) (result DeleteOperationResponse, err error)
Delete ...
func (ScheduledQueryRulesClient) Get ¶
func (c ScheduledQueryRulesClient) Get(ctx context.Context, id ScheduledQueryRuleId) (result GetOperationResponse, err error)
Get ...
func (ScheduledQueryRulesClient) ListByResourceGroup ¶
func (c ScheduledQueryRulesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (resp ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (ScheduledQueryRulesClient) ListByResourceGroupComplete ¶
func (c ScheduledQueryRulesClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
ListByResourceGroupComplete retrieves all of the results into a single object
func (ScheduledQueryRulesClient) ListByResourceGroupCompleteMatchingPredicate ¶
func (c ScheduledQueryRulesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ScheduledQueryRuleResourceOperationPredicate) (resp ListByResourceGroupCompleteResult, err error)
ListByResourceGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (ScheduledQueryRulesClient) ListBySubscription ¶
func (c ScheduledQueryRulesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (resp ListBySubscriptionOperationResponse, err error)
ListBySubscription ...
func (ScheduledQueryRulesClient) ListBySubscriptionComplete ¶
func (c ScheduledQueryRulesClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error)
ListBySubscriptionComplete retrieves all of the results into a single object
func (ScheduledQueryRulesClient) ListBySubscriptionCompleteMatchingPredicate ¶
func (c ScheduledQueryRulesClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ScheduledQueryRuleResourceOperationPredicate) (resp ListBySubscriptionCompleteResult, err error)
ListBySubscriptionCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (ScheduledQueryRulesClient) Update ¶
func (c ScheduledQueryRulesClient) Update(ctx context.Context, id ScheduledQueryRuleId, input ScheduledQueryRuleResourcePatch) (result UpdateOperationResponse, err error)
Update ...
type TimeAggregation ¶
type TimeAggregation string
const ( TimeAggregationAverage TimeAggregation = "Average" TimeAggregationCount TimeAggregation = "Count" TimeAggregationMaximum TimeAggregation = "Maximum" TimeAggregationMinimum TimeAggregation = "Minimum" TimeAggregationTotal TimeAggregation = "Total" )
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response Model *ScheduledQueryRuleResource }
Source Files ¶
- client.go
- constants.go
- id_scheduledqueryrule.go
- method_createorupdate_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_listbyresourcegroup_autorest.go
- method_listbysubscription_autorest.go
- method_update_autorest.go
- model_actions.go
- model_condition.go
- model_conditionfailingperiods.go
- model_dimension.go
- model_scheduledqueryrulecriteria.go
- model_scheduledqueryruleproperties.go
- model_scheduledqueryruleresource.go
- model_scheduledqueryruleresourcepatch.go
- predicates.go
- version.go