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 BaseActionImpl
- 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 Action ¶
type Action interface {
Action() BaseActionImpl
}
func UnmarshalActionImplementation ¶ added in v0.20240920.1135249
type AlertSeverity ¶
type AlertSeverity string
const ( AlertSeverityFour AlertSeverity = "4" AlertSeverityOne AlertSeverity = "1" AlertSeverityThree AlertSeverity = "3" AlertSeverityTwo AlertSeverity = "2" AlertSeverityZero AlertSeverity = "0" )
func (*AlertSeverity) UnmarshalJSON ¶ added in v0.20240229.1102109
func (s *AlertSeverity) UnmarshalJSON(bytes []byte) error
type AlertingAction ¶
type AlertingAction struct { AznsAction *AzNsActionGroup `json:"aznsAction,omitempty"` Severity AlertSeverity `json:"severity"` ThrottlingInMin *int64 `json:"throttlingInMin,omitempty"` Trigger TriggerCondition `json:"trigger"` OdataType string `json:"odata.type"` }
func (AlertingAction) Action ¶ added in v0.20240920.1135249
func (s AlertingAction) Action() BaseActionImpl
func (AlertingAction) MarshalJSON ¶
func (s AlertingAction) MarshalJSON() ([]byte, error)
type AzNsActionGroup ¶
type BaseActionImpl ¶ added in v0.20240920.1135249
type BaseActionImpl struct {
OdataType string `json:"odata.type"`
}
func (BaseActionImpl) Action ¶ added in v0.20240920.1135249
func (s BaseActionImpl) Action() BaseActionImpl
type ConditionalOperator ¶
type ConditionalOperator string
const ( ConditionalOperatorEqual ConditionalOperator = "Equal" ConditionalOperatorGreaterThan ConditionalOperator = "GreaterThan" ConditionalOperatorGreaterThanOrEqual ConditionalOperator = "GreaterThanOrEqual" ConditionalOperatorLessThan ConditionalOperator = "LessThan" ConditionalOperatorLessThanOrEqual ConditionalOperator = "LessThanOrEqual" )
func (*ConditionalOperator) UnmarshalJSON ¶ added in v0.20240229.1102109
func (s *ConditionalOperator) UnmarshalJSON(bytes []byte) error
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *LogSearchRuleResource }
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *LogSearchRuleResource }
type ListByResourceGroupOperationOptions ¶
type ListByResourceGroupOperationOptions struct {
Filter *string
}
func DefaultListByResourceGroupOperationOptions ¶
func DefaultListByResourceGroupOperationOptions() ListByResourceGroupOperationOptions
func (ListByResourceGroupOperationOptions) ToHeaders ¶ added in v0.20240229.1102109
func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers
func (ListByResourceGroupOperationOptions) ToOData ¶ added in v0.20240229.1102109
func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query
func (ListByResourceGroupOperationOptions) ToQuery ¶ added in v0.20240229.1102109
func (o ListByResourceGroupOperationOptions) ToQuery() *client.QueryParams
type ListByResourceGroupOperationResponse ¶
type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *LogSearchRuleResourceCollection }
type ListBySubscriptionOperationOptions ¶
type ListBySubscriptionOperationOptions struct {
Filter *string
}
func DefaultListBySubscriptionOperationOptions ¶
func DefaultListBySubscriptionOperationOptions() ListBySubscriptionOperationOptions
func (ListBySubscriptionOperationOptions) ToHeaders ¶ added in v0.20240229.1102109
func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers
func (ListBySubscriptionOperationOptions) ToOData ¶ added in v0.20240229.1102109
func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query
func (ListBySubscriptionOperationOptions) ToQuery ¶ added in v0.20240229.1102109
func (o ListBySubscriptionOperationOptions) ToQuery() *client.QueryParams
type ListBySubscriptionOperationResponse ¶
type ListBySubscriptionOperationResponse struct { HttpResponse *http.Response OData *odata.OData 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"` OdataType string `json:"odata.type"` }
func (LogToMetricAction) Action ¶ added in v0.20240920.1135249
func (s LogToMetricAction) Action() BaseActionImpl
func (LogToMetricAction) MarshalJSON ¶
func (s LogToMetricAction) MarshalJSON() ([]byte, error)
type MetricTriggerType ¶
type MetricTriggerType string
const ( MetricTriggerTypeConsecutive MetricTriggerType = "Consecutive" MetricTriggerTypeTotal MetricTriggerType = "Total" )
func (*MetricTriggerType) UnmarshalJSON ¶ added in v0.20240229.1102109
func (s *MetricTriggerType) UnmarshalJSON(bytes []byte) error
type Operator ¶
type Operator string
const (
OperatorInclude Operator = "Include"
)
func (*Operator) UnmarshalJSON ¶ added in v0.20240229.1102109
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateDeploying ProvisioningState = "Deploying" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateSucceeded ProvisioningState = "Succeeded" )
func (*ProvisioningState) UnmarshalJSON ¶ added in v0.20240229.1102109
func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error
type QueryType ¶
type QueryType string
const (
QueryTypeResultCount QueryType = "ResultCount"
)
func (*QueryType) UnmarshalJSON ¶ added in v0.20240229.1102109
type RawActionImpl ¶
type RawActionImpl struct { Type string Values map[string]interface{} // contains filtered or unexported fields }
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).
func (RawActionImpl) Action ¶ added in v0.20240920.1135249
func (s RawActionImpl) Action() BaseActionImpl
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 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 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 OData *odata.OData Model *LogSearchRuleResource }
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_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