C# Класс TabMon.Counters.Perfmon.PerfmonCounterLoader

A factory-like class that loads PerfmonCounters matching the given set of search criteria. This enables the user to provide a single "filter" that can potentially yield multiple concrete counters.
Показать файл Открыть проект

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

Метод Описание
LoadInstancesForCounter ( TabMon.Helpers.Host host, CounterLifecycleType lifecycleType, string categoryName, string counterName, string unitOfMeasurement, ISet instanceFilters ) : IList

Loads all Perfmon counters on the target host matching the given parameters.

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

Метод Описание
ExistsCategory ( string categoryName, string machineName ) : bool

Indicates whether a performance counter category exists on a target machine.

ExistsCounter ( string counterName, string categoryName, string machineName ) : bool

Indicates whether a performance counter exists on a target machine.

IsInstanceRequested ( string instanceName, ICollection instanceFilters ) : bool

Helper method that determines whether a given instance name matches a list of filter strings of instances that should be loaded. We treat the absence of filter strings as a wildcard match.

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

LoadInstancesForCounter() публичный статический Метод

Loads all Perfmon counters on the target host matching the given parameters.
public static LoadInstancesForCounter ( TabMon.Helpers.Host host, CounterLifecycleType lifecycleType, string categoryName, string counterName, string unitOfMeasurement, ISet instanceFilters ) : IList
host TabMon.Helpers.Host The host to check counters on.
lifecycleType CounterLifecycleType Indicates whether the counters should be loaded as persistent or ephemeral counters.
categoryName string The counter category.
counterName string The name of the counter.
unitOfMeasurement string The unit of measurement that this counter reports in. This is a piece of metadata we add in.
instanceFilters ISet A collection of search terms to use to filter out instances that do not match.
Результат IList