Package org.apache.druid.audit
Class AuditEntry
- java.lang.Object
-
- org.apache.druid.audit.AuditEntry
-
public class AuditEntry extends Object
Serializable record of an audit event that can be persisted, logged or sent over REST APIs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAuditEntry.Builderstatic classAuditEntry.PayloadPayload of anAuditEntrythat may be specifiedAuditEntry.Payload.raw()orAuditEntry.Payload.serialized().
-
Constructor Summary
Constructors Constructor Description AuditEntry(String key, String type, AuditInfo authorInfo, RequestInfo request, AuditEntry.Payload payload, org.joda.time.DateTime auditTime)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuditEntry.Builderbuilder()booleanequals(Object o)AuditInfogetAuditInfo()org.joda.time.DateTimegetAuditTime()StringgetKey()AuditEntry.PayloadgetPayload()Non-null payload of the audit event.RequestInfogetRequest()Details of the REST API request associated with this audit, if any.StringgetType()inthashCode()
-
-
-
Constructor Detail
-
AuditEntry
public AuditEntry(String key, String type, AuditInfo authorInfo, RequestInfo request, AuditEntry.Payload payload, org.joda.time.DateTime auditTime)
-
-
Method Detail
-
getKey
public String getKey()
-
getType
public String getType()
-
getAuditInfo
public AuditInfo getAuditInfo()
-
getRequest
public RequestInfo getRequest()
Details of the REST API request associated with this audit, if any.
-
getPayload
public AuditEntry.Payload getPayload()
Non-null payload of the audit event.
-
getAuditTime
public org.joda.time.DateTime getAuditTime()
- Returns:
- audit time as DateTime
-
builder
public static AuditEntry.Builder builder()
-
-