public void Sends_counter_text() { using (var client = new StatsdTCPClient(ServerHostname.ToString(), _serverPort)) { client.Send("statsd-client.tcp-smoke-test:6|c"); } }
public void Sends_a_counter() { try { var client = new StatsdTCPClient(_serverName, _serverPort); client.Send("smoketest value=1i"); // InfluxDB format } catch (SocketException ex) { Assert.Fail("Socket Exception, have you setup your Statsd name and port? It's currently '{0}:{1}'. Error: {2}", _serverName, _serverPort, ex.Message); } }