Package org.apache.cassandra.audit
Class AuditEvent
- java.lang.Object
-
- org.apache.cassandra.diag.DiagnosticEvent
-
- org.apache.cassandra.audit.AuditEvent
-
public final class AuditEvent extends DiagnosticEvent
wrapper to expose audit events asDiagnosticEvents.
-
-
Field Summary
-
Fields inherited from class org.apache.cassandra.diag.DiagnosticEvent
threadName, timestamp
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuditLogEntrygetEntry()java.lang.StringgetSource()java.lang.Enum<?>getType()Returns event type discriminator.java.util.Map<java.lang.String,java.io.Serializable>toMap()Returns map of key-value pairs containing relevant event details.
-
-
-
Method Detail
-
getType
public java.lang.Enum<?> getType()
Description copied from class:DiagnosticEventReturns event type discriminator. This will usually be a enum value.- Specified by:
getTypein classDiagnosticEvent
-
getSource
public java.lang.String getSource()
-
getEntry
public AuditLogEntry getEntry()
-
toMap
public java.util.Map<java.lang.String,java.io.Serializable> toMap()
Description copied from class:DiagnosticEventReturns map of key-value pairs containing relevant event details. Values can be complex objects like other maps, but must be Serializable, as returned values may be consumed by external clients. It's strongly recommended to stick to standard Java classes to avoid distributing custom classes to clients and also prevent potential class versioning conflicts.- Specified by:
toMapin classDiagnosticEvent
-
-