Microsoft.Azure.Commands.Insights.Alerts.AddAzureRmMetricAlertRuleCommand.CreateThresholdRuleCondition C# (CSharp) 메소드

CreateThresholdRuleCondition() 개인적인 메소드

private CreateThresholdRuleCondition ( ) : Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition
리턴 Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition
        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,
            };
        }