Class MonitoredResourceDescription


  • @Immutable
    public final class MonitoredResourceDescription
    extends java.lang.Object
    This class holds the mapping between Google Cloud's monitored resource type and the labels for identifying the given monitored resource type.
    • Constructor Summary

      Constructors 
      Constructor Description
      MonitoredResourceDescription​(java.lang.String mrType, java.util.Set<java.lang.String> mrLabels)
      Public constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.String> getMonitoredResourceLabels()
      Returns the set of labels used to identify the monitored resource represented in this mapping.
      java.lang.String getMonitoredResourceType()
      The type of the monitored resource for which mapping is defined.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MonitoredResourceDescription

        public MonitoredResourceDescription​(java.lang.String mrType,
                                            java.util.Set<java.lang.String> mrLabels)
        Public constructor.
        Parameters:
        mrType - The monitored resource type for which the mapping is being specified.
        mrLabels - A set of labels which uniquely identify a given monitored resource.
    • Method Detail

      • getMonitoredResourceLabels

        public java.util.Set<java.lang.String> getMonitoredResourceLabels()
        Returns the set of labels used to identify the monitored resource represented in this mapping.
        Returns:
        Immutable set of labels that map to the specified monitored resource type.
      • getMonitoredResourceType

        public java.lang.String getMonitoredResourceType()
        The type of the monitored resource for which mapping is defined.
        Returns:
        The type of the monitored resource.