예제 #1
0
 /// <summary>
 /// Initializes a new instance of the TriggerCondition class.
 /// </summary>
 /// <param name="thresholdOperator">Evaluation operation for rule -
 /// 'GreaterThan' or 'LessThan. Possible values include: 'GreaterThan',
 /// 'LessThan', 'Equal'</param>
 /// <param name="threshold">Result or count threshold based on which
 /// rule should be triggered.</param>
 /// <param name="metricTrigger">Trigger condition for metric query
 /// rule</param>
 public TriggerCondition(ConditionalOperator thresholdOperator, double threshold, LogMetricTrigger metricTrigger = default(LogMetricTrigger))
 {
     ThresholdOperator = thresholdOperator;
     Threshold         = threshold;
     MetricTrigger     = metricTrigger;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the LogMetricTrigger class.
 /// </summary>
 /// <param name="thresholdOperator">Evaluation operation for Metric
 /// -'GreaterThan' or 'LessThan' or 'Equal'. Possible values include:
 /// 'GreaterThan', 'LessThan', 'Equal'</param>
 /// <param name="threshold">The threshold of the metric
 /// trigger.</param>
 /// <param name="metricTriggerType">Metric Trigger Type - 'Consecutive'
 /// or 'Total'. Possible values include: 'Consecutive', 'Total'</param>
 /// <param name="metricColumn">Evaluation of metric on a particular
 /// column</param>
 public LogMetricTrigger(ConditionalOperator thresholdOperator = default(ConditionalOperator), double?threshold = default(double?), MetricTriggerType metricTriggerType = default(MetricTriggerType), string metricColumn = default(string))
 {
     ThresholdOperator = thresholdOperator;
     Threshold         = threshold;
     MetricTriggerType = metricTriggerType;
     MetricColumn      = metricColumn;
     CustomInit();
 }