public class InvalidMetricsManager extends Object
| Constructor and Description |
|---|
InvalidMetricsManager(DateTimeService dateTimeService,
MetricsDAO dao) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isInvalidMetric(AggregateNumericMetric metric) |
void |
shutdown() |
boolean |
submit(MetricsTable type,
AggregateNumericMetric metric)
Submits an invalid metric for later processing which is done in a separate thread.
|
public InvalidMetricsManager(DateTimeService dateTimeService, MetricsDAO dao)
public void shutdown()
public boolean submit(MetricsTable type, AggregateNumericMetric metric)
InvalidMetric. Metrics belonging to
the same measurement schedule and from the same day will only have one invalid metric
stored in the queue. In other words, suppose a 1 hour metric from 14:00 is submitted.
Then a 6 hour metric from 12:00 for the same schedule id is submitted. This will result
in only one InvalidMetric stored stored in the queue. The reason being that
we need to look at all of the 1 hour, 6 hour, and 24 hour metrics; so, multiple
entries in the queue for the same day will only result in duplicate work.type - The type of aggregate metricmetric - The invalid metric where invalid means either min > avg or max < avgpublic boolean isInvalidMetric(AggregateNumericMetric metric)
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.