Package org.graylog.events.event
Class EventImpl
java.lang.Object
org.graylog.events.event.EventImpl
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddSourceStream(String sourceStream) voidbooleanbooleangetAlert()org.joda.time.DateTimegetId()Returns the id to address the document in Elasticsearch.com.google.common.collect.ImmutableList<String>Returns the id to address the document in Elasticsearch.longorg.joda.time.DateTimeorg.joda.time.DateTimelonggetSize()com.google.common.collect.ImmutableSet<String>com.google.common.collect.ImmutableSet<String>org.joda.time.DateTimeorg.joda.time.DateTimeorg.joda.time.DateTimebooleaninthashCode()voidremoveSourceStream(String sourceStream) voidremoveStream(String stream) voidsetAlert(boolean alert) voidsetEventTimestamp(org.joda.time.DateTime eventTimestamp) voidsetField(String name, FieldValue value) voidvoidsetGroupByFields(Map<String, String> fields) voidsetKeyTuple(List<String> keyTuple) voidsetMessage(String message) voidsetOriginContext(String originContext) voidsetPriority(long priority) voidsetProcessingTimestamp(org.joda.time.DateTime processingTimestamp) voidsetReplayInfo(EventReplayInfo replayInfo) voidvoidsetTimerangeEnd(org.joda.time.DateTime timerangeEnd) voidsetTimerangeStart(org.joda.time.DateTime timerangeStart) toDto()toElasticSearchObject(com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.codahale.metrics.Meter invalidTimestampMeter) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.graylog2.indexer.messages.Indexable
supportsFailureHandling
-
Method Details
-
getId
Description copied from interface:IndexableReturns the id to address the document in Elasticsearch. Depending on the implementation this might return aUUIDorULIDThis method should only be used where backwards compatibility is needed. Newer code should useIndexable.getMessageId()instead. -
getMessageId
Description copied from interface:IndexableReturns the id to address the document in Elasticsearch. The message id is represented as aULID- Specified by:
getMessageIdin interfaceIndexable
-
getEventDefinitionType
- Specified by:
getEventDefinitionTypein interfaceEvent
-
getEventDefinitionId
- Specified by:
getEventDefinitionIdin interfaceEvent
-
getOriginContext
- Specified by:
getOriginContextin interfaceEvent
-
setOriginContext
- Specified by:
setOriginContextin interfaceEvent
-
getEventTimestamp
public org.joda.time.DateTime getEventTimestamp()- Specified by:
getEventTimestampin interfaceEvent
-
getReceiveTime
public org.joda.time.DateTime getReceiveTime()- Specified by:
getReceiveTimein interfaceIndexable
-
getTimestamp
public org.joda.time.DateTime getTimestamp()- Specified by:
getTimestampin interfaceIndexable
-
setEventTimestamp
public void setEventTimestamp(org.joda.time.DateTime eventTimestamp) - Specified by:
setEventTimestampin interfaceEvent
-
getProcessingTimestamp
public org.joda.time.DateTime getProcessingTimestamp()- Specified by:
getProcessingTimestampin interfaceEvent
-
setProcessingTimestamp
public void setProcessingTimestamp(org.joda.time.DateTime processingTimestamp) - Specified by:
setProcessingTimestampin interfaceEvent
-
getTimerangeStart
public org.joda.time.DateTime getTimerangeStart()- Specified by:
getTimerangeStartin interfaceEvent
-
setTimerangeStart
public void setTimerangeStart(org.joda.time.DateTime timerangeStart) - Specified by:
setTimerangeStartin interfaceEvent
-
getTimerangeEnd
public org.joda.time.DateTime getTimerangeEnd()- Specified by:
getTimerangeEndin interfaceEvent
-
setTimerangeEnd
public void setTimerangeEnd(org.joda.time.DateTime timerangeEnd) - Specified by:
setTimerangeEndin interfaceEvent
-
getStreams
- Specified by:
getStreamsin interfaceEvent
-
addStream
-
removeStream
- Specified by:
removeStreamin interfaceEvent
-
getSourceStreams
- Specified by:
getSourceStreamsin interfaceEvent
-
addSourceStream
- Specified by:
addSourceStreamin interfaceEvent
-
removeSourceStream
- Specified by:
removeSourceStreamin interfaceEvent
-
getMessage
- Specified by:
getMessagein interfaceEvent
-
setMessage
- Specified by:
setMessagein interfaceEvent
-
getSource
-
setSource
-
getKeyTuple
- Specified by:
getKeyTuplein interfaceEvent
-
setKeyTuple
- Specified by:
setKeyTuplein interfaceEvent
-
getPriority
public long getPriority()- Specified by:
getPriorityin interfaceEvent
-
setPriority
public void setPriority(long priority) - Specified by:
setPriorityin interfaceEvent
-
getAlert
public boolean getAlert() -
setAlert
public void setAlert(boolean alert) -
getField
-
setField
-
setFields
-
hasField
-
getGroupByFields
- Specified by:
getGroupByFieldsin interfaceEvent
-
setGroupByFields
- Specified by:
setGroupByFieldsin interfaceEvent
-
getReplayInfo
- Specified by:
getReplayInfoin interfaceEvent
-
setReplayInfo
- Specified by:
setReplayInfoin interfaceEvent
-
toDto
-
toElasticSearchObject
public Map<String,Object> toElasticSearchObject(com.fasterxml.jackson.databind.ObjectMapper objectMapper, @Nonnull com.codahale.metrics.Meter invalidTimestampMeter) - Specified by:
toElasticSearchObjectin interfaceIndexable
-
equals
-
hashCode
public int hashCode() -
toString
-
getSize
public long getSize()
-