private ThresholdRuleCondition CreateThresholdRuleCondition() { return new ThresholdRuleCondition() { DataSource = new RuleMetricDataSource() { MetricName = this.MetricName, ResourceUri = this.TargetResourceId, }, OperatorProperty = this.Operator, Threshold = this.Threshold, TimeAggregation = this.TimeAggregationOperator, WindowSize = this.WindowSize, }; }