Microsoft.Azure.Commands.OperationalInsights.NewAzureOperationalInsightsWindowsPerformanceCounterDataSourceCommand.ExecuteCmdlet C# (CSharp) Method

ExecuteCmdlet() public method

public ExecuteCmdlet ( ) : void
return void
        public override void ExecuteCmdlet()
        {
            var dsProperties = new PSWindowsPerformanceCounterDataSourceProperties
            {
                ObjectName = this.ObjectName,
                InstanceName = this.InstanceName,
                IntervalSeconds = this.IntervalSeconds,
                CounterName = this.CounterName,
                CollectorType = CollectorType.Default
            };

            if (UseLegacyCollector.IsPresent)
            {
                dsProperties.CollectorType = CollectorType.Legacy;
            }

            CreatePSDataSourceWithProperties(dsProperties);
        }
    }
NewAzureOperationalInsightsWindowsPerformanceCounterDataSourceCommand