FetchRequest request = RrdManager.getRrdDB().createFetchRequest(
ConsolFun.AVERAGE, start, stop,
getResolutionFor( stop - start ) );
String entity = JsonRenderers.DEFAULT.render( new RrdDataRepresentation(
request.fetchData() ) );
return addHeaders(
Response.ok( entity, JsonRenderers.DEFAULT.getMediaType() ) ).build();
}