Documentation ¶
Index ¶
- func PossibleValuesForAlertSeverity() []string
- func PossibleValuesForConditionalOperator() []string
- func PossibleValuesForEnabled() []string
- func PossibleValuesForMetricTriggerType() []string
- func PossibleValuesForOperator() []string
- func PossibleValuesForProvisioningState() []string
- func PossibleValuesForQueryType() []string
- func ValidateScheduledQueryRuleID(input interface{}, key string) (warnings []string, errors []error)
- type Action
- type AlertSeverity
- type AlertingAction
- type AzNsActionGroup
- type ConditionalOperator
- type CreateOrUpdateOperationResponse
- type Criteria
- type DeleteOperationResponse
- type Dimension
- type Enabled
- type GetOperationResponse
- type ListByResourceGroupOperationOptions
- type ListByResourceGroupOperationResponse
- type ListBySubscriptionOperationOptions
- type ListBySubscriptionOperationResponse
- type LogMetricTrigger
- type LogSearchRule
- type LogSearchRulePatch
- type LogSearchRuleResource
- type LogSearchRuleResourceCollection
- type LogSearchRuleResourcePatch
- type LogToMetricAction
- type MetricTriggerType
- type Operator
- type ProvisioningState
- type QueryType
- type RawActionImpl
- type Schedule
- type ScheduledQueryRuleId
- type ScheduledQueryRulesClient
- func (c ScheduledQueryRulesClient) CreateOrUpdate(ctx context.Context, id ScheduledQueryRuleId, input LogSearchRuleResource) (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) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, ...) (result ListBySubscriptionOperationResponse, err error)
- func (c ScheduledQueryRulesClient) Update(ctx context.Context, id ScheduledQueryRuleId, input LogSearchRuleResourcePatch) (result UpdateOperationResponse, err error)
- type Source
- type TriggerCondition
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAlertSeverity ¶
func PossibleValuesForAlertSeverity() []string
func PossibleValuesForConditionalOperator ¶
func PossibleValuesForConditionalOperator() []string
func PossibleValuesForEnabled ¶
func PossibleValuesForEnabled() []string
func PossibleValuesForMetricTriggerType ¶
func PossibleValuesForMetricTriggerType() []string
func PossibleValuesForOperator ¶
func PossibleValuesForOperator() []string
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func PossibleValuesForQueryType ¶
func PossibleValuesForQueryType() []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 string
const ( AlertSeverityFour AlertSeverity = "4" AlertSeverityOne AlertSeverity = "1" AlertSeverityThree AlertSeverity = "3" AlertSeverityTwo AlertSeverity = "2" AlertSeverityZero AlertSeverity = "0" )
type AlertingAction ¶
type AlertingAction struct { AznsAction *AzNsActionGroup `json:"aznsAction,omitempty"` Severity AlertSeverity `json:"severity"` ThrottlingInMin *int64 `json:"throttlingInMin,omitempty"` Trigger TriggerCondition `json:"trigger"` }
func (AlertingAction) MarshalJSON ¶
func (s AlertingAction) MarshalJSON() ([]byte, error)
type AzNsActionGroup ¶
type ConditionalOperator ¶
type ConditionalOperator string
const ( ConditionalOperatorEqual ConditionalOperator = "Equal" ConditionalOperatorGreaterThan ConditionalOperator = "GreaterThan" ConditionalOperatorGreaterThanOrEqual ConditionalOperator = "GreaterThanOrEqual" ConditionalOperatorLessThan ConditionalOperator = "LessThan" ConditionalOperatorLessThanOrEqual ConditionalOperator = "LessThanOrEqual" )
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response Model *LogSearchRuleResource }
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *LogSearchRuleResource }
type ListByResourceGroupOperationOptions ¶
type ListByResourceGroupOperationOptions struct {
Filter *string
}
func DefaultListByResourceGroupOperationOptions ¶
func DefaultListByResourceGroupOperationOptions() ListByResourceGroupOperationOptions
type ListByResourceGroupOperationResponse ¶
type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response Model *LogSearchRuleResourceCollection }
type ListBySubscriptionOperationOptions ¶
type ListBySubscriptionOperationOptions struct {
Filter *string
}
func DefaultListBySubscriptionOperationOptions ¶
func DefaultListBySubscriptionOperationOptions() ListBySubscriptionOperationOptions
type ListBySubscriptionOperationResponse ¶
type ListBySubscriptionOperationResponse struct { HttpResponse *http.Response Model *LogSearchRuleResourceCollection }
type LogMetricTrigger ¶
type LogMetricTrigger struct { MetricColumn *string `json:"metricColumn,omitempty"` MetricTriggerType *MetricTriggerType `json:"metricTriggerType,omitempty"` Threshold *float64 `json:"threshold,omitempty"` ThresholdOperator *ConditionalOperator `json:"thresholdOperator,omitempty"` }
type LogSearchRule ¶
type LogSearchRule struct { Action Action `json:"action"` AutoMitigate *bool `json:"autoMitigate,omitempty"` CreatedWithApiVersion *string `json:"createdWithApiVersion,omitempty"` Description *string `json:"description,omitempty"` DisplayName *string `json:"displayName,omitempty"` Enabled *Enabled `json:"enabled,omitempty"` IsLegacyLogAnalyticsRule *bool `json:"isLegacyLogAnalyticsRule,omitempty"` LastUpdatedTime *string `json:"lastUpdatedTime,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` Schedule *Schedule `json:"schedule,omitempty"` Source Source `json:"source"` }
func (*LogSearchRule) GetLastUpdatedTimeAsTime ¶
func (o *LogSearchRule) GetLastUpdatedTimeAsTime() (*time.Time, error)
func (*LogSearchRule) SetLastUpdatedTimeAsTime ¶
func (o *LogSearchRule) SetLastUpdatedTimeAsTime(input time.Time)
func (*LogSearchRule) UnmarshalJSON ¶
func (s *LogSearchRule) UnmarshalJSON(bytes []byte) error
type LogSearchRulePatch ¶
type LogSearchRulePatch struct {
Enabled *Enabled `json:"enabled,omitempty"`
}
type LogSearchRuleResource ¶
type LogSearchRuleResource struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Kind *string `json:"kind,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties LogSearchRule `json:"properties"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type LogSearchRuleResourceCollection ¶
type LogSearchRuleResourceCollection struct {
Value *[]LogSearchRuleResource `json:"value,omitempty"`
}
type LogSearchRuleResourcePatch ¶
type LogSearchRuleResourcePatch struct { Properties *LogSearchRulePatch `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type LogToMetricAction ¶
type LogToMetricAction struct {
Criteria []Criteria `json:"criteria"`
}
func (LogToMetricAction) MarshalJSON ¶
func (s LogToMetricAction) MarshalJSON() ([]byte, error)
type MetricTriggerType ¶
type MetricTriggerType string
const ( MetricTriggerTypeConsecutive MetricTriggerType = "Consecutive" MetricTriggerTypeTotal MetricTriggerType = "Total" )
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateDeploying ProvisioningState = "Deploying" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateSucceeded ProvisioningState = "Succeeded" )
type RawActionImpl ¶ added in v0.20230807.1063129
RawActionImpl 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 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) 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 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 LogSearchRuleResource) (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, options ListByResourceGroupOperationOptions) (result ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (ScheduledQueryRulesClient) ListBySubscription ¶
func (c ScheduledQueryRulesClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId, options ListBySubscriptionOperationOptions) (result ListBySubscriptionOperationResponse, err error)
ListBySubscription ...
func (ScheduledQueryRulesClient) Update ¶
func (c ScheduledQueryRulesClient) Update(ctx context.Context, id ScheduledQueryRuleId, input LogSearchRuleResourcePatch) (result UpdateOperationResponse, err error)
Update ...
type TriggerCondition ¶
type TriggerCondition struct { MetricTrigger *LogMetricTrigger `json:"metricTrigger,omitempty"` Threshold float64 `json:"threshold"` ThresholdOperator ConditionalOperator `json:"thresholdOperator"` }
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response Model *LogSearchRuleResource }
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_action.go
- model_alertingaction.go
- model_aznsactiongroup.go
- model_criteria.go
- model_dimension.go
- model_logmetrictrigger.go
- model_logsearchrule.go
- model_logsearchrulepatch.go
- model_logsearchruleresource.go
- model_logsearchruleresourcecollection.go
- model_logsearchruleresourcepatch.go
- model_logtometricaction.go
- model_schedule.go
- model_source.go
- model_triggercondition.go
- version.go