ArmMonitorModelFactory.AlertRuleLeafCondition Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 static Azure.ResourceManager.Monitor.Models.AlertRuleLeafCondition AlertRuleLeafCondition(string field = default, string equalsValue = default, System.Collections.Generic.IEnumerable<string> containsAny = default);
static member AlertRuleLeafCondition : string * string * seq<string> -> Azure.ResourceManager.Monitor.Models.AlertRuleLeafCondition
Public Shared Function AlertRuleLeafCondition (Optional field As String = Nothing, Optional equalsValue As String = Nothing, Optional containsAny As IEnumerable(Of String) = Nothing) As AlertRuleLeafCondition
Parameters
- field
- String
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'.
- equalsValue
- String
The value of the event's field will be compared to this value (case-insensitive) to determine if the condition is met.
- containsAny
- IEnumerable<String>
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.
Returns
A new AlertRuleLeafCondition instance for mocking.