- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
ScopeConfig.BuilderBase.ScopeConfigImpl
Configuration settings for a scope within the "metrics" config section.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forScopeConfig.static classScopeConfig.BuilderBase<BUILDER extends ScopeConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ScopeConfig> Fluent API builder base forScopeConfig. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScopeConfig.Builderbuilder()Create a new fluent API builder to customize configuration.static ScopeConfig.Builderbuilder(ScopeConfig instance) Create a new fluent API builder from an existing instance.static ScopeConfigcreate()Create a new instance with default values.static ScopeConfigCreate a new instance from configuration.booleanenabled()Whether the scope is enabled.exclude()Regular expression for meter names to exclude.include()Regular expression for meter names to include.booleanisMeterEnabled(String name) Indicates whether the specified meter is enabled according to the scope configuration.name()Name of the scope to which the configuration applies.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
isMeterEnabled
Indicates whether the specified meter is enabled according to the scope configuration.- Parameters:
name- meter name to check- Returns:
- whether the meter is enabled
-
name
String name()Name of the scope to which the configuration applies.- Returns:
- scope name
-
enabled
boolean enabled()Whether the scope is enabled.- Returns:
- if the scope is enabled
-
include
Regular expression for meter names to include.- Returns:
- include expression
-
exclude
Regular expression for meter names to exclude.- Returns:
- exclude expression
-