C# Класс Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.PerformanceCollectorModule

Telemetry module for collecting performance counters.
Наследование: ITelemetryModule, IDisposable
Показать файл Открыть проект Примеры использования класса

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