Enum MetricsTag

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<MetricsTag>

    public enum MetricsTag
    extends java.lang.Enum<MetricsTag>
    Patterned by https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-metrics.html#production-ready-metrics-http-clients
    • Enum Constant Detail

      • FEIGN_CLIENT_METHOD

        public static final MetricsTag FEIGN_CLIENT_METHOD
      • URI_TEMPLATE

        public static final MetricsTag URI_TEMPLATE
      • HTTP_METHOD

        public static final MetricsTag HTTP_METHOD
      • EXCEPTION

        public static final MetricsTag EXCEPTION
    • Method Detail

      • values

        public static MetricsTag[] 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 (MetricsTag c : MetricsTag.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MetricsTag valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getTagName

        public java.lang.String getTagName()
      • getMandatory

        public static java.util.Set<MetricsTag> getMandatory()