public class ValuesAndExtrapolations
extends java.lang.Object
Constructor and Description |
---|
ValuesAndExtrapolations(AggregatedMetricValues metricValues,
java.util.Map<java.lang.Integer,Extrapolation> extrapolations)
Construct the values and extrapolations.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.Integer,Extrapolation> |
extrapolations()
Get the extrapolations for the values.
|
AggregatedMetricValues |
metricValues()
Get the metric values for all the included windows.
|
void |
setWindows(java.util.List<java.lang.Long> windows)
Method to set the windows array.
|
long |
window(int index)
Get the time window of a specific index.
|
java.util.List<java.lang.Long> |
windows()
Get the window list for the metric values.
|
public ValuesAndExtrapolations(AggregatedMetricValues metricValues, java.util.Map<java.lang.Integer,Extrapolation> extrapolations)
metricValues
- the metric values.extrapolations
- the extrapolations by corresponding metric value indices.public AggregatedMetricValues metricValues()
The returned metric values are store in a two-dimensional array. To get the time window associated with
each metric values, use the array index to look up in the time window array returned by calling
window(int)
with the index.
AggregatedMetricValues
for all the included windows.public java.util.Map<java.lang.Integer,Extrapolation> extrapolations()
AggregatedMetricValues
returned by metricValues()
.Extrapolation
s for the values if exist.public java.util.List<java.lang.Long> windows()
AggregatedMetricValues
returned
by metricValues()
public long window(int index)
index
- the index to get time window.public void setWindows(java.util.List<java.lang.Long> windows)
windows
- the windows for the values.