C# Class TabMon.Sampler.CounterSampler

Concrete class that handles sampling all counters in a collection and mapping the results to the desired schema.
Afficher le fichier Open project: tableau/TabMon Class Usage Examples

Méthodes publiques

Méthode Description
CounterSampler ( ICollection hostsToSample, string tableName ) : System
SampleAll ( ) : DataTable

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

Private Methods

Méthode Description
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

Method Details

CounterSampler() public méthode

public CounterSampler ( ICollection hostsToSample, string tableName ) : System
hostsToSample ICollection
tableName string
Résultat System

SampleAll() public méthode

Polls all known counters and maps the results to the dynamic data model.
public SampleAll ( ) : DataTable
Résultat System.Data.DataTable