public final class MetricUpdate extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Dataflow API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
MetricUpdate() |
Modifier and Type | Method and Description |
---|---|
MetricUpdate |
clone() |
Boolean |
getCumulative()
True if this metric is reported as the total cumulative aggregate value accumulated since the
worker started working on this WorkItem.
|
Object |
getInternal()
Worker-computed aggregate value for internal use by the Dataflow service.
|
String |
getKind()
Metric aggregation kind.
|
Object |
getMeanCount()
Worker-computed aggregate value for the "Mean" aggregation kind.
|
Object |
getMeanSum()
Worker-computed aggregate value for the "Mean" aggregation kind.
|
MetricStructuredName |
getName()
Name of the metric.
|
Object |
getScalar()
Worker-computed aggregate value for aggregation kinds "Sum", "Max", "Min", "And", and "Or".
|
Object |
getSet()
Worker-computed aggregate value for the "Set" aggregation kind.
|
String |
getUpdateTime()
Timestamp associated with the metric value.
|
MetricUpdate |
set(String fieldName,
Object value) |
MetricUpdate |
setCumulative(Boolean cumulative)
True if this metric is reported as the total cumulative aggregate value accumulated since the
worker started working on this WorkItem.
|
MetricUpdate |
setInternal(Object internal)
Worker-computed aggregate value for internal use by the Dataflow service.
|
MetricUpdate |
setKind(String kind)
Metric aggregation kind.
|
MetricUpdate |
setMeanCount(Object meanCount)
Worker-computed aggregate value for the "Mean" aggregation kind.
|
MetricUpdate |
setMeanSum(Object meanSum)
Worker-computed aggregate value for the "Mean" aggregation kind.
|
MetricUpdate |
setName(MetricStructuredName name)
Name of the metric.
|
MetricUpdate |
setScalar(Object scalar)
Worker-computed aggregate value for aggregation kinds "Sum", "Max", "Min", "And", and "Or".
|
MetricUpdate |
setSet(Object set)
Worker-computed aggregate value for the "Set" aggregation kind.
|
MetricUpdate |
setUpdateTime(String updateTime)
Timestamp associated with the metric value.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public Boolean getCumulative()
null
for nonepublic MetricUpdate setCumulative(Boolean cumulative)
cumulative
- cumulative or null
for nonepublic Object getInternal()
null
for nonepublic MetricUpdate setInternal(Object internal)
internal
- internal or null
for nonepublic String getKind()
null
for nonepublic MetricUpdate setKind(String kind)
kind
- kind or null
for nonepublic Object getMeanCount()
null
for nonepublic MetricUpdate setMeanCount(Object meanCount)
meanCount
- meanCount or null
for nonepublic Object getMeanSum()
null
for nonepublic MetricUpdate setMeanSum(Object meanSum)
meanSum
- meanSum or null
for nonepublic MetricStructuredName getName()
null
for nonepublic MetricUpdate setName(MetricStructuredName name)
name
- name or null
for nonepublic Object getScalar()
null
for nonepublic MetricUpdate setScalar(Object scalar)
scalar
- scalar or null
for nonepublic Object getSet()
null
for nonepublic MetricUpdate setSet(Object set)
set
- set or null
for nonepublic String getUpdateTime()
null
for nonepublic MetricUpdate setUpdateTime(String updateTime)
updateTime
- updateTime or null
for nonepublic MetricUpdate set(String fieldName, Object value)
set
in class GenericJson
public MetricUpdate clone()
clone
in class GenericJson