Package org.apache.druid.audit
Class AuditEntry
java.lang.Object
org.apache.druid.audit.AuditEntry
Serializable record of an audit event that can be persisted, logged or sent
over REST APIs.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classPayload of anAuditEntrythat may be specifiedAuditEntry.Payload.raw()orAuditEntry.Payload.serialized(). -
Constructor Summary
ConstructorsConstructorDescriptionAuditEntry(String key, String type, AuditInfo authorInfo, RequestInfo request, AuditEntry.Payload payload, org.joda.time.DateTime auditTime) -
Method Summary
Modifier and TypeMethodDescriptionstatic AuditEntry.Builderbuilder()booleanorg.joda.time.DateTimegetKey()Non-null payload of the audit event.Details of the REST API request associated with this audit, if any.getType()inthashCode()
-
Constructor Details
-
AuditEntry
public AuditEntry(String key, String type, AuditInfo authorInfo, RequestInfo request, AuditEntry.Payload payload, org.joda.time.DateTime auditTime)
-
-
Method Details
-
getKey
-
getType
-
getAuditInfo
-
getRequest
Details of the REST API request associated with this audit, if any. -
getPayload
Non-null payload of the audit event. -
getAuditTime
public org.joda.time.DateTime getAuditTime()- Returns:
- audit time as DateTime
-
builder
-
equals
-
hashCode
public int hashCode()
-