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 Kubernetes Engine 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| Constructor and Description |
|---|
Metric() |
| Modifier and Type | Method and Description |
|---|---|
Metric |
clone() |
java.lang.Double |
getDoubleValue()
For metrics with floating point value.
|
java.lang.Long |
getIntValue()
For metrics with integer value.
|
java.lang.String |
getName()
Metric name, required.
|
java.lang.String |
getStringValue()
For metrics with custom values (ratios, visual progress, etc.).
|
Metric |
set(java.lang.String fieldName,
java.lang.Object value) |
Metric |
setDoubleValue(java.lang.Double doubleValue)
For metrics with floating point value.
|
Metric |
setIntValue(java.lang.Long intValue)
For metrics with integer value.
|
Metric |
setName(java.lang.String name)
Metric name, required.
|
Metric |
setStringValue(java.lang.String stringValue)
For metrics with custom values (ratios, visual progress, etc.).
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.Double getDoubleValue()
null for nonepublic Metric setDoubleValue(java.lang.Double doubleValue)
doubleValue - doubleValue or null for nonepublic java.lang.Long getIntValue()
null for nonepublic Metric setIntValue(java.lang.Long intValue)
intValue - intValue or null for nonepublic java.lang.String getName()
null for nonepublic Metric setName(java.lang.String name)
name - name or null for nonepublic java.lang.String getStringValue()
null for nonepublic Metric setStringValue(java.lang.String stringValue)
stringValue - stringValue or null for nonepublic Metric set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Metric clone()
clone in class com.google.api.client.json.GenericJson