Condition Class

Definition

A condition of the scheduled query rule.

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

Constructors

Condition()

Creates an new Condition instance.

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

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of Condition.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Condition.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.ScheduledQueryRule.Models.Api20210801.ICondition.

FromJsonString(String)

Creates a new instance of Condition, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of Condition into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to