Class MeterSelectorBuilder
java.lang.Object
io.opentelemetry.sdk.metrics.view.MeterSelectorBuilder
Builder for
MeterSelector
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns an InstrumentSelector instance with the content of this builder.Sets a specifier for selecting Instruments by name.Sets thePredicate
for matching name.setSchemaUrl
(String schemaUrl) Sets the schema url to match.setSchemaUrl
(Predicate<String> schemaUrlFilter) Sets thePredicate
for matching schema urls.setVersion
(String version) Sets a specifier for selecting Meters by version.setVersion
(Predicate<String> versionFilter) Sets thePredicate
for matching versions.
-
Constructor Details
-
MeterSelectorBuilder
public MeterSelectorBuilder()
-
-
Method Details
-
setName
Sets a specifier for selecting Instruments by name. -
setName
Sets thePredicate
for matching name. -
setVersion
Sets thePredicate
for matching versions. -
setVersion
Sets a specifier for selecting Meters by version. -
setSchemaUrl
Sets the schema url to match. -
setSchemaUrl
Sets thePredicate
for matching schema urls. -
build
Returns an InstrumentSelector instance with the content of this builder.
-