C# Класс Graphite.MetricsPipeExtensions

Extensions for Metrics pipe.
Показать файл Открыть проект

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

Метод Описание
Count ( this profiler, string key, long value = 1, float sampling = 1 ) : void

Increases a counter for specified key.

Gauge ( this profiler, string key, long value ) : void

Reports a gauge value for specified key.

Raw ( this profiler, string key, long value ) : void

Reports a raw value directly to graphite.

Set ( this profiler, string key, long value ) : void

Reports a set value for specified key.

Step ( this profiler, string key ) : IDisposable

Times a step with specified key.

Step ( this profiler, string key, Action reporter ) : IDisposable

Times a step with specified key.

Timing ( this profiler, string key, long value ) : void

Submits a timing directly.

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

Count() публичный статический Метод

Increases a counter for specified key.
public static Count ( this profiler, string key, long value = 1, float sampling = 1 ) : void
profiler this The profiler.
key string The key.
value long The value.
sampling float Sample by provided value.
Результат void

Gauge() публичный статический Метод

Reports a gauge value for specified key.
public static Gauge ( this profiler, string key, long value ) : void
profiler this The profiler.
key string The key.
value long The value.
Результат void

Raw() публичный статический Метод

Reports a raw value directly to graphite.
public static Raw ( this profiler, string key, long value ) : void
profiler this The profiler.
key string The metric key.
value long The value.
Результат void

Set() публичный статический Метод

Reports a set value for specified key.
public static Set ( this profiler, string key, long value ) : void
profiler this The profiler.
key string The key.
value long The value.
Результат void

Step() публичный статический Метод

Times a step with specified key.
public static Step ( this profiler, string key ) : IDisposable
profiler this The profiler.
key string The key.
Результат IDisposable

Step() публичный статический Метод

Times a step with specified key.
public static Step ( this profiler, string key, Action reporter ) : IDisposable
profiler this The profiler.
key string The key.
reporter Action Action to report result.
Результат IDisposable

Timing() публичный статический Метод

Submits a timing directly.
public static Timing ( this profiler, string key, long value ) : void
profiler this The profiler.
key string The key.
value long The timing value.
Результат void