Creates an instance of ArvoEvent.
The CloudEvent context along with Arvo and OpenTelemetry extensions.
The event data.
Optional
extensions: TExtensionOptional additional extensions.
If the datacontenttype is ArvoDataContentType but the to
field
is not defined
Readonly
dataReadonly
datacontenttypeReadonly
dataschemaReadonly
idReadonly
sourceReadonly
specversionReadonly
subjectReadonly
timeReadonly
typeGets the CloudEvent-specified default fields and extensions.
An object containing the base CloudEvent default fields and extensions.
default
fields are the standard CloudEvents attributes, which include:
extension
fields are additional attributes that provide extra context or functionality:
Gets the custom extensions of the ArvoEvent.
This getter returns only the custom extensions (TExtension) added to the ArvoEvent,
excluding the standard Arvo and OpenTelemetry extensions.
For accessing all extensions including Arvo and OpenTelemetry,
use <ArvoEvent>.cloudevent.extensions
.
For accessing the basic CloudEvent fields, use <ArvoEvent>.cloudevent.default
.
Gets OpenTelemetry attributes derived from the ArvoEvent.
An object containing OpenTelemetry attributes.
The OpenTelemetry attributes for CloudEvents is as per
the spec provided in the official documentation.
Additionally, the Arvo extension attributed are also returned
as cloudevents.arvo.event_*
fields.
Converts the ArvoEvent to a JSON-serializable object. It bundles the extensions and the cloudevent fields into one object.
Represents an ArvoEvent, which extends the CloudEvent specification.