Delen via


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

ScheduledQueryRuleCondition()

Initializes a new instance of ScheduledQueryRuleCondition.

Properties

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.

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.

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 rules of the kind LogAlert.

TimeAggregation

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

Explicit Interface Implementations

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