Skip to content

Commit

Permalink
Merge pull request statsd#74 from barthq/patch-1
Browse files Browse the repository at this point in the history
Added Support for Gauges to C# Example Client
  • Loading branch information
mrtazz committed Apr 17, 2012
2 parents 79a4046 + 34fa07c commit 980b582
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/csharp_example.cs
Expand Up @@ -14,6 +14,16 @@ public StatsdPipe(string host, int port)
{
udpClient = new UdpClient(host, port);
}

public bool Gauge(string key, int value)
{
return Gauge(key, value, 1.0);
}

public bool Gauge(string key, int value, double sampleRate)
{
return Send(sampleRate, String.Format("{0}:{1:d}|g", key, value));
}

public bool Timing(string key, int value)
{
Expand Down

0 comments on commit 980b582

Please sign in to comment.