Enum KibanaLogFieldNames
- java.lang.Object
-
- java.lang.Enum<KibanaLogFieldNames>
-
- org.hawaiiframework.logging.model.KibanaLogFieldNames
-
- All Implemented Interfaces:
Serializable
,Comparable<KibanaLogFieldNames>
,KibanaLogField
public enum KibanaLogFieldNames extends Enum<KibanaLogFieldNames> implements KibanaLogField
This enum represents keys for data that is stored in the logging MDC.- Since:
- 2.0.0
- Author:
- Rutger Lubbers, Paul Klos
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KibanaLogFieldNames
fromKey(String key)
Lookup method that does not throw an exception if the specified key is not found.String
getLogName()
Get the name with which this field will appear in the log.static KibanaLogFieldNames
valueOf(String name)
Returns the enum constant of this type with the specified name.static KibanaLogFieldNames[]
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 interface org.hawaiiframework.logging.model.KibanaLogField
matches
-
-
-
-
Enum Constant Detail
-
SESSION_ID
public static final KibanaLogFieldNames SESSION_ID
-
HOST_NAME
public static final KibanaLogFieldNames HOST_NAME
-
SOFTWARE_VERSION
public static final KibanaLogFieldNames SOFTWARE_VERSION
-
REQUEST_ID
public static final KibanaLogFieldNames REQUEST_ID
-
REQUEST_DURATION
public static final KibanaLogFieldNames REQUEST_DURATION
-
BUSINESS_TX_ID
public static final KibanaLogFieldNames BUSINESS_TX_ID
-
TX_ID
public static final KibanaLogFieldNames TX_ID
-
TX_TYPE
public static final KibanaLogFieldNames TX_TYPE
-
TX_REQUEST_IP
public static final KibanaLogFieldNames TX_REQUEST_IP
-
TX_REQUEST_METHOD
public static final KibanaLogFieldNames TX_REQUEST_METHOD
-
TX_REQUEST_URI
public static final KibanaLogFieldNames TX_REQUEST_URI
-
TX_REQUEST_SIZE
public static final KibanaLogFieldNames TX_REQUEST_SIZE
-
TX_REQUEST_HEADERS
public static final KibanaLogFieldNames TX_REQUEST_HEADERS
-
TX_REQUEST_BODY
public static final KibanaLogFieldNames TX_REQUEST_BODY
-
TX_RESPONSE_SIZE
public static final KibanaLogFieldNames TX_RESPONSE_SIZE
-
TX_RESPONSE_HEADERS
public static final KibanaLogFieldNames TX_RESPONSE_HEADERS
-
TX_RESPONSE_BODY
public static final KibanaLogFieldNames TX_RESPONSE_BODY
-
TX_DURATION
public static final KibanaLogFieldNames TX_DURATION
-
TX_STATUS
public static final KibanaLogFieldNames TX_STATUS
-
CALL_ID
public static final KibanaLogFieldNames CALL_ID
-
CALL_TYPE
public static final KibanaLogFieldNames CALL_TYPE
-
CALL_REQUEST_METHOD
public static final KibanaLogFieldNames CALL_REQUEST_METHOD
-
CALL_REQUEST_URI
public static final KibanaLogFieldNames CALL_REQUEST_URI
-
CALL_REQUEST_SIZE
public static final KibanaLogFieldNames CALL_REQUEST_SIZE
-
CALL_REQUEST_HEADERS
public static final KibanaLogFieldNames CALL_REQUEST_HEADERS
-
CALL_REQUEST_BODY
public static final KibanaLogFieldNames CALL_REQUEST_BODY
-
CALL_RESPONSE_SIZE
public static final KibanaLogFieldNames CALL_RESPONSE_SIZE
-
CALL_RESPONSE_HEADERS
public static final KibanaLogFieldNames CALL_RESPONSE_HEADERS
-
CALL_RESPONSE_BODY
public static final KibanaLogFieldNames CALL_RESPONSE_BODY
-
CALL_DURATION
public static final KibanaLogFieldNames CALL_DURATION
-
CALL_STATUS
public static final KibanaLogFieldNames CALL_STATUS
-
TASK_ID
public static final KibanaLogFieldNames TASK_ID
-
USER_NAME
public static final KibanaLogFieldNames USER_NAME
-
LOG_TYPE
public static final KibanaLogFieldNames LOG_TYPE
-
THREAD
public static final KibanaLogFieldNames THREAD
-
LEVEL
public static final KibanaLogFieldNames LEVEL
-
TIMESTAMP
public static final KibanaLogFieldNames TIMESTAMP
-
LOG_LOCATION
public static final KibanaLogFieldNames LOG_LOCATION
-
MESSAGE
public static final KibanaLogFieldNames MESSAGE
-
-
Method Detail
-
values
public static KibanaLogFieldNames[] 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 (KibanaLogFieldNames c : KibanaLogFieldNames.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KibanaLogFieldNames 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 nameNullPointerException
- if the argument is null
-
getLogName
public String getLogName()
Description copied from interface:KibanaLogField
Get the name with which this field will appear in the log.- Specified by:
getLogName
in interfaceKibanaLogField
- Returns:
- the kibana log's field name.
-
fromKey
public static KibanaLogFieldNames fromKey(String key)
Lookup method that does not throw an exception if the specified key is not found.- Parameters:
key
- the key to look for- Returns:
- the MdcKey with the given name, or null
-
-