Share via


ConditionFailingPeriods Class

Definition

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.

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

Constructors

ConditionFailingPeriods()

Creates an new ConditionFailingPeriods instance.

Properties

MinFailingPeriodsToAlert

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

NumberOfEvaluationPeriod

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

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ConditionFailingPeriods.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ConditionFailingPeriods.

FromJson(JsonNode)

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

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of ConditionFailingPeriods into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to