Partilhar via


ICondition Interface

Definition

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.ScheduledQueryRule.Models.Api20210801.ConditionTypeConverter))]
public interface ICondition : Microsoft.Azure.PowerShell.Cmdlets.Monitor.ScheduledQueryRule.Runtime.IJsonSerializable
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.ScheduledQueryRule.Models.Api20210801.ConditionTypeConverter))>]
type ICondition = interface
    interface IJsonSerializable
Public Interface ICondition
Implements IJsonSerializable
Derived
Attributes
Implements

Properties

Dimension

List of Dimensions conditions

FailingPeriodMinFailingPeriodsToAlert

The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods. Default value is 1

FailingPeriodNumberOfEvaluationPeriod

The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points. Default value is 1

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.

Methods

ToJson(JsonObject, SerializationMode) (Inherited from IJsonSerializable)

Applies to