C# Класс TabMon.Sampler.CounterSampler

Concrete class that handles sampling all counters in a collection and mapping the results to the desired schema.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CounterSampler ( ICollection hostsToSample, string tableName ) : System
SampleAll ( ) : DataTable

Polls all known counters and maps the results to the dynamic data model.

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

Метод Описание
BuildColumnMetadata ( string columnName, string columnType, bool isNullable, int maxLength = -1 ) : DataColumn

Builds a DataColumn for the given parameters.

GenerateSchema ( ICollection counters ) : DataTable

Generates a dynamic schema that can support all known counters.

MapToSchema ( ICounterSample sample, DataTable tableSchema, System.DateTime pollTimestamp ) : DataRow

Maps a counter's metadata and sampled value to the table schema.

SampleCounters ( ICollection counters, System.DateTime pollTimestamp ) : DataTable

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

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

public CounterSampler ( ICollection hostsToSample, string tableName ) : System
hostsToSample ICollection
tableName string
Результат System

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

Polls all known counters and maps the results to the dynamic data model.
public SampleAll ( ) : DataTable
Результат System.Data.DataTable