Share via


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'.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleLeafConditionTypeConverter))]
public class AlertRuleLeafCondition : Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IAlertRuleLeafCondition
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleLeafConditionTypeConverter))>]
type AlertRuleLeafCondition = class
    interface IAlertRuleLeafCondition
    interface IJsonSerializable
Public Class AlertRuleLeafCondition
Implements IAlertRuleLeafCondition
Inheritance
AlertRuleLeafCondition
Attributes
Implements

Constructors

AlertRuleLeafCondition()

Creates an new AlertRuleLeafCondition instance.

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.

Equal

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'.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of AlertRuleLeafCondition.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of AlertRuleLeafCondition.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IAlertRuleLeafCondition.

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of AlertRuleLeafCondition into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to