Package org.graylog2.indexer.messages
Interface Indexable
- All Known Subinterfaces:
Event
- All Known Implementing Classes:
EventImpl
,Message
,RuleBuilderSimulatorResponse
public interface Indexable
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
Deprecated.Returns the id to address the document in Elasticsearch.org.joda.time.DateTime
long
getSize()
org.joda.time.DateTime
default boolean
Guides the failure handling framework when deciding whether this particular message should be accepted for the further failure processing.toElasticSearchObject
(com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.codahale.metrics.Meter invalidTimestampMeter)
-
Method Details
-
getId
Deprecated.Returns the id to address the document in Elasticsearch. Depending on the implementation this might return aUUID
orULID
This method should only be used where backwards compatibility is needed. Newer code should usegetMessageId()
instead. -
getMessageId
String getMessageId()Returns the id to address the document in Elasticsearch. The message id is represented as aULID
-
getSize
long getSize() -
getReceiveTime
org.joda.time.DateTime getReceiveTime() -
toElasticSearchObject
-
getTimestamp
org.joda.time.DateTime getTimestamp() -
supportsFailureHandling
default boolean supportsFailureHandling()Guides the failure handling framework when deciding whether this particular message should be accepted for the further failure processing. By default disabled for all messages.
-