ภาษา

ScheduledQueryRuleCondition Class

Definition

A condition of the scheduled query rule.

public class ScheduledQueryRuleCondition : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Monitor.Models.ScheduledQueryRuleCondition>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Monitor.Models.ScheduledQueryRuleCondition>
type ScheduledQueryRuleCondition = class
    interface IJsonModel<ScheduledQueryRuleCondition>
    interface IPersistableModel<ScheduledQueryRuleCondition>
Public Class ScheduledQueryRuleCondition
Implements IJsonModel(Of ScheduledQueryRuleCondition), IPersistableModel(Of ScheduledQueryRuleCondition)
Inheritance
ScheduledQueryRuleCondition
Implements

Constructors

Name Description
ScheduledQueryRuleCondition()

Initializes a new instance of ScheduledQueryRuleCondition.

Properties

Name Description
AlertSensitivity

The extent of deviation required to trigger an alert. Allowed values are 'Low', 'Medium' and 'High'. This will affect how tight the threshold is to the metric series pattern. Relevant only for dynamic threshold rules of the kind LogAlert.

CriterionType

Specifies the type of threshold criteria.

Dimensions

List of Dimensions conditions.

FailingPeriods

The minimum number of violations required within the selected lookback time window required to raise an alert. Relevant only for rules of the kind LogAlert.

IgnoreDataBefore

Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format). Relevant only for dynamic threshold rules of the kind LogAlert.

MetricMeasureColumn

The column containing the metric measure number. Relevant only for rules of the kind LogAlert.

MetricName

The name of the metric to be sent. Relevant and required only for rules of the kind LogToMetric.

MinRecurrenceCount

The minimum results count that should be found for triggering an alert. Relevant only for rules of the kind SimpleLogAlert.

Operator

The criteria operator. Relevant and required only for rules of the kind LogAlert.

Query

Log query alert.

ResourceIdColumn

The column containing the resource id. The content of the column must be a uri formatted as resource id. Relevant only for rules of the kind LogAlert.

Threshold

the criteria threshold value that activates the alert. Relevant and required only for static threshold rules of the kind LogAlert.

TimeAggregation

Aggregation type. Relevant and required only for rules of the kind LogAlert.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<ScheduledQueryRuleCondition>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ScheduledQueryRuleCondition>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ScheduledQueryRuleCondition>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ScheduledQueryRuleCondition>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ScheduledQueryRuleCondition>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to