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

Method parseQueryMTypeWRate

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

Source from the content-addressed store, hash-verified

139 }
140
141 @Test
142 public void parseQueryMTypeWRate() throws Exception {
143 HttpQuery query = NettyMocks.getQuery(tsdb,
144 "/api/query?start=1h-ago&m=sum:rate:sys.cpu.0");
145 TSQuery tsq = (TSQuery) parseQuery.invoke(rpc, tsdb, query, expressions);
146 TSSubQuery sub = tsq.getQueries().get(0);
147 assertTrue(sub.getRate());
148 }
149
150 @Test
151 public void parseQueryMTypeWDS() throws Exception {

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected