Enum DOMIStatisticsHolder

    • Enum Constant Detail

    • Method Detail

      • values

        public static DOMIStatisticsHolder[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (DOMIStatisticsHolder c : DOMIStatisticsHolder.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DOMIStatisticsHolder valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • createMetricForRegistry

        public io.micrometer.core.instrument.Meter createMetricForRegistry​(String key,
                                                                           List<io.micrometer.core.instrument.Tag> metricsTags,
                                                                           io.micrometer.core.instrument.Meter.Type type,
                                                                           io.micrometer.core.instrument.MeterRegistry registry)
        Description copied from interface: DOMIStatistics
        Creates a counter or timer for a specific registry, currently only Prometheus.
        Specified by:
        createMetricForRegistry in interface DOMIStatistics
        Parameters:
        key - to create metric with
        metricsTags - to create metric with
        type - of Meter to create. Only Timer and Counter are currently supported
        registry - registry into which to create the metric
        Returns:
        Meter created
      • getOrCreateCounter

        public io.micrometer.core.instrument.Counter getOrCreateCounter​(String key,
                                                                        List<io.micrometer.core.instrument.Tag> metricsTags)
        Description copied from interface: DOMIStatistics
        Gets or creates a counter. Use this if tags require minimal computation to pass
        Specified by:
        getOrCreateCounter in interface DOMIStatistics
        Parameters:
        key - to create metric with
        metricsTags - to create metric with
        Returns:
        Meter(Counter) created
      • getOrCreateTimer

        public io.micrometer.core.instrument.Timer getOrCreateTimer​(String key,
                                                                    List<io.micrometer.core.instrument.Tag> metricsTags)
        Description copied from interface: DOMIStatistics
        Gets or creates a counter. Use this if tags require minimal computation to pass
        Specified by:
        getOrCreateTimer in interface DOMIStatistics
        Parameters:
        key - to create metric with
        metricsTags - to create metric with
        Returns:
        Meter(Timer) created
      • incrementCounter

        public void incrementCounter​(String key,
                                     List<io.micrometer.core.instrument.Tag> metricsTags)
        Parameters:
        key - for the metric
        metricsTags - list of tags