Package com.splunk.logging
Interface EventBodySerializer
-
- All Known Implementing Classes:
PlainTextEventBodySerializer
public interface EventBodySerializer
Define the interface to allow users to define their own event body serializer for HTTP event adapter: Simply create a class implementing this interface, and add the full class name as a property (`eventBodySerializer`) to the adapter.- See Also:
PlainTextEventBodySerializer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default double
getEventTime(HttpEventCollectorEventInfo eventInfo)
Timestamp to be sent with custom message.String
serializeEventBody(HttpEventCollectorEventInfo eventInfo, Object formattedMessage)
-
-
-
Method Detail
-
serializeEventBody
String serializeEventBody(HttpEventCollectorEventInfo eventInfo, Object formattedMessage)
-
getEventTime
default double getEventTime(HttpEventCollectorEventInfo eventInfo)
Timestamp to be sent with custom message.- Returns:
- 0 if do not want to send timestamp with message, otherwise number of seconds, between the current time and midnight, January 1, 1970 UTC.
-
-