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 Networking 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 |
|---|
MetricDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
MetricDescriptor |
clone() |
String |
getDescription()
A detailed description of the metric, which can be used in documentation.
|
String |
getDisplayName()
A concise name for the metric, which can be displayed in user interfaces.
|
List<LabelDescriptor> |
getLabels()
The set of labels that can be used to describe a specific instance of this metric type.
|
String |
getLaunchStage()
Optional.
|
MetricDescriptorMetadata |
getMetadata()
Optional.
|
String |
getMetricKind()
Whether the metric records instantaneous values, changes to a value, etc.
|
List<String> |
getMonitoredResourceTypes()
Read-only.
|
String |
getName()
The resource name of the metric descriptor.
|
String |
getType()
The metric type, including its DNS name prefix.
|
String |
getUnit()
The units in which the metric value is reported.
|
String |
getValueType()
Whether the measurement is an integer, a floating-point number, etc.
|
MetricDescriptor |
set(String fieldName,
Object value) |
MetricDescriptor |
setDescription(String description)
A detailed description of the metric, which can be used in documentation.
|
MetricDescriptor |
setDisplayName(String displayName)
A concise name for the metric, which can be displayed in user interfaces.
|
MetricDescriptor |
setLabels(List<LabelDescriptor> labels)
The set of labels that can be used to describe a specific instance of this metric type.
|
MetricDescriptor |
setLaunchStage(String launchStage)
Optional.
|
MetricDescriptor |
setMetadata(MetricDescriptorMetadata metadata)
Optional.
|
MetricDescriptor |
setMetricKind(String metricKind)
Whether the metric records instantaneous values, changes to a value, etc.
|
MetricDescriptor |
setMonitoredResourceTypes(List<String> monitoredResourceTypes)
Read-only.
|
MetricDescriptor |
setName(String name)
The resource name of the metric descriptor.
|
MetricDescriptor |
setType(String type)
The metric type, including its DNS name prefix.
|
MetricDescriptor |
setUnit(String unit)
The units in which the metric value is reported.
|
MetricDescriptor |
setValueType(String valueType)
Whether the measurement is an integer, a floating-point number, etc.
|
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 getDescription()
null for nonepublic MetricDescriptor setDescription(String description)
description - description or null for nonepublic String getDisplayName()
null for nonepublic MetricDescriptor setDisplayName(String displayName)
displayName - displayName or null for nonepublic List<LabelDescriptor> getLabels()
null for nonepublic MetricDescriptor setLabels(List<LabelDescriptor> labels)
labels - labels or null for nonepublic String getLaunchStage()
null for nonepublic MetricDescriptor setLaunchStage(String launchStage)
launchStage - launchStage or null for nonepublic MetricDescriptorMetadata getMetadata()
null for nonepublic MetricDescriptor setMetadata(MetricDescriptorMetadata metadata)
metadata - metadata or null for nonepublic String getMetricKind()
null for nonepublic MetricDescriptor setMetricKind(String metricKind)
metricKind - metricKind or null for nonepublic List<String> getMonitoredResourceTypes()
null for nonepublic MetricDescriptor setMonitoredResourceTypes(List<String> monitoredResourceTypes)
monitoredResourceTypes - monitoredResourceTypes or null for nonepublic String getName()
null for nonepublic MetricDescriptor setName(String name)
name - name or null for nonepublic String getType()
null for nonepublic MetricDescriptor setType(String type)
type - type or null for nonepublic String getUnit()
null for nonepublic MetricDescriptor setUnit(String unit)
unit - unit or null for nonepublic String getValueType()
null for nonepublic MetricDescriptor setValueType(String valueType)
valueType - valueType or null for nonepublic MetricDescriptor set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic MetricDescriptor clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.