Enum Label

java.lang.Object
java.lang.Enum<Label>
io.vertx.micrometer.Label
All Implemented Interfaces:
Serializable, Comparable<Label>

public enum Label extends Enum<Label>
List of labels used in various Vert.x metrics. Labels that may not have bounded values are disabled by default.
Author:
Joel Takvorian
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Class name.
    Client name, such as Net and HTTP Clients
    Event bus address
    Event bus failure name from a ReplyFailure object
    Event bus side of the metric, it can be either "local" or "remote"
    HTTP response code (used in http domain)
    Method (GET, POST, PUT, etc.) of an HTTP requests (used in http domain)
    Path of the URI for client or server requests (used in http domain)
    Route as provided by routing modules to the http requests
    HTTP version: "HTTP/1.0","HTTP/1.1","HTTP/2" or "HTTP/3"
    Local address in client-host or host-client connections (used in net, http and datagram domains)
    Client namespace
    Pool name (used in pools domain)
    Pool type, such as "worker" or "datasource" (used in pools domain)
    Remote address in client-host or host-client connections (used in net and http domains)
    Server name, such as HTTP Servers
  • Method Summary

    Modifier and Type
    Method
    Description
     
    static Label
    Returns the enum constant of this type with the specified name.
    static Label[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • LOCAL

      public static final Label LOCAL
      Local address in client-host or host-client connections (used in net, http and datagram domains)
    • REMOTE

      public static final Label REMOTE
      Remote address in client-host or host-client connections (used in net and http domains)
    • HTTP_PATH

      public static final Label HTTP_PATH
      Path of the URI for client or server requests (used in http domain)
    • HTTP_ROUTE

      public static final Label HTTP_ROUTE
      Route as provided by routing modules to the http requests
    • HTTP_METHOD

      public static final Label HTTP_METHOD
      Method (GET, POST, PUT, etc.) of an HTTP requests (used in http domain)
    • HTTP_CODE

      public static final Label HTTP_CODE
      HTTP response code (used in http domain)
    • HTTP_VERSION

      public static final Label HTTP_VERSION
      HTTP version: "HTTP/1.0","HTTP/1.1","HTTP/2" or "HTTP/3"
    • CLASS_NAME

      public static final Label CLASS_NAME
      Class name. When used in error counters (in net, http, datagram and eventbus domains) it relates to an exception that occurred. When used in verticle domain, it relates to the verticle class name.
    • EB_ADDRESS

      public static final Label EB_ADDRESS
      Event bus address
    • EB_SIDE

      public static final Label EB_SIDE
      Event bus side of the metric, it can be either "local" or "remote"
    • EB_FAILURE

      public static final Label EB_FAILURE
      Event bus failure name from a ReplyFailure object
    • POOL_TYPE

      public static final Label POOL_TYPE
      Pool type, such as "worker" or "datasource" (used in pools domain)
    • POOL_NAME

      public static final Label POOL_NAME
      Pool name (used in pools domain)
    • CLIENT_NAME

      public static final Label CLIENT_NAME
      Client name, such as Net and HTTP Clients
      See Also:
    • SERVER_NAME

      public static final Label SERVER_NAME
      Server name, such as HTTP Servers
      See Also:
      • invalid reference
        io.vertx.core.http.HttpServerConfig#setMetricsName(String)
    • NAMESPACE

      public static final Label NAMESPACE
      Client namespace
  • Method Details

    • values

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

      public static Label 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Label>