public class IdFactory
extends java.lang.Object
Constructor and Description |
---|
IdFactory(com.netflix.spectator.api.Registry reg,
java.lang.Class<?> k)
Create an helper for consistent naming in metrics.
|
IdFactory(com.netflix.spectator.api.Registry reg,
java.lang.Object o)
Create an helper for consistent naming in metrics.
|
IdFactory(java.lang.String component,
com.netflix.spectator.api.Registry reg,
java.lang.Class<?> k) |
Modifier and Type | Method and Description |
---|---|
com.netflix.spectator.api.Id |
name(java.lang.String suffix) |
com.netflix.spectator.api.Id |
name(java.lang.String suffix,
java.lang.String... tags) |
java.lang.String |
product()
Returns the jvm product name, usable as an origin for events
|
public IdFactory(com.netflix.spectator.api.Registry reg, java.lang.Object o)
reg
- spectator registryo
- the class of this object is used only if we cannot identify the
JVM with the net.bluemind.property.productpublic IdFactory(com.netflix.spectator.api.Registry reg, java.lang.Class<?> k)
reg
- spectator registryk
- used only if we cannot identify the JVM with the
net.bluemind.property.productpublic IdFactory(java.lang.String component, com.netflix.spectator.api.Registry reg, java.lang.Class<?> k)
component
- the metric name will be prefixed jvm-kind.componentreg
- spectator registryk
- used only if we cannot identify the JVM with the
net.bluemind.property.productCopyright © 2021. All Rights Reserved.