C# Class Graphite.MetricsPipeExtensions

Extensions for Metrics pipe.
Afficher le fichier Open project: peschuster/graphite-client

Méthodes publiques

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

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.
Résultat void

Gauge() public static méthode

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.
Résultat void

Raw() public static méthode

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.
Résultat void

Set() public static méthode

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.
Résultat void

Step() public static méthode

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

Step() public static méthode

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.
Résultat IDisposable

Timing() public static méthode

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.
Résultat void