SelfDescribing

constructor(eventData: SelfDescribingJson)

Creates a SelfDescribing event from a SelfDescribingJson.

Parameters

eventData

The properties of the event. Has two field: a "data" field containing the event properties and a "schema" field identifying the schema against which the data is validated.


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

Creates a SelfDescribing event.

Parameters

schema

The schema against which the payload is validated.

payload

The event properties.