public final class Metric
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 Cloud Spanner 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.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Metric() |
Modifier and Type | Method and Description |
---|---|
Metric |
clone() |
String |
getAggregation()
The aggregation function used to aggregate each key bucket
|
LocalizedString |
getCategory()
The category of the metric, e.g.
|
DerivedMetric |
getDerived()
The references to numerator and denominator metrics for a derived metric.
|
LocalizedString |
getDisplayLabel()
The displayed label of the metric.
|
Boolean |
getHasNonzeroData()
Whether the metric has any non-zero data.
|
Float |
getHotValue()
The value that is considered hot for the metric.
|
Map<String,IndexedHotKey> |
getIndexedHotKeys()
The (sparse) mapping from time index to an IndexedHotKey message, representing those time
intervals for which there are hot keys.
|
Map<String,IndexedKeyRangeInfos> |
getIndexedKeyRangeInfos()
The (sparse) mapping from time interval index to an IndexedKeyRangeInfos message, representing
those time intervals for which there are informational messages concerning key ranges.
|
LocalizedString |
getInfo()
Information about the metric.
|
MetricMatrix |
getMatrix()
The data for the metric as a matrix.
|
LocalizedString |
getUnit()
The unit of the metric.
|
Boolean |
getVisible()
Whether the metric is visible to the end user.
|
Metric |
set(String fieldName,
Object value) |
Metric |
setAggregation(String aggregation)
The aggregation function used to aggregate each key bucket
|
Metric |
setCategory(LocalizedString category)
The category of the metric, e.g.
|
Metric |
setDerived(DerivedMetric derived)
The references to numerator and denominator metrics for a derived metric.
|
Metric |
setDisplayLabel(LocalizedString displayLabel)
The displayed label of the metric.
|
Metric |
setHasNonzeroData(Boolean hasNonzeroData)
Whether the metric has any non-zero data.
|
Metric |
setHotValue(Float hotValue)
The value that is considered hot for the metric.
|
Metric |
setIndexedHotKeys(Map<String,IndexedHotKey> indexedHotKeys)
The (sparse) mapping from time index to an IndexedHotKey message, representing those time
intervals for which there are hot keys.
|
Metric |
setIndexedKeyRangeInfos(Map<String,IndexedKeyRangeInfos> indexedKeyRangeInfos)
The (sparse) mapping from time interval index to an IndexedKeyRangeInfos message, representing
those time intervals for which there are informational messages concerning key ranges.
|
Metric |
setInfo(LocalizedString info)
Information about the metric.
|
Metric |
setMatrix(MetricMatrix matrix)
The data for the metric as a matrix.
|
Metric |
setUnit(LocalizedString unit)
The unit of the metric.
|
Metric |
setVisible(Boolean visible)
Whether the metric is visible to the end user.
|
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 String getAggregation()
null
for nonepublic Metric setAggregation(String aggregation)
aggregation
- aggregation or null
for nonepublic LocalizedString getCategory()
null
for nonepublic Metric setCategory(LocalizedString category)
category
- category or null
for nonepublic DerivedMetric getDerived()
null
for nonepublic Metric setDerived(DerivedMetric derived)
derived
- derived or null
for nonepublic LocalizedString getDisplayLabel()
null
for nonepublic Metric setDisplayLabel(LocalizedString displayLabel)
displayLabel
- displayLabel or null
for nonepublic Boolean getHasNonzeroData()
null
for nonepublic Metric setHasNonzeroData(Boolean hasNonzeroData)
hasNonzeroData
- hasNonzeroData or null
for nonepublic Float getHotValue()
null
for nonepublic Metric setHotValue(Float hotValue)
hotValue
- hotValue or null
for nonepublic Map<String,IndexedHotKey> getIndexedHotKeys()
null
for nonepublic Metric setIndexedHotKeys(Map<String,IndexedHotKey> indexedHotKeys)
indexedHotKeys
- indexedHotKeys or null
for nonepublic Map<String,IndexedKeyRangeInfos> getIndexedKeyRangeInfos()
null
for nonepublic Metric setIndexedKeyRangeInfos(Map<String,IndexedKeyRangeInfos> indexedKeyRangeInfos)
indexedKeyRangeInfos
- indexedKeyRangeInfos or null
for nonepublic LocalizedString getInfo()
null
for nonepublic Metric setInfo(LocalizedString info)
info
- info or null
for nonepublic MetricMatrix getMatrix()
null
for nonepublic Metric setMatrix(MetricMatrix matrix)
matrix
- matrix or null
for nonepublic LocalizedString getUnit()
null
for nonepublic Metric setUnit(LocalizedString unit)
unit
- unit or null
for nonepublic Boolean getVisible()
null
for nonepublic Metric setVisible(Boolean visible)
visible
- visible or null
for nonepublic Metric set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public Metric clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.