public final class MetricDescriptor
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 Stackdriver Monitoring 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 |
|---|
MetricDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
MetricDescriptor |
clone() |
java.lang.String |
getDescription()
A detailed description of the metric, which can be used in documentation.
|
java.lang.String |
getDisplayName()
A concise name for the metric, which can be displayed in user interfaces.
|
java.util.List<LabelDescriptor> |
getLabels()
The set of labels that can be used to describe a specific instance of this metric type.
|
MetricDescriptorMetadata |
getMetadata()
Optional.
|
java.lang.String |
getMetricKind()
Whether the metric records instantaneous values, changes to a value, etc.
|
java.lang.String |
getName()
The resource name of the metric descriptor.
|
java.lang.String |
getType()
The metric type, including its DNS name prefix.
|
java.lang.String |
getUnit()
The unit in which the metric value is reported.
|
java.lang.String |
getValueType()
Whether the measurement is an integer, a floating-point number, etc.
|
MetricDescriptor |
set(java.lang.String fieldName,
java.lang.Object value) |
MetricDescriptor |
setDescription(java.lang.String description)
A detailed description of the metric, which can be used in documentation.
|
MetricDescriptor |
setDisplayName(java.lang.String displayName)
A concise name for the metric, which can be displayed in user interfaces.
|
MetricDescriptor |
setLabels(java.util.List<LabelDescriptor> labels)
The set of labels that can be used to describe a specific instance of this metric type.
|
MetricDescriptor |
setMetadata(MetricDescriptorMetadata metadata)
Optional.
|
MetricDescriptor |
setMetricKind(java.lang.String metricKind)
Whether the metric records instantaneous values, changes to a value, etc.
|
MetricDescriptor |
setName(java.lang.String name)
The resource name of the metric descriptor.
|
MetricDescriptor |
setType(java.lang.String type)
The metric type, including its DNS name prefix.
|
MetricDescriptor |
setUnit(java.lang.String unit)
The unit in which the metric value is reported.
|
MetricDescriptor |
setValueType(java.lang.String valueType)
Whether the measurement is an integer, a floating-point number, etc.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.String getDescription()
null for nonepublic MetricDescriptor setDescription(java.lang.String description)
description - description or null for nonepublic java.lang.String getDisplayName()
null for nonepublic MetricDescriptor setDisplayName(java.lang.String displayName)
displayName - displayName or null for nonepublic java.util.List<LabelDescriptor> getLabels()
null for nonepublic MetricDescriptor setLabels(java.util.List<LabelDescriptor> labels)
labels - labels or null for nonepublic MetricDescriptorMetadata getMetadata()
null for nonepublic MetricDescriptor setMetadata(MetricDescriptorMetadata metadata)
metadata - metadata or null for nonepublic java.lang.String getMetricKind()
null for nonepublic MetricDescriptor setMetricKind(java.lang.String metricKind)
metricKind - metricKind or null for nonepublic java.lang.String getName()
null for nonepublic MetricDescriptor setName(java.lang.String name)
name - name or null for nonepublic java.lang.String getType()
null for nonepublic MetricDescriptor setType(java.lang.String type)
type - type or null for nonepublic java.lang.String getUnit()
null for nonepublic MetricDescriptor setUnit(java.lang.String unit)
unit - unit or null for nonepublic java.lang.String getValueType()
null for nonepublic MetricDescriptor setValueType(java.lang.String valueType)
valueType - valueType or null for nonepublic MetricDescriptor set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic MetricDescriptor clone()
clone in class com.google.api.client.json.GenericJson