@Test public void requestingJsonCallsThroughToGraphiteCorrectly() throws Exception { String response = "[{\"target\": \"service.error.1MinuteRate\", \"datapoints\": [[0.06, 1337453460]]}]"; clientDriver.addExpectation( onRequestTo("/render/") .withParam("from", "-11minutes") .withParam("until", "-1minutes") .withParam("uniq", Pattern.compile("[0-9]+")) .withParam("format", "json") .withParam("target", "service.error.1MinuteRate"), giveResponse(response, "application/json")); JsonNode node = graphiteHttpClient.getTargetJson("service.error.1MinuteRate"); assertThat(node, is(MAPPER.readTree(response))); }
@Deprecated public JsonNode getTargetJson(String target) throws Exception { return getTargetJson(target, null, null); }
GraphiteHttpClient { @Deprecated public JsonNode getTargetJson(String target) throws Exception { return getTargetJson(target, null, null); } }
GraphiteHttpClient { @Deprecated public JsonNode getTargetJson(String target) throws Exception { return getTargetJson(target, null, null); } @Inject  GraphiteHttpClient(SeyrenConfig seyrenConfig); }
GraphiteHttpClient { @Deprecated public JsonNode getTargetJson(String target) throws Exception { return getTargetJson(target, null, null); } @Inject  GraphiteHttpClient(SeyrenConfig seyrenConfig); @Deprecated JsonNode getTargetJson(String target); JsonNode getTargetJson(String target, String from, String until); byte[] getChart(String target, int width, int height, String from, String to, LegendState legendState, AxesState axesState); byte[] getChart(String target, int width, int height, String from, String to, LegendState legendState, AxesState axesState,
            BigDecimal warnThreshold, BigDecimal errorThreshold); }
GraphiteHttpClient { @Deprecated public JsonNode getTargetJson(String target) throws Exception { return getTargetJson(target, null, null); } @Inject  GraphiteHttpClient(SeyrenConfig seyrenConfig); @Deprecated JsonNode getTargetJson(String target); JsonNode getTargetJson(String target, String from, String until); byte[] getChart(String target, int width, int height, String from, String to, LegendState legendState, AxesState axesState); byte[] getChart(String target, int width, int height, String from, String to, LegendState legendState, AxesState axesState,
            BigDecimal warnThreshold, BigDecimal errorThreshold);  }