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.
파일 보기 프로젝트 열기: tableau/TabMon

공개 메소드들

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