public class EventToIndex extends Object
Constructor and Description |
---|
EventToIndex() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
forwardEvent(Event event)
this handles the incoming event and deals with it as an alarm change event or a normal event
|
boolean |
getArchiveAlarmChangeEvents() |
boolean |
getArchiveAlarms() |
boolean |
getArchiveNewAlarmValues() |
boolean |
getArchiveOldAlarmValues() |
boolean |
getArchiveRawEvents() |
IndexNameFunction |
getIndexNameFunction() |
NodeCache |
getNodeCache() |
RestClientFactory |
getRestClientFactory() |
boolean |
isLogEventDescription() |
io.searchbox.core.Update |
populateAlarmIndexBodyFromAlarmChangeEvent(Event event,
String rootIndexName,
String indexType)
An alarm change event will have a payload corresponding to the json representation of the
Alarms table row for this alarm id.
|
io.searchbox.core.Index |
populateEventIndexBodyFromEvent(Event event,
String rootIndexName,
String indexType)
utility method to populate a Map with the most import event attributes
|
void |
setArchiveAlarmChangeEvents(boolean archiveAlarmChangeEvents) |
void |
setArchiveAlarms(boolean archiveAlarms) |
void |
setArchiveNewAlarmValues(boolean archiveNewAlarmValues) |
void |
setArchiveOldAlarmValues(boolean archiveOldAlarmValues) |
void |
setArchiveRawEvents(boolean archiveRawEvents) |
void |
setIndexNameFunction(IndexNameFunction indexNameFunction) |
void |
setLogEventDescription(boolean logEventDescription) |
void |
setNodeCache(NodeCache cache) |
void |
setRestClientFactory(RestClientFactory restClientFactory) |
public static final String ALARM_INDEX_NAME
public static final String ALARM_EVENT_INDEX_NAME
public static final String EVENT_INDEX_NAME
public static final String ALARM_INDEX_TYPE
public static final String EVENT_INDEX_TYPE
public static final String ALARM_NOTIFICATION_UEI_STEM
public static final String ALARM_DELETED_EVENT
public static final String ALARM_CREATED_EVENT
public static final String ALARM_SEVERITY_CHANGED_EVENT
public static final String ALARM_CLEARED_EVENT
public static final String ALARM_ACKNOWLEDGED_EVENT
public static final String ALARM_UNACKNOWLEDGED_EVENT
public static final String ALARM_SUPPRESSED_EVENT
public static final String ALARM_UNSUPPRESSED_EVENT
public static final String ALARM_TROUBLETICKET_STATE_CHANGE_EVENT
public static final String ALARM_CHANGED_EVENT
public static final String OLD_ALARM_VALUES
public static final String NEW_ALARM_VALUES
public static final String NODE_LABEL
public static final String INITIAL_SEVERITY
public static final String INITIAL_SEVERITY_TEXT
public static final String SEVERITY_TEXT
public static final String SEVERITY
public static final String EVENT_PARAMS
public static final String ALARM_ACK_TIME
public static final String ALARM_ACK_USER
public static final String ALARM_CLEAR_TIME
public static final String ALARM_DELETED_TIME
public static final String STICKY_MEMO_EVENT
public static final String JOURNAL_MEMO_EVENT
public static final String MEMO_VALUES_PARAM
public static final String MEMO_ALARMID_PARAM
public static final String MEMO_BODY_PARAM
public static final String MEMO_AUTHOR_PARAM
public static final String MEMO_REDUCTIONKEY_PARAM
public IndexNameFunction getIndexNameFunction()
public void setIndexNameFunction(IndexNameFunction indexNameFunction)
public boolean isLogEventDescription()
public void setLogEventDescription(boolean logEventDescription)
public NodeCache getNodeCache()
public void setNodeCache(NodeCache cache)
public RestClientFactory getRestClientFactory()
public void setRestClientFactory(RestClientFactory restClientFactory)
public boolean getArchiveAlarms()
public void setArchiveAlarms(boolean archiveAlarms)
public boolean getArchiveAlarmChangeEvents()
public void setArchiveAlarmChangeEvents(boolean archiveAlarmChangeEvents)
public boolean getArchiveRawEvents()
public void setArchiveRawEvents(boolean archiveRawEvents)
public boolean getArchiveOldAlarmValues()
public void setArchiveOldAlarmValues(boolean archiveOldAlarmValues)
public boolean getArchiveNewAlarmValues()
public void setArchiveNewAlarmValues(boolean archiveNewAlarmValues)
public void destroy()
public void forwardEvent(Event event)
event
- public io.searchbox.core.Index populateEventIndexBodyFromEvent(Event event, String rootIndexName, String indexType)
body
- the mapevent
- the event objectpublic io.searchbox.core.Update populateAlarmIndexBodyFromAlarmChangeEvent(Event event, String rootIndexName, String indexType)
body
- event
- Copyright © 2018. All rights reserved.