Package com.google.cloud
Class MonitoredResourceDescriptor
java.lang.Object
com.google.cloud.MonitoredResourceDescriptor
- All Implemented Interfaces:
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.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis class describes a label for a monitored resource. -
Field Summary
FieldsModifier and TypeFieldDescription -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanstatic MonitoredResourceDescriptorfromPb(MonitoredResourceDescriptor descriptorPb) Returns an optional detailed description of the monitored resource type.Returns an optional concise name for the monitored resource type.Returns a list of labels used to describe instances of this monitored resource type.getName()Returns an optional name for the monitored resource descriptor.getType()Returns the monitored resource type.final inthashCode()toPb()toString()
-
Field Details
-
FROM_PB_FUNCTION
public static final ApiFunction<MonitoredResourceDescriptor,MonitoredResourceDescriptor> FROM_PB_FUNCTION
-
-
Method Details
-
getType
Returns the monitored resource type. For example, the typecloudsql_databaserepresents databases in Google Cloud SQL. -
getName
Returns an optional name for the monitored resource descriptor. If not set, this method returnsnull. -
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 returnsnull. -
getDescription
Returns an optional detailed description of the monitored resource type. This value might be used in documentation. If not set, this method returnsnull. -
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 labelsdatabase_idandregion. -
hashCode
public final int hashCode() -
equals
-
toString
-
toPb
-
fromPb
-