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

Method parseQueryMTypeWRateAndDS

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

Source from the content-addressed store, hash-verified

166 }
167
168 @Test
169 public void parseQueryMTypeWRateAndDS() throws Exception {
170 HttpQuery query = NettyMocks.getQuery(tsdb,
171 "/api/query?start=1h-ago&m=sum:1h-avg:rate:sys.cpu.0");
172 TSQuery tsq = (TSQuery) parseQuery.invoke(rpc, tsdb, query, expressions);
173 TSSubQuery sub = tsq.getQueries().get(0);
174 assertTrue(sub.getRate());
175 assertEquals("1h-avg", sub.getDownsample());
176 }
177
178 @Test
179 public void parseQueryMTypeWTag() throws Exception {

Callers

nothing calls this directly

Calls 5

getQueryMethod · 0.95
getQueriesMethod · 0.95
getRateMethod · 0.95
getDownsampleMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected