com.cloudera.api.model
Enum ApiEventSeverity

java.lang.Object
  extended by java.lang.Enum<ApiEventSeverity>
      extended by com.cloudera.api.model.ApiEventSeverity
All Implemented Interfaces:
Serializable, Comparable<ApiEventSeverity>

public enum ApiEventSeverity
extends Enum<ApiEventSeverity>


Enum Constant Summary
CRITICAL
          This is the most severe event and signifies an important error that requires immediate attention.
IMPORTANT
          This event severity should be seen as concerning and may require attention.
INFORMATIONAL
          This event provides information about a state change.
UNKNOWN
          The severity of this event is not known
 
Method Summary
static ApiEventSeverity fromString(String severity)
           
static ApiEventSeverity valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ApiEventSeverity[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNKNOWN

public static final ApiEventSeverity UNKNOWN
The severity of this event is not known


INFORMATIONAL

public static final ApiEventSeverity INFORMATIONAL
This event provides information about a state change.


IMPORTANT

public static final ApiEventSeverity IMPORTANT
This event severity should be seen as concerning and may require attention.


CRITICAL

public static final ApiEventSeverity CRITICAL
This is the most severe event and signifies an important error that requires immediate attention.

Method Detail

values

public static ApiEventSeverity[] 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 (ApiEventSeverity c : ApiEventSeverity.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ApiEventSeverity 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

fromString

public static ApiEventSeverity fromString(String severity)
Parameters:
severity - String value of a severity.
Returns:
The severity enum. Note that UNKNOWN is not valid.


Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.