Udostępnij za pośrednictwem


AlertRuleAnyOfOrLeafCondition Class

Definition

An Activity Log Alert rule condition that is met when all its member conditions are met. Each condition can be of one of the following types: Important: Each type has its unique subset of properties. Properties from different types CANNOT exist in one condition.

  • Leaf Condition - must contain 'field' and either 'equals' or 'containsAny'. Please note, 'anyOf' should not be set in a Leaf Condition.
  • AnyOf Condition - must contain only 'anyOf' (which is an array of Leaf Conditions). Please note, 'field', 'equals' and 'containsAny' should not be set in an AnyOf Condition.
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleAnyOfOrLeafConditionTypeConverter))]
public class AlertRuleAnyOfOrLeafCondition : Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IAlertRuleAnyOfOrLeafCondition, Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.AlertRuleAnyOfOrLeafConditionTypeConverter))>]
type AlertRuleAnyOfOrLeafCondition = class
    interface IAlertRuleAnyOfOrLeafCondition
    interface IJsonSerializable
    interface IAlertRuleLeafCondition
    interface IValidates
Public Class AlertRuleAnyOfOrLeafCondition
Implements IAlertRuleAnyOfOrLeafCondition, IValidates
Inheritance
AlertRuleAnyOfOrLeafCondition
Attributes
Implements

Constructors

AlertRuleAnyOfOrLeafCondition()

Creates an new AlertRuleAnyOfOrLeafCondition instance.

Properties

AnyOf

An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met.

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

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of AlertRuleAnyOfOrLeafCondition.

FromJson(JsonNode)

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

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of AlertRuleAnyOfOrLeafCondition into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to