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

Method parseQueryTSUIDTypeWRateAndDS

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

Source from the content-addressed store, hash-verified

447 }
448
449 @Test
450 public void parseQueryTSUIDTypeWRateAndDS() throws Exception {
451 HttpQuery query = NettyMocks.getQuery(tsdb,
452 "/api/query?start=1h-ago&tsuid=sum:1m-sum:rate:010101");
453 TSQuery tsq = (TSQuery) parseQuery.invoke(rpc, tsdb, query, expressions);
454 assertNotNull(tsq);
455 assertEquals("1h-ago", tsq.getStart());
456 assertNotNull(tsq.getQueries());
457 TSSubQuery sub = tsq.getQueries().get(0);
458 assertNotNull(sub);
459 assertEquals("sum", sub.getAggregator());
460 assertEquals(1, sub.getTsuids().size());
461 assertEquals("010101", sub.getTsuids().get(0));
462 assertEquals("1m-sum", sub.getDownsample());
463 assertTrue(sub.getRate());
464 }
465
466 @Test
467 public void parseQueryWPadding() throws Exception {

Callers

nothing calls this directly

Calls 9

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

Tested by

no test coverage detected