Enum Class OMRSAuditLogRecordSeverity
java.lang.Object
java.lang.Enum<OMRSAuditLogRecordSeverity>
org.odpi.openmetadata.repositoryservices.auditlog.OMRSAuditLogRecordSeverity
- All Implemented Interfaces:
Serializable
,Comparable<OMRSAuditLogRecordSeverity>
,Constable
,AuditLogRecordSeverity
public enum OMRSAuditLogRecordSeverity
extends Enum<OMRSAuditLogRecordSeverity>
implements AuditLogRecordSeverity
OMRSAuditLogRecordSeverity defines the different levels of severity for log records stored in the OMRSAuditLogRecord.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturn the default description of this enum.getName()
Return the name of this enum.int
Return the code for this enum.static List<OMRSAuditLogReportSeverity>
Return the list of severities defined for the audit log records in this server.toString()
toString() JSON-stylestatic OMRSAuditLogRecordSeverity
Returns the enum constant of this class with the specified name.static OMRSAuditLogRecordSeverity[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
-
INFO
-
EVENT
-
DECISION
-
ACTION
-
ERROR
-
EXCEPTION
-
SECURITY
-
STARTUP
-
SHUTDOWN
-
ASSET
-
TYPES
-
COHORT
-
TRACE
-
PERFMON
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getOrdinal
public int getOrdinal()Return the code for this enum.- Specified by:
getOrdinal
in interfaceAuditLogRecordSeverity
- Returns:
- int numeric for this enum
-
getName
Return the name of this enum.- Specified by:
getName
in interfaceAuditLogRecordSeverity
- Returns:
- String name
-
getDescription
Return the default description of this enum. This description is in English. Natural language translations can be created using a Resource Bundle indexed by the severity code. This description is a fall back when the resource bundle is not available.- Specified by:
getDescription
in interfaceAuditLogRecordSeverity
- Returns:
- String default description
-
toString
toString() JSON-style- Overrides:
toString
in classEnum<OMRSAuditLogRecordSeverity>
- Returns:
- string description
-
getSeverityList
Return the list of severities defined for the audit log records in this server. The Enum needs to be turned into a bean.- Returns:
- list of severity values
-