Enum ServerStatsFieldEnums.Id

java.lang.Object
java.lang.Enum<ServerStatsFieldEnums.Id>
io.opencensus.common.ServerStatsFieldEnums.Id
All Implemented Interfaces:
Serializable, Comparable<ServerStatsFieldEnums.Id>
Enclosing class:
ServerStatsFieldEnums

public static enum ServerStatsFieldEnums.Id extends Enum<ServerStatsFieldEnums.Id>
Available Ids for ServerStats attributes.
Since:
0.16
  • Enum Constant Details

    • SERVER_STATS_LB_LATENCY_ID

      public static final ServerStatsFieldEnums.Id SERVER_STATS_LB_LATENCY_ID
      Id for Latency observed at Load Balancer.
      Since:
      0.16
    • SERVER_STATS_SERVICE_LATENCY_ID

      public static final ServerStatsFieldEnums.Id SERVER_STATS_SERVICE_LATENCY_ID
      Id for Latency observed at Server.
      Since:
      0.16
    • SERVER_STATS_TRACE_OPTION_ID

      public static final ServerStatsFieldEnums.Id SERVER_STATS_TRACE_OPTION_ID
      Id for Trace options.
      Since:
      0.16
  • Field Details

  • Constructor Details

    • Id

      private Id(int value)
  • Method Details

    • values

      public static ServerStatsFieldEnums.Id[] 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 ServerStatsFieldEnums.Id 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
    • value

      public int value()
      Returns the numerical value of the ServerStatsFieldEnums.Id.
      Returns:
      the numerical value of the Id.
      Since:
      0.16
    • valueOf

      @Nullable public static ServerStatsFieldEnums.Id valueOf(int value)
      Returns the ServerStatsFieldEnums.Id representing the value value of the id.
      Parameters:
      value - integer value for which Id is being requested.
      Returns:
      the numerical value of the id. null if the id is not valid
      Since:
      0.16