C# Класс RSG.Metrics

Class for collecting and emitting metrics messages through an IMetricsEmitter.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
eventTypeName string
floatTypeName string
incTypeName string
intTypeName string
stringTypeName string

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

Метод Описание
Entry ( string name, float data ) : void

Add a metrics entry that is a float.

Entry ( string name, int data ) : void

Add a metrics entry that is an integer.

Entry ( string name, string data ) : void

Add a metrics entry string.

Event ( string name ) : void

Sends an event metric to the emitter.

Flush ( ) : void

Flushes all queued metrics.

Inc ( string name ) : void

Sends an increment metric to the emitter.

Metrics ( IMetricsEmitter emitter, int batchSize = 1 ) : System
RemoveProperty ( string name ) : void

Finds the specified property and stops including it in subsequent messages.

SetProperty ( string name, string property ) : void

Set a property for all subsequent messages.

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

Метод Описание
QueueMetric ( Metric metric ) : void

Adds a metric to the queue.

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

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

Add a metrics entry that is a float.
public Entry ( string name, float data ) : void
name string
data float
Результат void

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

Add a metrics entry that is an integer.
public Entry ( string name, int data ) : void
name string
data int
Результат void

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

Add a metrics entry string.
public Entry ( string name, string data ) : void
name string
data string
Результат void

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

Sends an event metric to the emitter.
public Event ( string name ) : void
name string
Результат void

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

Flushes all queued metrics.
public Flush ( ) : void
Результат void

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

Sends an increment metric to the emitter.
public Inc ( string name ) : void
name string
Результат void

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

public Metrics ( IMetricsEmitter emitter, int batchSize = 1 ) : System
emitter IMetricsEmitter
batchSize int
Результат System

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

Finds the specified property and stops including it in subsequent messages.
public RemoveProperty ( string name ) : void
name string
Результат void

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

Set a property for all subsequent messages.
public SetProperty ( string name, string property ) : void
name string
property string
Результат void

Описание свойств

eventTypeName публичное статическое свойство

public static string eventTypeName
Результат string

floatTypeName публичное статическое свойство

public static string floatTypeName
Результат string

incTypeName публичное статическое свойство

public static string incTypeName
Результат string

intTypeName публичное статическое свойство

public static string intTypeName
Результат string

stringTypeName публичное статическое свойство

public static string stringTypeName
Результат string