C# Класс Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.Implementation.WebAppPerformanceCollector.WebAppPerformanceCollector

Наследование: IPerformanceCollector
Показать файл Открыть проект

Открытые методы

Метод Описание
Collect ( Exception>.Action onReadingFailure = null ) : double>>.IEnumerable

Performs collection for all registered counters.

LoadDependentInstances ( ) : void

Loads instances that are used in performance counter computation.

RefreshCounters ( ) : void

Refreshes counters.

RefreshPerformanceCounter ( PerformanceCounterData pcd ) : void

Rebinds performance counters to Windows resources.

RegisterCounter ( string perfCounter, string reportAs, bool isCustomCounter, string &error, bool blockCounterWithInstancePlaceHolder ) : void

Registers a counter using the counter name and reportAs value to the total list of counters.

Приватные методы

Метод Описание
CollectCounter ( string coutnerOriginalString, ICounterValue counter ) : double

Collects a value for a single counter.

GetCounterReportAsName ( string counterName, string reportAs ) : string

Gets metric alias to be the value given by the user.

RegisterPerformanceCounter ( string originalString, string reportAs, string categoryName, string counterName, string instanceName, bool usesInstanceNamePlaceholder, bool isCustomCounter ) : void

Register a performance counter for collection.

Описание методов

Collect() публичный Метод

Performs collection for all registered counters.
public Collect ( Exception>.Action onReadingFailure = null ) : double>>.IEnumerable
onReadingFailure Exception>.Action Invoked when an individual counter fails to be read.
Результат double>>.IEnumerable

LoadDependentInstances() публичный Метод

Loads instances that are used in performance counter computation.
public LoadDependentInstances ( ) : void
Результат void

RefreshCounters() публичный Метод

Refreshes counters.
public RefreshCounters ( ) : void
Результат void

RefreshPerformanceCounter() публичный Метод

Rebinds performance counters to Windows resources.
public RefreshPerformanceCounter ( PerformanceCounterData pcd ) : void
pcd PerformanceCounterData
Результат void

RegisterCounter() публичный Метод

Registers a counter using the counter name and reportAs value to the total list of counters.
public RegisterCounter ( string perfCounter, string reportAs, bool isCustomCounter, string &error, bool blockCounterWithInstancePlaceHolder ) : void
perfCounter string Name of the performance counter.
reportAs string Report as name for the performance counter.
isCustomCounter bool Boolean to check if the performance counter is custom defined.
error string Captures the error logged.
blockCounterWithInstancePlaceHolder bool Boolean that controls the registry of the counter based on the availability of instance place holder.
Результат void