Enum Class MeterRegistryKey

java.lang.Object
java.lang.Enum<MeterRegistryKey>
tech.illuin.pipeline.metering.MeterRegistryKey
All Implemented Interfaces:
Serializable, Comparable<MeterRegistryKey>, Constable

public enum MeterRegistryKey extends Enum<MeterRegistryKey>
Author:
Pierre Lecerf ([email protected])
  • Enum Constant Details

    • PIPELINE_RUN_KEY

      public static final MeterRegistryKey PIPELINE_RUN_KEY
    • PIPELINE_RUN_TOTAL_KEY

      public static final MeterRegistryKey PIPELINE_RUN_TOTAL_KEY
    • PIPELINE_RUN_SUCCESS_KEY

      public static final MeterRegistryKey PIPELINE_RUN_SUCCESS_KEY
    • PIPELINE_RUN_FAILURE_KEY

      public static final MeterRegistryKey PIPELINE_RUN_FAILURE_KEY
    • PIPELINE_RUN_ERROR_TOTAL_KEY

      public static final MeterRegistryKey PIPELINE_RUN_ERROR_TOTAL_KEY
    • PIPELINE_INITIALIZATION_RUN_KEY

      public static final MeterRegistryKey PIPELINE_INITIALIZATION_RUN_KEY
    • PIPELINE_INITIALIZATION_RUN_TOTAL_KEY

      public static final MeterRegistryKey PIPELINE_INITIALIZATION_RUN_TOTAL_KEY
    • PIPELINE_INITIALIZATION_RUN_SUCCESS_KEY

      public static final MeterRegistryKey PIPELINE_INITIALIZATION_RUN_SUCCESS_KEY
    • PIPELINE_INITIALIZATION_RUN_FAILURE_KEY

      public static final MeterRegistryKey PIPELINE_INITIALIZATION_RUN_FAILURE_KEY
    • PIPELINE_INITIALIZATION_ERROR_TOTAL_KEY

      public static final MeterRegistryKey PIPELINE_INITIALIZATION_ERROR_TOTAL_KEY
    • PIPELINE_STEP_RUN_KEY

      public static final MeterRegistryKey PIPELINE_STEP_RUN_KEY
    • PIPELINE_STEP_RUN_TOTAL_KEY

      public static final MeterRegistryKey PIPELINE_STEP_RUN_TOTAL_KEY
    • PIPELINE_STEP_RUN_SUCCESS_KEY

      public static final MeterRegistryKey PIPELINE_STEP_RUN_SUCCESS_KEY
    • PIPELINE_STEP_RUN_FAILURE_KEY

      public static final MeterRegistryKey PIPELINE_STEP_RUN_FAILURE_KEY
    • PIPELINE_STEP_RESULT_TOTAL_KEY

      public static final MeterRegistryKey PIPELINE_STEP_RESULT_TOTAL_KEY
    • PIPELINE_STEP_ERROR_TOTAL_KEY

      public static final MeterRegistryKey PIPELINE_STEP_ERROR_TOTAL_KEY
    • PIPELINE_SINK_RUN_KEY

      public static final MeterRegistryKey PIPELINE_SINK_RUN_KEY
    • PIPELINE_SINK_RUN_TOTAL_KEY

      public static final MeterRegistryKey PIPELINE_SINK_RUN_TOTAL_KEY
    • PIPELINE_SINK_RUN_SUCCESS_KEY

      public static final MeterRegistryKey PIPELINE_SINK_RUN_SUCCESS_KEY
    • PIPELINE_SINK_RUN_FAILURE_KEY

      public static final MeterRegistryKey PIPELINE_SINK_RUN_FAILURE_KEY
    • PIPELINE_SINK_ERROR_TOTAL_KEY

      public static final MeterRegistryKey PIPELINE_SINK_ERROR_TOTAL_KEY
  • Method Details

    • values

      public static MeterRegistryKey[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MeterRegistryKey valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • id

      public String id()
    • fill

      public static List<io.micrometer.core.instrument.Tag> fill(MeterRegistryKey key, Collection<io.micrometer.core.instrument.Tag> tags)
      Creates a complete list of tags out of a provided tag list and a registry of past declared labels. This circumvents an issue with the prometheus client as described here:
      Parameters:
      key - the metric key to which tags will be applied
      tags - a list of tags to be applied to a metric
      Returns:
      the filled out tag list