Class MeterIdPrefix
java.lang.Object
com.linecorp.armeria.common.metric.MeterIdPrefix
A common prefix of
Meter.Id
which consists of Meter
name and Tag
s.-
Constructor Summary
ConstructorsConstructorDescriptionMeterIdPrefix
(String name) Creates a new instance with noTag
s.MeterIdPrefix
(String name, Iterable<io.micrometer.core.instrument.Tag> tags) Creates a new instance.MeterIdPrefix
(String name, String... tags) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns a newly-created instance whose name is concatenated by the specifiedsuffix
.appendWithTags
(String suffix, Iterable<io.micrometer.core.instrument.Tag> tags) Returns a newly-created instance whose name is concatenated by the specifiedsuffix
andtags
.appendWithTags
(String suffix, String... tags) Returns a newly-created instance whose name is concatenated by the specifiedsuffix
andtags
.boolean
int
hashCode()
name()
Returns the name.Returns the name concatenated by the specifiedsuffix
.List<io.micrometer.core.instrument.Tag>
tags()
Returns theTag
s.List<io.micrometer.core.instrument.Tag>
Returns theTag
s concatenated by the specifiedtags
.List<io.micrometer.core.instrument.Tag>
Returns theTag
s concatenated by the specifiedtags
.toString()
Returns a newly-created instance whose name is concatenated by the specifiedtags
.Returns a newly-created instance whose name is concatenated by the specifiedtags
.
-
Constructor Details
-
MeterIdPrefix
Creates a new instance with noTag
s.- Parameters:
name
- theMeter
name
-
MeterIdPrefix
Creates a new instance.- Parameters:
name
- theMeter
nametags
- the keys and values of theTag
s
-
MeterIdPrefix
Creates a new instance.- Parameters:
name
- theMeter
nametags
- theTag
s of theMeter
-
-
Method Details
-
name
Returns the name. -
name
Returns the name concatenated by the specifiedsuffix
. -
tags
Returns theTag
s. -
tags
Returns theTag
s concatenated by the specifiedtags
. -
tags
public List<io.micrometer.core.instrument.Tag> tags(Iterable<io.micrometer.core.instrument.Tag> tags) Returns theTag
s concatenated by the specifiedtags
. -
append
Returns a newly-created instance whose name is concatenated by the specifiedsuffix
. -
appendWithTags
Returns a newly-created instance whose name is concatenated by the specifiedsuffix
andtags
. -
appendWithTags
public MeterIdPrefix appendWithTags(String suffix, Iterable<io.micrometer.core.instrument.Tag> tags) Returns a newly-created instance whose name is concatenated by the specifiedsuffix
andtags
. -
withTags
Returns a newly-created instance whose name is concatenated by the specifiedtags
. -
withTags
Returns a newly-created instance whose name is concatenated by the specifiedtags
. -
hashCode
public int hashCode() -
equals
-
toString
-