@Test public void serializeGaugeWithoutHost() throws JsonProcessingException { DGauge g = new DGauge(new Gauge<Number>() { @Override public Number getValue() { return 1; } }, "testCounter", null, tags); assertEquals( "{\"metric\":\"testCounter\",\"type\":\"gauge\",\"tags\":[\"tag1\",\"tag2\"],\"points\":[[123,1]]}", DatadogHttpClient.serialize(g)); }
public static String serialize(Object obj) throws JsonProcessingException { return MAPPER.writeValueAsString(obj); }
DatadogHttpClient { public static String serialize(Object obj) throws JsonProcessingException { return MAPPER.writeValueAsString(obj); } }
DatadogHttpClient { public static String serialize(Object obj) throws JsonProcessingException { return MAPPER.writeValueAsString(obj); } DatadogHttpClient(String dgApiKey, String dgProxyHost, int dgProxyPort); }
DatadogHttpClient { public static String serialize(Object obj) throws JsonProcessingException { return MAPPER.writeValueAsString(obj); } DatadogHttpClient(String dgApiKey, String dgProxyHost, int dgProxyPort); void send(DatadogHttpReporter.DatadogHttpRequest request); static String serialize(Object obj); void close(); }
DatadogHttpClient { public static String serialize(Object obj) throws JsonProcessingException { return MAPPER.writeValueAsString(obj); } DatadogHttpClient(String dgApiKey, String dgProxyHost, int dgProxyPort); void send(DatadogHttpReporter.DatadogHttpRequest request); static String serialize(Object obj); void close();  }