Send feedback
Class MonitoredResourceDescriptor (2.29.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.29.0 keyboard_arrow_down
public class MonitoredResourceDescriptor implements Serializable
This class describes the schema of Cloud monitored resources. Monitored resource descriptors
contain a type name and a set of labels. For example, the monitored resource descriptor for
Google Compute Engine VM instances has a type of gce_instance
and specifies the use of
the labels instance_id
and zone
to identify particular VM instances.
Inheritance
Object >
MonitoredResourceDescriptor
Static Fields
FROM_PB_FUNCTION
public static final ApiFunction<MonitoredResourceDescriptor , MonitoredResourceDescriptor> FROM_PB_FUNCTION
Static Methods
fromPb(MonitoredResourceDescriptor descriptorPb)
public static MonitoredResourceDescriptor fromPb ( MonitoredResourceDescriptor descriptorPb )
Parameter Name Description descriptorPb
com.google.api.MonitoredResourceDescriptor
Methods
equals(Object obj)
public final boolean equals ( Object obj )
Parameter Name Description obj
Object
Overrides
getDescription()
public String getDescription ()
Returns an optional detailed description of the monitored resource type. This value might be
used in documentation. If not set, this method returns null
.
getDisplayName()
public String getDisplayName ()
Returns an optional concise name for the monitored resource type. This value might be displayed
in user interfaces. For example, Google Cloud SQL Database
. If not set, this method
returns null
.
getLabels()
public List<MonitoredResourceDescriptor . LabelDescriptor> getLabels ()
Returns a list of labels used to describe instances of this monitored resource type. For
example, an individual Google Cloud SQL database is identified by values for the labels
database_id
and region
.
getName()
Returns an optional name for the monitored resource descriptor. If not set, this method returns
null
.
getType()
Returns the monitored resource type. For example, the type cloudsql_database
represents
databases in Google Cloud SQL.
hashCode()
public final int hashCode ()
Returns Type Description int
Overrides
toPb()
public MonitoredResourceDescriptor toPb ()
Returns Type Description com.google.api.MonitoredResourceDescriptor
toString()
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-19 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-09-19 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-19 UTC."]]