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 ListByResourceGroupCustomPager
- type ListByResourceGroupOperationResponse
- type ListBySubscriptionCompleteResult
- type ListBySubscriptionCustomPager
- 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) (result 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, ...) (result ListByResourceGroupCompleteResult, err error)
- func (c ScheduledQueryRulesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result 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, ...) (result 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" )
func (*ConditionOperator) UnmarshalJSON ¶ added in v0.20240229.1102109
func (s *ConditionOperator) UnmarshalJSON(bytes []byte) error
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData 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" )
func (*DimensionOperator) UnmarshalJSON ¶ added in v0.20240229.1102109
func (s *DimensionOperator) UnmarshalJSON(bytes []byte) error
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ScheduledQueryRuleResource }
type ListByResourceGroupCompleteResult ¶
type ListByResourceGroupCompleteResult struct { LatestHttpResponse *http.Response Items []ScheduledQueryRuleResource }
type ListByResourceGroupCustomPager ¶ added in v0.20240628.1153531
func (*ListByResourceGroupCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link
type ListByResourceGroupOperationResponse ¶
type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ScheduledQueryRuleResource }
type ListBySubscriptionCompleteResult ¶
type ListBySubscriptionCompleteResult struct { LatestHttpResponse *http.Response Items []ScheduledQueryRuleResource }
type ListBySubscriptionCustomPager ¶ added in v0.20240628.1153531
func (*ListBySubscriptionCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListBySubscriptionCustomPager) NextPageLink() *odata.Link
type ListBySubscriptionOperationResponse ¶
type ListBySubscriptionOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ScheduledQueryRuleResource }
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 *resourcemanager.Client
}
func NewScheduledQueryRulesClientWithBaseURI ¶
func NewScheduledQueryRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*ScheduledQueryRulesClient, error)
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) (result ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (ScheduledQueryRulesClient) ListByResourceGroupComplete ¶
func (c ScheduledQueryRulesClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
ListByResourceGroupComplete retrieves all the results into a single object
func (ScheduledQueryRulesClient) ListByResourceGroupCompleteMatchingPredicate ¶
func (c ScheduledQueryRulesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ScheduledQueryRuleResourceOperationPredicate) (result ListByResourceGroupCompleteResult, err error)
ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ScheduledQueryRulesClient) ListBySubscription ¶
func (c ScheduledQueryRulesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error)
ListBySubscription ...
func (ScheduledQueryRulesClient) ListBySubscriptionComplete ¶
func (c ScheduledQueryRulesClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error)
ListBySubscriptionComplete retrieves all the results into a single object
func (ScheduledQueryRulesClient) ListBySubscriptionCompleteMatchingPredicate ¶
func (c ScheduledQueryRulesClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ScheduledQueryRuleResourceOperationPredicate) (result ListBySubscriptionCompleteResult, err error)
ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies 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" )
func (*TimeAggregation) UnmarshalJSON ¶ added in v0.20240229.1102109
func (s *TimeAggregation) UnmarshalJSON(bytes []byte) error
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ScheduledQueryRuleResource }
Source Files ¶
- client.go
- constants.go
- id_scheduledqueryrule.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_listbyresourcegroup.go
- method_listbysubscription.go
- method_update.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