Class View
java.lang.Object
io.opentelemetry.sdk.metrics.View
A view configures how measurements are aggregated and exported as metrics.
Views are registered with the SDK SdkMeterProviderBuilder.registerView(InstrumentSelector, View).
- Since:
- 1.14.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic ViewBuilderbuilder()abstract AggregationReturns the aggregation of the resulting metric.abstract intReturns the cardinality limit for this view.abstract StringReturns the description of the resulting metric, ornullif the matched instrument description should be used.abstract StringgetName()Returns the name of the resulting metric, ornullif the matched instrument name should be used.final StringtoString()
-
Method Details
-
builder
-
getName
-
getDescription
-
getAggregation
Returns the aggregation of the resulting metric. -
getCardinalityLimit
public abstract int getCardinalityLimit()Returns the cardinality limit for this view.- Since:
- 1.44.0
-
toString
-