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

Method parseQueryMTypeWExplicitAndRate

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

Source from the content-addressed store, hash-verified

325 }
326
327 @Test
328 public void parseQueryMTypeWExplicitAndRate() throws Exception {
329 HttpQuery query = NettyMocks.getQuery(tsdb,
330 "/api/query?start=1h-ago&m=sum:explicit_tags:rate:sys.cpu.0{host=web01}");
331 TSQuery tsq = (TSQuery) parseQuery.invoke(rpc, tsdb, query, expressions);
332 TSSubQuery sub = tsq.getQueries().get(0);
333 assertNotNull(sub.getTags());
334 assertEquals("literal_or(web01)", sub.getTags().get("host"));
335 assertTrue(sub.getRate());
336 assertTrue(sub.getExplicitTags());
337 }
338
339 @Test
340 public void parseQueryMTypeWExplicitAndRateAndDS() throws Exception {

Callers

nothing calls this directly

Calls 6

getQueryMethod · 0.95
getQueriesMethod · 0.95
getTagsMethod · 0.95
getRateMethod · 0.95
getExplicitTagsMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected