Udostępnij za pośrednictwem


LocationThresholdRuleCondition Class

Definition

A rule condition based on a certain number of locations failing.

[Newtonsoft.Json.JsonObject("Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition")]
public class LocationThresholdRuleCondition : Microsoft.Azure.Management.Monitor.Models.RuleCondition
[<Newtonsoft.Json.JsonObject("Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition")>]
type LocationThresholdRuleCondition = class
    inherit RuleCondition
Public Class LocationThresholdRuleCondition
Inherits RuleCondition
Inheritance
LocationThresholdRuleCondition
Attributes
Newtonsoft.Json.JsonObjectAttribute

Constructors

LocationThresholdRuleCondition()

Initializes a new instance of the LocationThresholdRuleCondition class.

LocationThresholdRuleCondition(Int32, RuleDataSource, Nullable<TimeSpan>)

Initializes a new instance of the LocationThresholdRuleCondition class.

Properties

DataSource

Gets or sets the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.

(Inherited from RuleCondition)
FailedLocationCount

Gets or sets the number of locations that must fail to activate the alert.

WindowSize

Gets or sets the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.

Methods

Validate()

Validate the object.

Applies to