C# Класс Example1.TextLogEmitter

A metrics emitter that writes metrics to a specified text (csv) file.
Наследование: IMetricsEmitter
Показать файл Открыть проект

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

Метод Описание
Emit ( string>.IDictionary properties, Metric metrics ) : void

Emit an array of metrics entries.

TextLogEmitter ( string logFilePath ) : System

Create the metrics emitter, specifying the path of the file to write to. If this file doesn't exist it will be created, otherwise new entries will just be appended to the end of the file.

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

Метод Описание
MetricToString ( string>.IDictionary properties, Metric metric ) : string

Get a single line string to write out to our file for a given metric.

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

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

Emit an array of metrics entries.
public Emit ( string>.IDictionary properties, Metric metrics ) : void
properties string>.IDictionary
metrics RSG.Metric
Результат void

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

Create the metrics emitter, specifying the path of the file to write to. If this file doesn't exist it will be created, otherwise new entries will just be appended to the end of the file.
public TextLogEmitter ( string logFilePath ) : System
logFilePath string
Результат System