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

Method getSubQuery

test/core/TestTsdbQuery.java:744–756  ·  view source on GitHub ↗
(TsdbQuery.ROLLUP_USAGE rollupUsage)

Source from the content-addressed store, hash-verified

742 }
743
744 private TSSubQuery getSubQuery(TsdbQuery.ROLLUP_USAGE rollupUsage) {
745 final TSSubQuery sub_query = new TSSubQuery();
746 sub_query.setMetric(METRIC_STRING);
747 sub_query.setAggregator("sum");
748
749 sub_query.setTags(tags);
750
751 if (rollupUsage != null) {
752 sub_query.setRollupUsage(rollupUsage.name());
753 }
754
755 return sub_query;
756 }
757
758 private void mockSystemTime(long newTimestamp) {
759 PowerMockito.mockStatic(DateTime.class);

Callers 1

getTSQueryMethod · 0.95

Calls 5

setMetricMethod · 0.95
setAggregatorMethod · 0.95
setTagsMethod · 0.95
setRollupUsageMethod · 0.95
nameMethod · 0.45

Tested by

no test coverage detected