Microsoft.Azure.Commands.Insights.Alerts.AddAzureRmLogAlertRuleCommand.CreateRuleCondition C# (CSharp) Méthode

CreateRuleCondition() private méthode

private CreateRuleCondition ( ) : Microsoft.Azure.Management.Insights.Models.RuleCondition
Résultat 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,
                },
            };
        }