public enum TimelineMetricOperation extends Enum<TimelineMetricOperation>
| Modifier and Type | Field and Description |
|---|---|
static String |
PREV_METRIC_STATE_KEY |
| Modifier and Type | Method and Description |
|---|---|
TimelineMetric |
aggregate(TimelineMetric incoming,
TimelineMetric aggregate,
Map<Object,Object> state)
Perform the aggregation operation.
|
String |
toString() |
static TimelineMetricOperation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimelineMetricOperation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimelineMetricOperation NOP
public static final TimelineMetricOperation MAX
public static final TimelineMetricOperation REPLACE
public static final TimelineMetricOperation SUM
public static final TimelineMetricOperation AVG
public static final String PREV_METRIC_STATE_KEY
public static TimelineMetricOperation[] values()
for (TimelineMetricOperation c : TimelineMetricOperation.values()) System.out.println(c);
public static TimelineMetricOperation valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic TimelineMetric aggregate(TimelineMetric incoming, TimelineMetric aggregate, Map<Object,Object> state)
incoming - Incoming metricaggregate - Base aggregation metricstate - Operation statepublic String toString()
toString in class Enum<TimelineMetricOperation>Copyright © 2008–2024 Apache Software Foundation. All rights reserved.