Interface ScopeMetricsOrBuilder

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

public interface ScopeMetricsOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    getMetrics(int index)
    A list of metrics that originate from an instrumentation library.
    int
    A list of metrics that originate from an instrumentation library.
    A list of metrics that originate from an instrumentation library.
    A list of metrics that originate from an instrumentation library.
    A list of metrics that originate from an instrumentation library.
    The Schema URL, if known.
    com.google.protobuf.ByteString
    The Schema URL, if known.
    The instrumentation scope information for the metrics in this message.
    The instrumentation scope information for the metrics in this message.
    boolean
    The instrumentation scope information for the metrics in this message.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • hasScope

      boolean hasScope()
       The instrumentation scope information for the metrics in this message.
       Semantically when InstrumentationScope isn't set, it is equivalent with
       an empty instrumentation scope name (unknown).
       
      .opentelemetry.proto.common.v1.InstrumentationScope scope = 1;
      Returns:
      Whether the scope field is set.
    • getScope

       The instrumentation scope information for the metrics in this message.
       Semantically when InstrumentationScope isn't set, it is equivalent with
       an empty instrumentation scope name (unknown).
       
      .opentelemetry.proto.common.v1.InstrumentationScope scope = 1;
      Returns:
      The scope.
    • getScopeOrBuilder

      InstrumentationScopeOrBuilder getScopeOrBuilder()
       The instrumentation scope information for the metrics in this message.
       Semantically when InstrumentationScope isn't set, it is equivalent with
       an empty instrumentation scope name (unknown).
       
      .opentelemetry.proto.common.v1.InstrumentationScope scope = 1;
    • getMetricsList

      List<Metric> getMetricsList()
       A list of metrics that originate from an instrumentation library.
       
      repeated .opentelemetry.proto.metrics.v1.Metric metrics = 2;
    • getMetrics

      Metric getMetrics(int index)
       A list of metrics that originate from an instrumentation library.
       
      repeated .opentelemetry.proto.metrics.v1.Metric metrics = 2;
    • getMetricsCount

      int getMetricsCount()
       A list of metrics that originate from an instrumentation library.
       
      repeated .opentelemetry.proto.metrics.v1.Metric metrics = 2;
    • getMetricsOrBuilderList

      List<? extends MetricOrBuilder> getMetricsOrBuilderList()
       A list of metrics that originate from an instrumentation library.
       
      repeated .opentelemetry.proto.metrics.v1.Metric metrics = 2;
    • getMetricsOrBuilder

      MetricOrBuilder getMetricsOrBuilder(int index)
       A list of metrics that originate from an instrumentation library.
       
      repeated .opentelemetry.proto.metrics.v1.Metric metrics = 2;
    • getSchemaUrl

      String getSchemaUrl()
       The Schema URL, if known. This is the identifier of the Schema that the metric 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 all metrics in the "metrics" 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 metric 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 all metrics in the "metrics" field.
       
      string schema_url = 3;
      Returns:
      The bytes for schemaUrl.