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

Method getBaseQuery

test/core/TestTSSubQuery.java:624–635  ·  view source on GitHub ↗

@return a sub query object with some defaults set for testing

()

Source from the content-addressed store, hash-verified

622
623 /** @return a sub query object with some defaults set for testing */
624 public static TSSubQuery getBaseQuery() {
625 TSSubQuery query = new TSSubQuery();
626 query.setAggregator("sum");
627 query.setMetric("foo");
628 HashMap<String, String> tags = new HashMap<String, String>(2);
629 tags.put("host", "web01");
630 tags.put("dc", "lax");
631 query.setTags(tags);
632 query.setRate(true);
633 query.setRateOptions(new RateOptions(true, 1024, 16));
634 return query;
635 }
636
637 /**
638 * Sets up an object with good, common values for testing the validation

Calls 6

setAggregatorMethod · 0.95
setMetricMethod · 0.95
setTagsMethod · 0.95
setRateMethod · 0.95
setRateOptionsMethod · 0.95
putMethod · 0.80

Tested by

no test coverage detected