Class Metrics.Factory

  • Enclosing class:
    Metrics

    public static class Metrics.Factory
    extends java.lang.Object
    A factory to create new Metrics classes.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Metrics make​(java.lang.Object plugin, int serviceId)
      Creates a new Metrics class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • make

        public Metrics make​(java.lang.Object plugin,
                            int serviceId)
        Creates a new Metrics class.
        Parameters:
        plugin - The plugin instance.
        serviceId - The id of the service. It can be found at What is my plugin id?

        Not to be confused with Velocity's PluginDescription.getId() method!

        Returns:
        A Metrics instance that can be used to register custom charts.

        The return value can be ignored, when you do not want to register custom charts.