Interface ResourceMetricsOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
ResourceMetrics, ResourceMetrics.Builder

public interface ResourceMetricsOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • hasResource

      boolean hasResource()
       The resource for the metrics in this message.
       If this field is not set then no resource info is known.
       
      .opentelemetry.proto.resource.v1.Resource resource = 1;
      Returns:
      Whether the resource field is set.
    • getResource

      Resource getResource()
       The resource for the metrics in this message.
       If this field is not set then no resource info is known.
       
      .opentelemetry.proto.resource.v1.Resource resource = 1;
      Returns:
      The resource.
    • getResourceOrBuilder

      ResourceOrBuilder getResourceOrBuilder()
       The resource for the metrics in this message.
       If this field is not set then no resource info is known.
       
      .opentelemetry.proto.resource.v1.Resource resource = 1;
    • getScopeMetricsList

      List<ScopeMetrics> getScopeMetricsList()
       A list of metrics that originate from a resource.
       
      repeated .opentelemetry.proto.metrics.v1.ScopeMetrics scope_metrics = 2;
    • getScopeMetrics

      ScopeMetrics getScopeMetrics(int index)
       A list of metrics that originate from a resource.
       
      repeated .opentelemetry.proto.metrics.v1.ScopeMetrics scope_metrics = 2;
    • getScopeMetricsCount

      int getScopeMetricsCount()
       A list of metrics that originate from a resource.
       
      repeated .opentelemetry.proto.metrics.v1.ScopeMetrics scope_metrics = 2;
    • getScopeMetricsOrBuilderList

      List<? extends ScopeMetricsOrBuilder> getScopeMetricsOrBuilderList()
       A list of metrics that originate from a resource.
       
      repeated .opentelemetry.proto.metrics.v1.ScopeMetrics scope_metrics = 2;
    • getScopeMetricsOrBuilder

      ScopeMetricsOrBuilder getScopeMetricsOrBuilder(int index)
       A list of metrics that originate from a resource.
       
      repeated .opentelemetry.proto.metrics.v1.ScopeMetrics scope_metrics = 2;
    • getSchemaUrl

      String getSchemaUrl()
       The Schema URL, if known. This is the identifier of the Schema that the resource data
       is recorded in. To learn more about Schema URL see
       https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
       This schema_url applies to the data in the "resource" field. It does not apply
       to the data in the "scope_metrics" field which have their own schema_url field.
       
      string schema_url = 3;
      Returns:
      The schemaUrl.
    • getSchemaUrlBytes

      com.google.protobuf.ByteString getSchemaUrlBytes()
       The Schema URL, if known. This is the identifier of the Schema that the resource data
       is recorded in. To learn more about Schema URL see
       https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
       This schema_url applies to the data in the "resource" field. It does not apply
       to the data in the "scope_metrics" field which have their own schema_url field.
       
      string schema_url = 3;
      Returns:
      The bytes for schemaUrl.