public class MonitoredResourceDescriptor extends Object implements Serializable
gce_instance
and specifies the use of
the labels instance_id
and zone
to identify particular VM instances.Modifier and Type | Class and Description |
---|---|
static class |
MonitoredResourceDescriptor.LabelDescriptor
This class describes a label for a monitored resource.
|
Modifier and Type | Field and Description |
---|---|
static com.google.api.core.ApiFunction<com.google.api.MonitoredResourceDescriptor,MonitoredResourceDescriptor> |
FROM_PB_FUNCTION |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static MonitoredResourceDescriptor |
fromPb(com.google.api.MonitoredResourceDescriptor descriptorPb) |
String |
getDescription()
Returns an optional detailed description of the monitored resource type.
|
String |
getDisplayName()
Returns an optional concise name for the monitored resource type.
|
List<MonitoredResourceDescriptor.LabelDescriptor> |
getLabels()
Returns a list of labels used to describe instances of this monitored resource type.
|
String |
getName()
Returns an optional name for the monitored resource descriptor.
|
String |
getType()
Returns the monitored resource type.
|
int |
hashCode() |
com.google.api.MonitoredResourceDescriptor |
toPb() |
String |
toString() |
public static final com.google.api.core.ApiFunction<com.google.api.MonitoredResourceDescriptor,MonitoredResourceDescriptor> FROM_PB_FUNCTION
public String getType()
cloudsql_database
represents
databases in Google Cloud SQL.public String getName()
null
.public String getDisplayName()
Google Cloud SQL Database
. If not set, this method
returns null
.public String getDescription()
null
.public List<MonitoredResourceDescriptor.LabelDescriptor> getLabels()
database_id
and region
.public com.google.api.MonitoredResourceDescriptor toPb()
public static MonitoredResourceDescriptor fromPb(com.google.api.MonitoredResourceDescriptor descriptorPb)
Copyright © 2019 Google LLC. All rights reserved.