Sets up an object with good, common values for testing the validation function with an "m" type query (no tsuids). Each test can "set" the method it wants to fool with and call .validateAndSetQuery() Warning: This method is also shared by TestTSQuery so be careful if you change any va
()
| 643 | * @return A sub query object |
| 644 | */ |
| 645 | public static TSSubQuery getMetricForValidate() { |
| 646 | final TSSubQuery sub = new TSSubQuery(); |
| 647 | sub.setAggregator("sum"); |
| 648 | sub.setDownsample("5m-avg"); |
| 649 | sub.setMetric("sys.cpu.0"); |
| 650 | sub.setRate(false); |
| 651 | final HashMap<String, String> tags = new HashMap<String, String>(); |
| 652 | tags.put("host", "*"); |
| 653 | tags.put("dc", "lga"); |
| 654 | sub.setTags(tags); |
| 655 | return sub; |
| 656 | } |
| 657 | } |
no test coverage detected