SelfDescribing

A SelfDescribing event.

Constructors

Link copied to clipboard
constructor(eventData: SelfDescribingJson)

Creates a SelfDescribing event from a SelfDescribingJson.

constructor(schema: String, payload: Map<String, Any?>)

Creates a SelfDescribing event.

Functions

Link copied to clipboard

Adds a list of context entities to the existing ones.

Link copied to clipboard

Adds a list of context entities to the existing ones.

Link copied to clipboard
fun trueTimestamp(trueTimestamp: Long?): AbstractEvent

Set the custom timestamp of the event.

Properties

Link copied to clipboard
open override var contexts: List<SelfDescribingJson>
Link copied to clipboard
open override val dataPayload: Map<String, Any?>

A "data" field containing the event properties.

Link copied to clipboard
Link copied to clipboard

Used for events whose properties are added as entities, e.g. Ecommerce events

Link copied to clipboard

The properties of the event. Has two fields:

Link copied to clipboard
open override val schema: String

A "schema" field identifying the schema against which the data is validated.

Link copied to clipboard
open override var trueTimestamp: Long?