C# Class NStatsD.StatBucket

Datei anzeigen Open project: neutmute/NStatsD.Client

Public Methods

Method Description
BeginTimer ( ) : StatBucket

Return this instance to support fluent style syntax

Decrement ( double sampleRate = 1 ) : void
EndTimer ( double sampleRate = 1 ) : System.TimeSpan
Gauge ( int value, double sampleRate = 1 ) : void
Increment ( double sampleRate = 1 ) : void
StatBucket ( StatsDConfigurationSection config, string name ) : System
Timing ( System.TimeSpan timeSpan, double sampleRate = 1 ) : void
Timing ( long time, double sampleRate = 1 ) : void
UpdateStats ( int delta = 1, double sampleRate = 1 ) : void

Private Methods

Method Description
Log ( TraceEventType traceEventType, string messageFormat ) : void
LogVerbose ( string messageFormat ) : void
LogWarn ( string messageFormat ) : void
SendData ( string>.Dictionary data, double sampleRate = 1 ) : void
SendUdp ( string>.Dictionary sampledData ) : void
UdpClientCallback ( IAsyncResult result ) : void

Method Details

BeginTimer() public method

Return this instance to support fluent style syntax
public BeginTimer ( ) : StatBucket
return StatBucket

Decrement() public method

public Decrement ( double sampleRate = 1 ) : void
sampleRate double
return void

EndTimer() public method

public EndTimer ( double sampleRate = 1 ) : System.TimeSpan
sampleRate double
return System.TimeSpan

Gauge() public method

public Gauge ( int value, double sampleRate = 1 ) : void
value int
sampleRate double
return void

Increment() public method

public Increment ( double sampleRate = 1 ) : void
sampleRate double
return void

StatBucket() public method

public StatBucket ( StatsDConfigurationSection config, string name ) : System
config StatsDConfigurationSection
name string
return System

Timing() public method

public Timing ( System.TimeSpan timeSpan, double sampleRate = 1 ) : void
timeSpan System.TimeSpan
sampleRate double
return void

Timing() public method

public Timing ( long time, double sampleRate = 1 ) : void
time long
sampleRate double
return void

UpdateStats() public method

public UpdateStats ( int delta = 1, double sampleRate = 1 ) : void
delta int
sampleRate double
return void