你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
AlertRuleLeafCondition Class
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'.
[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() |