C# Class Graphite.MetricsPipeExtensions

Extensions for Metrics pipe.
Show file Open project: peschuster/graphite-client

Public Methods

Method Description
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.

Method Details

Count() public static method

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.
return void

Gauge() public static method

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.
return void

Raw() public static method

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.
return void

Set() public static method

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.
return void

Step() public static method

Times a step with specified key.
public static Step ( this profiler, string key ) : IDisposable
profiler this The profiler.
key string The key.
return IDisposable

Step() public static method

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.
return IDisposable

Timing() public static method

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.
return void