@Test public void testMetricFilter() throws Exception { MetricService victim = makeMetricService(); }
public static List<MetricSpecification> metricFilter(List<? extends MetricSpecification> list) { List<MetricSpecification> result = new ArrayList<>(); if (list != null) { for (MetricSpecification spec : list) { if (spec.getMetric() != null) { result.add(spec); } else { log.debug("MetricFilter: filtering out metricSpecification {} - no metric value found.", spec.getNameOrMetric()); } } } return result; }
MetricService implements MetricServiceAPI { public static List<MetricSpecification> metricFilter(List<? extends MetricSpecification> list) { List<MetricSpecification> result = new ArrayList<>(); if (list != null) { for (MetricSpecification spec : list) { if (spec.getMetric() != null) { result.add(spec); } else { log.debug("MetricFilter: filtering out metricSpecification {} - no metric value found.", spec.getNameOrMetric()); } } } return result; } }
MetricService implements MetricServiceAPI { public static List<MetricSpecification> metricFilter(List<? extends MetricSpecification> list) { List<MetricSpecification> result = new ArrayList<>(); if (list != null) { for (MetricSpecification spec : list) { if (spec.getMetric() != null) { result.add(spec); } else { log.debug("MetricFilter: filtering out metricSpecification {} - no metric value found.", spec.getNameOrMetric()); } } } return result; } MetricService(); }
MetricService implements MetricServiceAPI { public static List<MetricSpecification> metricFilter(List<? extends MetricSpecification> list) { List<MetricSpecification> result = new ArrayList<>(); if (list != null) { for (MetricSpecification spec : list) { if (spec.getMetric() != null) { result.add(spec); } else { log.debug("MetricFilter: filtering out metricSpecification {} - no metric value found.", spec.getNameOrMetric()); } } } return result; } MetricService(); static List<MetricSpecification> metricFilter(List<? extends MetricSpecification> list); static List<MetricSpecification> calculatedValueFilter(
            List<? extends MetricSpecification> list); SeriesQueryResult executeQuery(Optional<String> id, Optional<String> start, Optional<String> end, Optional<ReturnSet> returnset, Optional<Boolean> series, Optional<String> downsample, double downsampleMultiplier, Optional<Map<String, List<String>>> tags, List<MetricSpecification> metrics); @Override Response query(Optional<String> id, Optional<String> start, Optional<String> end,
                          Optional<ReturnSet> returnset, Optional<Boolean> series, Optional<String> downsample,
                          double downsampleMultiplier, Optional<Map<String, List<String>>> tags,
                          List<MetricSpecification> metrics); @Override Response options(String request); }
MetricService implements MetricServiceAPI { public static List<MetricSpecification> metricFilter(List<? extends MetricSpecification> list) { List<MetricSpecification> result = new ArrayList<>(); if (list != null) { for (MetricSpecification spec : list) { if (spec.getMetric() != null) { result.add(spec); } else { log.debug("MetricFilter: filtering out metricSpecification {} - no metric value found.", spec.getNameOrMetric()); } } } return result; } MetricService(); static List<MetricSpecification> metricFilter(List<? extends MetricSpecification> list); static List<MetricSpecification> calculatedValueFilter(
            List<? extends MetricSpecification> list); SeriesQueryResult executeQuery(Optional<String> id, Optional<String> start, Optional<String> end, Optional<ReturnSet> returnset, Optional<Boolean> series, Optional<String> downsample, double downsampleMultiplier, Optional<Map<String, List<String>>> tags, List<MetricSpecification> metrics); @Override Response query(Optional<String> id, Optional<String> start, Optional<String> end,
                          Optional<ReturnSet> returnset, Optional<Boolean> series, Optional<String> downsample,
                          double downsampleMultiplier, Optional<Map<String, List<String>>> tags,
                          List<MetricSpecification> metrics); @Override Response options(String request); static final String CLIENT_ID; static final String METRIC; static final String ID; static final String NOT_SPECIFIED; final ObjectMapper objectMapper; public JacksonResultsWriter jacksonResultsWriter; }