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

Method parseQueryTSUIDTypeWDS

test/tsd/TestQueryRpc.java:433–447  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

431 }
432
433 @Test
434 public void parseQueryTSUIDTypeWDS() throws Exception {
435 HttpQuery query = NettyMocks.getQuery(tsdb,
436 "/api/query?start=1h-ago&tsuid=sum:1m-sum:010101");
437 TSQuery tsq = (TSQuery) parseQuery.invoke(rpc, tsdb, query, expressions);
438 assertNotNull(tsq);
439 assertEquals("1h-ago", tsq.getStart());
440 assertNotNull(tsq.getQueries());
441 TSSubQuery sub = tsq.getQueries().get(0);
442 assertNotNull(sub);
443 assertEquals("sum", sub.getAggregator());
444 assertEquals(1, sub.getTsuids().size());
445 assertEquals("010101", sub.getTsuids().get(0));
446 assertEquals("1m-sum", sub.getDownsample());
447 }
448
449 @Test
450 public void parseQueryTSUIDTypeWRateAndDS() throws Exception {

Callers

nothing calls this directly

Calls 8

getQueryMethod · 0.95
getStartMethod · 0.95
getQueriesMethod · 0.95
getAggregatorMethod · 0.95
getTsuidsMethod · 0.95
getDownsampleMethod · 0.95
sizeMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected