LogEventGroup

data class LogEventGroup(val id: String, val version: Int, val state: Boolean)

An abstraction to keep related events of the same type together. Corresponds to the LogEventGroup from the schema module. A group can either report state- or counter-events. Use a state group for information about the application state, e.g which libraries are configured, user's local environment, OS, JVM, etc. Use a counter group for information about users/internal actions.

Constructors

Link copied to clipboard
constructor(id: String, version: Int, state: Boolean)

Properties

Link copied to clipboard
val id: String

Name of the group. It should be a noun, prefer short but explanatory ids (e.g notifications, actions).

Link copied to clipboard
Link copied to clipboard

Version is used to track changes in a group, you should increment the version when you change anything in the group (add/delete/change events or their fields).