Sdílet prostřednictvím


AlertRuleLeafCondition Class

Definition

An Activity Log Alert rule condition that is met by comparing the field and value of an Activity Log event. This condition must contain 'field' and either 'equals' or 'containsAny'.

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

Constructors

AlertRuleLeafCondition()

Initializes a new instance of AlertRuleLeafCondition.

Properties

ContainsAny

The value of the event's field will be compared to the values in this array (case-insensitive) to determine if the condition is met.

EqualsValue

The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.

Field

The name of the Activity Log event's field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties'.

Explicit Interface Implementations

IJsonModel<AlertRuleLeafCondition>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<AlertRuleLeafCondition>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AlertRuleLeafCondition>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AlertRuleLeafCondition>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<AlertRuleLeafCondition>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to