Class HttpEventCollectorEventInfo


  • public class HttpEventCollectorEventInfo
    extends Object
    Container for Splunk http event collector event data
    • Constructor Detail

      • HttpEventCollectorEventInfo

        public HttpEventCollectorEventInfo​(long timeMsSinceEpoch,
                                           String severity,
                                           String message,
                                           String logger_name,
                                           String thread_name,
                                           Map<String,​String> properties,
                                           String exception_message,
                                           Serializable marker)
        Create a new HttpEventCollectorEventInfo container
        Parameters:
        timeMsSinceEpoch - in milliseconds since "unix epoch"
        severity - of event
        message - is an event content
        logger_name - name of the logger
        thread_name - name of the thread
        properties - additional properties for this event
        exception_message - text of an exception to log
        marker - event marker
    • Method Detail

      • getTime

        public double getTime()
        Returns:
        event timestamp in epoch format
      • getSeverity

        public final String getSeverity()
        Returns:
        event severity
      • getMessage

        public final String getMessage()
        Returns:
        event message
      • getLoggerName

        public final String getLoggerName()
        Returns:
        event logger name
      • getThreadName

        public final String getThreadName()
        Returns:
        event thread name
      • getProperties

        public Map<String,​String> getProperties()
        Returns:
        event MDC properties
      • getExceptionMessage

        public final String getExceptionMessage()
        Returns:
        event's exception message
      • getMarker

        public Serializable getMarker()
        Returns:
        event marker