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 Dataflow API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/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, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
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
Copyright © 2011–2020 Google. All rights reserved.