C# 클래스 Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.PerformanceCollectorModule

Telemetry module for collecting performance counters.
상속: ITelemetryModule, IDisposable
파일 보기 프로젝트 열기: Microsoft/ApplicationInsights-dotnet-server 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CreateTelemetry Microsoft.ApplicationInsights.DataContracts.MetricTelemetry
Dispose void
EnsurePerformanceCountersRegistered void
IsRunningUnderIisExpress bool
PerformanceCollectorModule System
ProcessCustomCounters void
TimerCallback void

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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

메소드 상세

Dispose() 공개 메소드

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

Initialize() 공개 메소드

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
리턴 void

PerformanceCollectorModule() 공개 메소드

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