Enum Class MetricsTypeEnum

java.lang.Object
java.lang.Enum<MetricsTypeEnum>
io.github.tkasozi.MetricsTypeEnum
All Implemented Interfaces:
Serializable, Comparable<MetricsTypeEnum>, Constable

public enum MetricsTypeEnum extends Enum<MetricsTypeEnum>
Types of events supported.
  • Enum Constant Details

    • SUCCESSFUL_AUTHORIZATION_EVENT

      public static final MetricsTypeEnum SUCCESSFUL_AUTHORIZATION_EVENT
      This event is used to log a successful authorization event.
    • UNSUCCESSFUL_AUTHORIZATION_EVENT

      public static final MetricsTypeEnum UNSUCCESSFUL_AUTHORIZATION_EVENT
      This event is used to log unauthorized user access event.
    • SUCCESSFUL_RESULT_EVENT

      public static final MetricsTypeEnum SUCCESSFUL_RESULT_EVENT
      Use this event to signal a successful event happened.
    • UNSUCCESSFUL_RESULT_EVENT

      public static final MetricsTypeEnum UNSUCCESSFUL_RESULT_EVENT
      This event is used to log unsuccessful request event.
    • PERFORMANCE_EVENT

      public static final MetricsTypeEnum PERFORMANCE_EVENT
      This event is used to log performance event.
    • EXCEPTION_EVENT

      public static final MetricsTypeEnum EXCEPTION_EVENT
      This event is used to log exception event.
    • UTILITY_LOGGING_EVENT

      public static final MetricsTypeEnum UTILITY_LOGGING_EVENT
      This event is used for internal logging event.
    • CPU_UTILIZATION

      public static final MetricsTypeEnum CPU_UTILIZATION
      This event is used to log cpu utilization event.
    • MEMORY_UTILIZATION

      public static final MetricsTypeEnum MEMORY_UTILIZATION
      This event is used to log memory utilization event.
  • Method Details

    • values

      public static MetricsTypeEnum[] 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 MetricsTypeEnum 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
    • getValue

      public String getValue()