Dela via


ManagementEventRuleCondition Class

Definition

A management event rule condition.

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

Constructors

ManagementEventRuleCondition()

Initializes a new instance of ManagementEventRuleCondition.

Properties

Aggregation

How the data that is collected should be combined over time and when the alert is activated. Note that for management event alerts aggregation is optional – if it is not provided then any event will cause the alert to activate.

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)

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<ManagementEventRuleCondition>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ManagementEventRuleCondition>.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<ManagementEventRuleCondition>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ManagementEventRuleCondition>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ManagementEventRuleCondition>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to