Class TriggerCondition
The condition that results in the Log Search rule.
Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.Management.Monitor.dll
Syntax
public class TriggerCondition
Constructors
TriggerCondition()
Initializes a new instance of the TriggerCondition class.
Declaration
public TriggerCondition ();
TriggerCondition(String, Double, LogMetricTrigger)
Initializes a new instance of the TriggerCondition class.
Declaration
public TriggerCondition (string thresholdOperator, double threshold, Microsoft.Azure.Management.Monitor.Models.LogMetricTrigger metricTrigger = null);
Parameters
|
String
thresholdOperator
Evaluation operation for rule - 'GreaterThan' or 'LessThan. Possible values include: 'GreaterThan', 'LessThan', 'Equal' |
|
Double
threshold
Result or count threshold based on which rule should be triggered. |
|
LogMetricTrigger
metricTrigger
Trigger condition for metric query rule |
Properties
MetricTrigger
Gets or sets trigger condition for metric query rule
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="metricTrigger")]
public Microsoft.Azure.Management.Monitor.Models.LogMetricTrigger MetricTrigger { get; set; }
Property Value
|
LogMetricTrigger
|
Threshold
Gets or sets result or count threshold based on which rule should be triggered.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="threshold")]
public double Threshold { get; set; }
Property Value
|
Double
|
ThresholdOperator
Gets or sets evaluation operation for rule - 'GreaterThan' or 'LessThan. Possible values include: 'GreaterThan', 'LessThan', 'Equal'
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="thresholdOperator")]
public string ThresholdOperator { get; set; }
Property Value
|
String
|
Methods
Validate()
Validate the object.
Declaration
public virtual void Validate ();
Exceptions
|
ValidationException
Thrown if validation fails |