package
audit
Type Members
-
sealed
trait
AuditAction extends Product with Serializable
-
sealed
trait
AuditCategory extends Product with Serializable
-
-
final
case class
AuditEvent[A](event: A, timestamp: Instant, action: AuditAction, releaseId: Option[Long], userLogin: String, auditable: Auditable[A]) extends Product with Serializable
-
final
case class
AuditLog(id: ID, timestamp: Instant, releaseId: Option[Long], event: Option[Json], category: String, action: String, login: Option[String]) extends Product with Serializable
-
trait
Auditable[A] extends AnyRef
-
class
Auditor extends AnyRef
Represents an
event
that we wish to audit. Because we are storing the events in a persistent store an encoding is necessary. Json was choosen because the shape of events varies and because most events already have a json encoder available. The category provides context outside of the json blob concerning theevent
. the category is usefull from a querying perspective.