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 Service Management 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.
|
java.lang.String |
getLaunchStage()
Optional.
|
MetricDescriptorMetadata |
getMetadata()
Optional.
|
java.lang.String |
getMetricKind()
Whether the metric records instantaneous values, changes to a value, etc.
|
java.util.List<java.lang.String> |
getMonitoredResourceTypes()
Read-only.
|
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 units 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 |
setLaunchStage(java.lang.String launchStage)
Optional.
|
MetricDescriptor |
setMetadata(MetricDescriptorMetadata metadata)
Optional.
|
MetricDescriptor |
setMetricKind(java.lang.String metricKind)
Whether the metric records instantaneous values, changes to a value, etc.
|
MetricDescriptor |
setMonitoredResourceTypes(java.util.List<java.lang.String> monitoredResourceTypes)
Read-only.
|
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 units 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, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public 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 java.lang.String getLaunchStage()
null
for nonepublic MetricDescriptor setLaunchStage(java.lang.String launchStage)
launchStage
- launchStage 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.util.List<java.lang.String> getMonitoredResourceTypes()
null
for nonepublic MetricDescriptor setMonitoredResourceTypes(java.util.List<java.lang.String> monitoredResourceTypes)
monitoredResourceTypes
- monitoredResourceTypes 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.GenericJson
public MetricDescriptor clone()
clone
in class com.google.api.client.json.GenericJson