Ejemplo n.º 1
0
 ///GENMHASH:99B5E6539BC68E39ACAB01EEC7575486:175426222378DAACFA1C214E2C05A68B
 public MetricAlertConditionImpl WithCondition(MetricAlertRuleCondition condition, MetricAlertRuleTimeAggregation timeAggregation, double threshold)
 {
     this.Inner.OperatorProperty = condition.ToString();
     this.Inner.TimeAggregation  = timeAggregation.ToString();
     this.Inner.Threshold        = threshold;
     return(this);
 }
Ejemplo n.º 2
0
 ///GENMHASH:8244B442CD575E882C2B85C6AAF1D87B:562AEA9CCCAACFD5DB65DCDEE6471E19
 public MetricAlertRuleCondition Condition()
 {
     return(MetricAlertRuleCondition.Parse(this.Inner.OperatorProperty));
 }
 /// <summary>
 /// Sets the condition to monitor for the current metric alert.
 /// </summary>
 /// <param name="condition">The criteria operator. Possible values include: 'Equals', 'NotEquals', 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual'.</param>
 /// <param name="timeAggregation">The criteria time aggregation types. Possible values include: 'Average', 'Minimum', 'Maximum', 'Total'.</param>
 /// <param name="threshold">The criteria threshold value that activates the alert.</param>
 /// <return>The next stage of the metric alert condition update.</return>
 MetricAlertCondition.Update.IUpdateStages MetricAlertCondition.Update.IUpdateStages.WithCondition(MetricAlertRuleTimeAggregation timeAggregation, MetricAlertRuleCondition condition, double threshold)
 {
     return(this.WithCondition(timeAggregation, condition, threshold));
 }
 /// <summary>
 /// Sets the condition to monitor for the current metric alert.
 /// </summary>
 /// <param name="condition">The criteria operator. Possible values include: 'Equals', 'NotEquals', 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual'.</param>
 /// <param name="timeAggregation">The criteria time aggregation types. Possible values include: 'Average', 'Minimum', 'Maximum', 'Total'.</param>
 /// <param name="threshold">The criteria threshold value that activates the alert.</param>
 /// <return>The next stage of metric alert condition definition.</return>
 MetricAlertCondition.Definition.IWithConditionAttach <MetricAlert.Definition.IWithCreate> MetricAlertCondition.Definition.IWithCriteriaOperator <MetricAlert.Definition.IWithCreate> .WithCondition(MetricAlertRuleTimeAggregation timeAggregation, MetricAlertRuleCondition condition, double threshold)
 {
     return(this.WithCondition(timeAggregation, condition, threshold));
 }
Ejemplo n.º 5
0
 ///GENMHASH:8244B442CD575E882C2B85C6AAF1D87B:562AEA9CCCAACFD5DB65DCDEE6471E19
 public MetricAlertRuleCondition Condition()
 {
     return(MetricAlertRuleCondition.Parse(System.Convert.ToString(this.Inner.OperatorProperty)));
 }