public final class MetricStructuredName 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 |
---|
MetricStructuredName() |
Modifier and Type | Method and Description |
---|---|
MetricStructuredName |
clone() |
Map<String,String> |
getContext()
Zero or more labeled fields which identify the part of the job this metric is associated with,
such as the name of a step or collection.
|
String |
getName()
Worker-defined metric name.
|
String |
getOrigin()
Origin (namespace) of metric name.
|
MetricStructuredName |
set(String fieldName,
Object value) |
MetricStructuredName |
setContext(Map<String,String> context)
Zero or more labeled fields which identify the part of the job this metric is associated with,
such as the name of a step or collection.
|
MetricStructuredName |
setName(String name)
Worker-defined metric name.
|
MetricStructuredName |
setOrigin(String origin)
Origin (namespace) of metric name.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public Map<String,String> getContext()
null
for nonepublic MetricStructuredName setContext(Map<String,String> context)
context
- context or null
for nonepublic String getName()
null
for nonepublic MetricStructuredName setName(String name)
name
- name or null
for nonepublic String getOrigin()
null
for nonepublic MetricStructuredName setOrigin(String origin)
origin
- origin or null
for nonepublic MetricStructuredName set(String fieldName, Object value)
set
in class GenericJson
public MetricStructuredName clone()
clone
in class GenericJson