MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / getStat

Method getStat

test/stats/TestQueryStats.java:284–293  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

282 }
283
284 @Test
285 public void getStat() throws Exception {
286 final TSQuery query = new TSQuery();
287 query.setStart("1h-ago");
288 final QueryStats stats = new QueryStats(remote, query, headers);
289 stats.addStat(QueryStat.AGGREGATED_SIZE, 42);
290 stats.markSerializationSuccessful();
291 assertEquals(42, stats.getStat(QueryStat.AGGREGATED_SIZE));
292 assertEquals(-1, stats.getStat(QueryStat.BYTES_FROM_STORAGE));
293 }
294
295 @Test
296 public void getStatTime() throws Exception {

Callers

nothing calls this directly

Calls 4

setStartMethod · 0.95
addStatMethod · 0.95
getStatMethod · 0.95

Tested by

no test coverage detected