Class MonitoredResourceDescription
- java.lang.Object
-
- com.google.cloud.opentelemetry.metric.MonitoredResourceDescription
-
@Immutable public final class MonitoredResourceDescription extends java.lang.ObjectThis 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.StringgetMonitoredResourceType()The type of the monitored resource for which mapping is defined.
-
-
-
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.
-
-