resource property

MonitoredResource? resource
getter/setter pair

The associated monitored resource.

Custom metrics can use only certain monitored resource types in their time series data. For more information, see Monitored resources for custom metrics (https://cloud.google.com/monitoring/custom-metrics/creating-metrics#custom-metric-resources).

Implementation

MonitoredResource? resource;