Microsoft.Azure.Commands.Insights.Alerts.AddAzureRmLogAlertRuleCommand.CreateRuleCondition C# (CSharp) Method

CreateRuleCondition() private method

private CreateRuleCondition ( ) : Microsoft.Azure.Management.Insights.Models.RuleCondition
return Microsoft.Azure.Management.Insights.Models.RuleCondition
        private RuleCondition CreateRuleCondition()
        {
            WriteVerboseWithTimestamp(string.Format("CreateRuleCondition: Creating event rule condition (event-based rule)"));
            return new ManagementEventRuleCondition()
            {
                DataSource = new RuleManagementEventDataSource()
                {
                    Level = this.Level,
                    OperationName = this.OperationName,
                    ResourceGroupName = this.TargetResourceGroup,
                    ResourceProviderName = this.TargetResourceProvider,
                    ResourceUri = this.TargetResourceId,
                    Status = this.Status,
                    SubStatus = this.SubStatus,
                },
            };
        }