CloudEvent interface

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

A CloudEventBase is the base of a cross-platform format for encoding a serverless event. For more information, see https://github.com/cloudevents/spec.

Signature:

exportinterfaceCloudEvent<T>

Properties

PropertyTypeDescription
dataT(BETA) Information about this specific event.
idstring(BETA) A globally unique ID for this event.
sourcestring(BETA) The resource that published this event.
specversion"1.0"(BETA) Version of the CloudEvents spec for this event.
subjectstring(BETA) The resource, provided by source, that this event relates to.
timestring(BETA) When this event occurred.
typestring(BETA) The type of event that this represents.

CloudEvent.data

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Information about this specific event.

Signature:

data:T;

CloudEvent.id

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

A globally unique ID for this event.

Signature:

id:string;

CloudEvent.source

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

The resource that published this event.

Signature:

source:string;

CloudEvent.specversion

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Version of the CloudEvents spec for this event.

Signature:

readonlyspecversion:"1.0";

CloudEvent.subject

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

The resource, provided by source, that this event relates to.

Signature:

subject?:string;

CloudEvent.time

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

When this event occurred.

Signature:

time:string;

CloudEvent.type

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

The type of event that this represents.

Signature:

type:string;