Merge pull request #74 from barthq/patch-1

Added Support for Gauges to C# Example Client
This commit is contained in:
Daniel Schauenberg 2012-04-17 06:23:49 -07:00
Родитель 79a40464da 34fa07c175
Коммит 980b582539
1 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -14,6 +14,16 @@ namespace Statsd
{
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)
{