Condividi tramite


LocationThresholdRuleCondition Class

Definition

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

public class LocationThresholdRuleCondition : Azure.ResourceManager.Monitor.Models.AlertRuleCondition, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Monitor.Models.LocationThresholdRuleCondition>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Monitor.Models.LocationThresholdRuleCondition>
type LocationThresholdRuleCondition = class
    inherit AlertRuleCondition
    interface IJsonModel<LocationThresholdRuleCondition>
    interface IPersistableModel<LocationThresholdRuleCondition>
Public Class LocationThresholdRuleCondition
Inherits AlertRuleCondition
Implements IJsonModel(Of LocationThresholdRuleCondition), IPersistableModel(Of LocationThresholdRuleCondition)
Inheritance
LocationThresholdRuleCondition
Implements

Constructors

LocationThresholdRuleCondition(Int32)

Initializes a new instance of LocationThresholdRuleCondition.

Properties

DataSource

the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource. Please note RuleDataSource is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include RuleManagementEventDataSource and RuleMetricDataSource.

(Inherited from AlertRuleCondition)
FailedLocationCount

the number of locations that must fail to activate the alert.

WindowSize

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.

Explicit Interface Implementations

IJsonModel<AlertRuleCondition>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from AlertRuleCondition)
IJsonModel<AlertRuleCondition>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from AlertRuleCondition)
IJsonModel<LocationThresholdRuleCondition>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<LocationThresholdRuleCondition>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AlertRuleCondition>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from AlertRuleCondition)
IPersistableModel<AlertRuleCondition>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from AlertRuleCondition)
IPersistableModel<AlertRuleCondition>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from AlertRuleCondition)
IPersistableModel<LocationThresholdRuleCondition>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<LocationThresholdRuleCondition>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<LocationThresholdRuleCondition>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to