Class View

java.lang.Object
io.opentelemetry.sdk.metrics.View

@Immutable public abstract class View extends Object
A configuration for a metric stream transformation.
  • Method Details

    • builder

      public static ViewBuilder builder()
      Returns a builder for a View.
    • getName

      @Nullable public abstract String getName()
      The name of the resulting metric to generate, or null if the same as the instrument.
    • getDescription

      @Nullable public abstract String getDescription()
      The name of the resulting metric to generate, or null if the same as the instrument.
    • getAggregation

      public abstract Aggregation getAggregation()
      The aggregation used for this view.