Package io.opentelemetry.sdk.metrics
Class View
java.lang.Object
io.opentelemetry.sdk.metrics.View
- Direct Known Subclasses:
AutoValue_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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ViewBuilderbuilder()(package private) static Viewcreate(String name, String description, Aggregation aggregation, AttributesProcessor attributesProcessor, int cardinalityLimit) abstract AggregationReturns the aggregation of the resulting metric.(package private) abstract AttributesProcessorReturns the attribute processor used for this view.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()
-
Constructor Details
-
View
View()
-
-
Method Details
-
builder
-
create
static View create(@Nullable String name, @Nullable String description, Aggregation aggregation, AttributesProcessor attributesProcessor, int cardinalityLimit) -
getName
Returns the name of the resulting metric, ornullif the matched instrument name should be used. -
getDescription
Returns the description of the resulting metric, ornullif the matched instrument description should be used. -
getAggregation
Returns the aggregation of the resulting metric. -
getAttributesProcessor
Returns the attribute processor used for this view. -
getCardinalityLimit
public abstract int getCardinalityLimit()Returns the cardinality limit for this view.- Since:
- 1.44.0
-
toString
-