RecorderDefinition

class RecorderDefinition(val fusRecorder: FusRecorder)

Recorders can have their own schema (ids, cliend_data & system_data), which describes fields that are sent with every event.

Constructors

Link copied to clipboard
constructor(fusRecorder: FusRecorder)

Properties

Link copied to clipboard
Link copied to clipboard
val fusRecorder: FusRecorder
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun logEvent(productCode: String, internal: Boolean, time: Long = epochMillis(), build: String, session: String, group: LogEventGroup, event: LogEventAction, dynamicFields: List<EventPair<String?>>? = null): LogEvent

Create a log event with recorder fields

Link copied to clipboard
fun registerClientData(field: EventField<String?>, required: Boolean, provider: () -> String?? = null): EventField<String?>

Register a client data field which is sent with every event. If the provider is null, the value is expected to be provided by dynamicFields

Link copied to clipboard
fun registerId(field: EventField<String?>, required: Boolean, provider: () -> String?? = null): EventField<String?>

Register an id which is sent with every event. If the provider is null, the value is expected to be provided by dynamicFields

fun registerId(name: String, required: Boolean, provider: () -> String?? = null): EventField<String?>

Register an id (hash) which is sent with every event. If the provider is null, the value is expected to be provided by dynamicFields

Link copied to clipboard
fun registerSystemData(field: EventField<String?>, required: Boolean, provider: () -> String?? = null): EventField<String?>

Register a system data field which is sent with every event. If the provider is null, the value is expected to be provided by dynamicFields