public final class MetricValue
extends com.google.api.client.json.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
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
MetricValue() |
| Modifier and Type | Method and Description |
|---|---|
MetricValue |
clone() |
String |
getMetric()
Base name for this metric.
|
Map<String,String> |
getMetricLabels()
Optional.
|
DataflowGaugeValue |
getValueGauge64()
Non-cumulative int64 value of this metric.
|
DataflowHistogramValue |
getValueHistogram()
Histogram value of this metric.
|
Long |
getValueInt64()
Integer value of this metric.
|
MetricValue |
set(String fieldName,
Object value) |
MetricValue |
setMetric(String metric)
Base name for this metric.
|
MetricValue |
setMetricLabels(Map<String,String> metricLabels)
Optional.
|
MetricValue |
setValueGauge64(DataflowGaugeValue valueGauge64)
Non-cumulative int64 value of this metric.
|
MetricValue |
setValueHistogram(DataflowHistogramValue valueHistogram)
Histogram value of this metric.
|
MetricValue |
setValueInt64(Long valueInt64)
Integer value of this metric.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getMetric()
null for nonepublic MetricValue setMetric(String metric)
metric - metric or null for nonepublic Map<String,String> getMetricLabels()
null for nonepublic MetricValue setMetricLabels(Map<String,String> metricLabels)
metricLabels - metricLabels or null for nonepublic DataflowGaugeValue getValueGauge64()
null for nonepublic MetricValue setValueGauge64(DataflowGaugeValue valueGauge64)
valueGauge64 - valueGauge64 or null for nonepublic DataflowHistogramValue getValueHistogram()
null for nonepublic MetricValue setValueHistogram(DataflowHistogramValue valueHistogram)
valueHistogram - valueHistogram or null for nonepublic Long getValueInt64()
null for nonepublic MetricValue setValueInt64(Long valueInt64)
valueInt64 - valueInt64 or null for nonepublic MetricValue set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic MetricValue clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.