C# Class Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.PerformanceCollectorModule

Telemetry module for collecting performance counters.
Inheritance: ITelemetryModule, IDisposable
ファイルを表示 Open project: Microsoft/ApplicationInsights-dotnet-server Class Usage Examples

Private Properties

Property Type Description
CreateTelemetry Microsoft.ApplicationInsights.DataContracts.MetricTelemetry
Dispose void
EnsurePerformanceCountersRegistered void
IsRunningUnderIisExpress bool
PerformanceCollectorModule System
ProcessCustomCounters void
TimerCallback void

Public Methods

Method Description
Dispose ( ) : void

Disposes resources allocated by this type.

Initialize ( Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration configuration ) : void

Initialize method is called after all configuration properties have been loaded from the configuration.

PerformanceCollectorModule ( ) : System

Initializes a new instance of the PerformanceCollectorModule class.

Private Methods

Method Description
CreateTelemetry ( PerformanceCounterData pc, double value ) : Microsoft.ApplicationInsights.DataContracts.MetricTelemetry

Creates a metric telemetry associated with the PerformanceCounterData, with the respective float value.

Dispose ( bool disposing ) : void

Dispose implementation.

EnsurePerformanceCountersRegistered ( ) : void

Binds processes to performance counters instance names and adds performance counters to the collection.

This operation is expensive, but must be done periodically to account for IIS changing instance names of the counters it reports Web Sites on as worker processes start and terminate.

IsRunningUnderIisExpress ( ) : bool
PerformanceCollectorModule ( IPerformanceCollector collectorMock ) : System

Initializes a new instance of the PerformanceCollectorModule class.

Unit tests only.

ProcessCustomCounters ( ) : void
TimerCallback ( object state ) : void

Method Details

Dispose() public method

Disposes resources allocated by this type.
public Dispose ( ) : void
return void

Initialize() public method

Initialize method is called after all configuration properties have been loaded from the configuration.
public Initialize ( Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration configuration ) : void
configuration Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration
return void

PerformanceCollectorModule() public method

Initializes a new instance of the PerformanceCollectorModule class.
public PerformanceCollectorModule ( ) : System
return System