Class InstrumentSelectorBuilder


  • public final class InstrumentSelectorBuilder
    extends java.lang.Object
    Builder for InstrumentSelector.
    Since:
    1.14.0
    • Field Detail

      • instrumentName

        @Nullable
        private java.lang.String instrumentName
      • instrumentUnit

        @Nullable
        private java.lang.String instrumentUnit
      • meterName

        @Nullable
        private java.lang.String meterName
      • meterVersion

        @Nullable
        private java.lang.String meterVersion
      • meterSchemaUrl

        @Nullable
        private java.lang.String meterSchemaUrl
    • Constructor Detail

      • InstrumentSelectorBuilder

        InstrumentSelectorBuilder()
    • Method Detail

      • setName

        public InstrumentSelectorBuilder setName​(java.lang.String name)
        Select instruments with the given name.

        Instrument name may contain the wildcard characters * and ? with the following matching criteria:

        • * matches 0 or more instances of any character
        • ? matches exactly one instance of any character
      • setUnit

        public InstrumentSelectorBuilder setUnit​(java.lang.String unit)
        Select instruments with the given unit.
        Since:
        1.24.0
      • setMeterName

        public InstrumentSelectorBuilder setMeterName​(java.lang.String meterName)
        Select instruments associated with the given meterName.
      • setMeterVersion

        public InstrumentSelectorBuilder setMeterVersion​(java.lang.String meterVersion)
        Select instruments associated with the given meterVersion.
      • setMeterSchemaUrl

        public InstrumentSelectorBuilder setMeterSchemaUrl​(java.lang.String meterSchemaUrl)
        Select instruments associated with the given meterSchemaUrl.