Class DefaultRequestLogEvent

java.lang.Object
org.apache.druid.server.log.DefaultRequestLogEvent
All Implemented Interfaces:
Event, RequestLogEvent

public final class DefaultRequestLogEvent extends Object implements RequestLogEvent
The default implementation of RequestLogEvent. This class is annotated PublicApi because it's getters could be used in proprietary Emitter implementations.
  • Method Details

    • toMap

      public EventMap toMap()
      Override JsonValue serialization, instead use annotations to include type information for polymorphic Query objects.
      Specified by:
      toMap in interface Event
    • getFeed

      public String getFeed()
      Specified by:
      getFeed in interface Event
    • getCreatedTime

      public org.joda.time.DateTime getCreatedTime()
    • getService

      public String getService()
    • getHost

      public String getHost()
    • getQuery

      public Query getQuery()
    • getSql

      public String getSql()
    • getSqlQueryContext

      public Map<String,Object> getSqlQueryContext()
    • getRemoteAddr

      public String getRemoteAddr()
    • getQueryStats

      public QueryStats getQueryStats()