Class IdFactory

java.lang.Object
net.bluemind.metrics.registry.IdFactory

public class IdFactory extends Object
  • Constructor Details Link icon

    • IdFactory Link icon

      public IdFactory(com.netflix.spectator.api.Registry reg, Object o)
      Create an helper for consistent naming in metrics. The produced metric names will be prefixed by JVM kind or by the given object's class name.
      Parameters:
      reg - spectator registry
      o - the class of this object is used only if we cannot identify the JVM with the net.bluemind.property.product
    • IdFactory Link icon

      public IdFactory(com.netflix.spectator.api.Registry reg, Class<?> k)
      Create an helper for consistent naming in metrics. The produced metric names will be prefixed by JVM kind or by the given class name.
      Parameters:
      reg - spectator registry
      k - used only if we cannot identify the JVM with the net.bluemind.property.product
    • IdFactory Link icon

      public IdFactory(String component, com.netflix.spectator.api.Registry reg, Class<?> k)
      Parameters:
      component - the metric name will be prefixed jvm-kind.component
      reg - spectator registry
      k - used only if we cannot identify the JVM with the net.bluemind.property.product
  • Method Details Link icon

    • product Link icon

      public String product()
      Returns the jvm product name, usable as an origin for events
      Returns:
    • name Link icon

      public com.netflix.spectator.api.Id name(String suffix)
    • name Link icon

      public com.netflix.spectator.api.Id name(String suffix, String... tags)