Creates a new CloudEvent instance
CloudEvent properties as a simple object
Gets or sets the data for this event
Gets or sets the event's data content encoding
Gets or sets the content type of the data value for this event
Gets or sets the event's data schema
Gets or sets the event id. Source + id must be unique for each distinct event.
DEPRECATED: Gets or sets the schema URL for this event. Throws {TypeError} if this is a version 1.0 event.
Gets or sets the origination source of this event as a URI.
Gets the CloudEvent specification version
Gets or sets the event subject
Gets or sets the timestamp for this event as an ISO formatted date string
Gets or sets the event type
Adds an extension attribute to this CloudEvent
the name of the extension attribute
the value of the extension attribute
Formats the CloudEvent as JSON. Validates the event according to the CloudEvent specification and throws an exception if it's invalid.
the CloudEvent in JSON form
Gets the extension attributes, if any, associated with this event
the extensions attributes - if none exist will will be {}
Formats the CloudEvent as JSON. No specification validation is performed.
the CloudEvent as a JSON string
Generated using TypeDoc
A CloudEvent describes event data in common formats to provide interoperability across services, platforms and systems.
https://github.com/cloudevents/spec/blob/v1.0/spec.md