Class HvlEventLogModel
java.lang.Object
tr.com.havelsan.javarch.log.common.model.HvlEventLogModel
- All Implemented Interfaces:
Serializable
A data transfer object which is used to filter query.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The constant APPLICATION_NAME_FIELD_NAME.static final String
The constant ATTRIBUTE_MAP_FIELD_NAME.static final String
The constant EVENT_DATE_FIELD_NAME.static final String
The constant EVENT_TYPE_FIELD_NAME.static final String
The constant MESSAGE_FIELD_NAME.static final String
The constant SOURCE_FIELD_NAME.static final String
The constant USERNAME_FIELD_NAME. -
Constructor Summary
ConstructorDescriptionInstantiates a new HvlEventLogModel.HvlEventLogModel
(@NotNull String indexName, @NotNull String applicationName, @NotNull String username, @NotNull String message, String source, Map<String, Object> attributeMap, @NotNull String eventType) Instantiates a new HvlEventLogModel.HvlEventLogModel
(@NotNull String indexName, @NotNull String applicationName, @NotNull String username, @NotNull String message, String source, Map<String, Object> attributeMap, @NotNull String eventType, @NotNull OffsetDateTime eventDate) Instantiates a new HvlEventLogModel.HvlEventLogModel
(@NotNull String applicationName, @NotNull String username, @NotNull String message, String source, @NotNull String eventType) Instantiates a new HvlEventLogModel.HvlEventLogModel
(@NotNull String applicationName, @NotNull String username, @NotNull String message, String source, @NotNull String eventType, @NotNull OffsetDateTime eventDate) Instantiates a new HvlEventLogModel.HvlEventLogModel
(@NotNull String applicationName, @NotNull String username, @NotNull String message, Map<String, Object> attributeMap, String source, @NotNull String eventType) Instantiates a new HvlEventLogModel.HvlEventLogModel
(@NotNull String applicationName, @NotNull String username, @NotNull String message, Map<String, Object> attributeMap, String source, @NotNull String eventType, @NotNull OffsetDateTime eventDate) Instantiates a new HvlEventLogModel. -
Method Summary
Modifier and TypeMethodDescriptionGets application name.Gets attribute map.Gets event date.Gets event type.Gets index name.Gets message.Gets source.Gets username.void
setApplicationName
(String applicationName) Sets application name.void
setAttributeMap
(Map<String, Object> attributeMap) Sets attribute map.void
setEventDate
(OffsetDateTime eventDate) Sets event date.void
setEventType
(String eventType) Sets event type.void
setIndexName
(String indexName) Sets index name.void
setMessage
(String message) Sets message.void
Sets source.void
setUsername
(String username) Sets username.toString()
-
Field Details
-
APPLICATION_NAME_FIELD_NAME
The constant APPLICATION_NAME_FIELD_NAME.- See Also:
-
USERNAME_FIELD_NAME
The constant USERNAME_FIELD_NAME.- See Also:
-
MESSAGE_FIELD_NAME
The constant MESSAGE_FIELD_NAME.- See Also:
-
SOURCE_FIELD_NAME
The constant SOURCE_FIELD_NAME.- See Also:
-
ATTRIBUTE_MAP_FIELD_NAME
The constant ATTRIBUTE_MAP_FIELD_NAME.- See Also:
-
EVENT_TYPE_FIELD_NAME
The constant EVENT_TYPE_FIELD_NAME.- See Also:
-
EVENT_DATE_FIELD_NAME
The constant EVENT_DATE_FIELD_NAME.- See Also:
-
-
Constructor Details
-
HvlEventLogModel
public HvlEventLogModel()Instantiates a new HvlEventLogModel. -
HvlEventLogModel
public HvlEventLogModel(@NotNull @NotNull String applicationName, @NotNull @NotNull String username, @NotNull @NotNull String message, String source, @NotNull @NotNull String eventType) Instantiates a new HvlEventLogModel.- Parameters:
applicationName
- the application nameusername
- the usernamemessage
- the messagesource
- the sourceeventType
- the event type
-
HvlEventLogModel
public HvlEventLogModel(@NotNull @NotNull String applicationName, @NotNull @NotNull String username, @NotNull @NotNull String message, Map<String, Object> attributeMap, String source, @NotNull @NotNull String eventType) Instantiates a new HvlEventLogModel.- Parameters:
applicationName
- the application nameusername
- the usernamemessage
- the messageattributeMap
- the attribute mapsource
- the sourceeventType
- the event type
-
HvlEventLogModel
public HvlEventLogModel(@NotNull @NotNull String indexName, @NotNull @NotNull String applicationName, @NotNull @NotNull String username, @NotNull @NotNull String message, String source, Map<String, Object> attributeMap, @NotNull @NotNull String eventType) Instantiates a new HvlEventLogModel.- Parameters:
indexName
- the index nameapplicationName
- the application nameusername
- the usernamemessage
- the messagesource
- the sourceattributeMap
- the attribute mapeventType
- the event type
-
HvlEventLogModel
public HvlEventLogModel(@NotNull @NotNull String applicationName, @NotNull @NotNull String username, @NotNull @NotNull String message, String source, @NotNull @NotNull String eventType, @NotNull @NotNull OffsetDateTime eventDate) Instantiates a new HvlEventLogModel.- Parameters:
applicationName
- the application nameusername
- the usernamemessage
- the messagesource
- the sourceeventType
- the event typeeventDate
- the event date
-
HvlEventLogModel
public HvlEventLogModel(@NotNull @NotNull String applicationName, @NotNull @NotNull String username, @NotNull @NotNull String message, Map<String, Object> attributeMap, String source, @NotNull @NotNull String eventType, @NotNull @NotNull OffsetDateTime eventDate) Instantiates a new HvlEventLogModel.- Parameters:
applicationName
- the application nameusername
- the usernamemessage
- the messageattributeMap
- the attribute mapsource
- the sourceeventType
- the event typeeventDate
- the event date
-
HvlEventLogModel
public HvlEventLogModel(@NotNull @NotNull String indexName, @NotNull @NotNull String applicationName, @NotNull @NotNull String username, @NotNull @NotNull String message, String source, Map<String, Object> attributeMap, @NotNull @NotNull String eventType, @NotNull @NotNull OffsetDateTime eventDate) Instantiates a new HvlEventLogModel.- Parameters:
indexName
- the index nameapplicationName
- the application nameusername
- the usernamemessage
- the messagesource
- the sourceattributeMap
- the attribute mapeventType
- the event typeeventDate
- the event date
-
-
Method Details
-
getIndexName
Gets index name.- Returns:
- the index name
-
setIndexName
Sets index name.- Parameters:
indexName
- the index name
-
getApplicationName
Gets application name.- Returns:
- the application name
-
setApplicationName
Sets application name.- Parameters:
applicationName
- the application name
-
getUsername
Gets username.- Returns:
- the username
-
setUsername
Sets username.- Parameters:
username
- the username
-
getMessage
Gets message.- Returns:
- the message
-
setMessage
Sets message.- Parameters:
message
- the message
-
getSource
Gets source.- Returns:
- the source
-
setSource
Sets source.- Parameters:
source
- the source
-
getAttributeMap
Gets attribute map.- Returns:
- the attribute map
-
setAttributeMap
Sets attribute map.- Parameters:
attributeMap
- the attribute map
-
getEventType
Gets event type.- Returns:
- the event type
-
setEventType
Sets event type.- Parameters:
eventType
- the event type
-
getEventDate
Gets event date.- Returns:
- the event date
-
setEventDate
Sets event date.- Parameters:
eventDate
- the event date
-
toString
-