public class TimelineMetricSubDoc extends Object
TimelineMetric
that will be
used when creating new TimelineEntityDocument
.Constructor and Description |
---|
TimelineMetricSubDoc() |
TimelineMetricSubDoc(org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric timelineMetric) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric |
fetchTimelineMetric() |
String |
getId() |
org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetricOperation |
getRealtimeAggregationOp()
Get the real time aggregation operation of this metric.
|
long |
getSingleDataTimestamp()
Get single data timestamp of the metric.
|
Number |
getSingleDataValue()
Get single data value of the metric.
|
org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric.Type |
getType() |
Map<Long,Number> |
getValues() |
TreeMap<Long,Number> |
getValuesJAXB() |
int |
hashCode() |
boolean |
isValid() |
void |
setId(String metricId) |
void |
setRealtimeAggregationOp(org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetricOperation op)
Set the real time aggregation operation of this metric.
|
void |
setSingleDataTimestamp(long singleDataTimestamp) |
void |
setSingleDataValue(Number singleDataValue) |
void |
setType(org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric.Type metricType) |
void |
setValues(Map<Long,Number> vals) |
public TimelineMetricSubDoc()
public TimelineMetricSubDoc(org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric timelineMetric)
public org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetricOperation getRealtimeAggregationOp()
public void setRealtimeAggregationOp(org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetricOperation op)
op
- A timeline metric operation that the metric should perform on
real time aggregationspublic String getId()
public void setId(String metricId)
public void setSingleDataTimestamp(long singleDataTimestamp)
public long getSingleDataTimestamp()
public Number getSingleDataValue()
public void setSingleDataValue(Number singleDataValue)
public org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric.Type getType()
public void setType(org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric.Type metricType)
public boolean isValid()
public org.apache.hadoop.yarn.api.records.timelineservice.TimelineMetric fetchTimelineMetric()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.