Class GcpResource
- java.lang.Object
-
- com.google.cloud.opentelemetry.resource.GcpResource
-
public abstract class GcpResource extends java.lang.ObjectA representation of GCP resource types.Unlike pure OpenTelemetry, GCP adds a "type" to a raw bundle of labels.
-
-
Constructor Summary
Constructors Constructor Description GcpResource()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract ResourceLabelsgetResourceLabels()The labels associated with the resource.abstract java.lang.StringgetResourceType()The type of resource, e.g.
-
-
-
Method Detail
-
getResourceType
public abstract java.lang.String getResourceType()
The type of resource, e.g. gce_instance.
-
getResourceLabels
public abstract ResourceLabels getResourceLabels()
The labels associated with the resource.
-
-