CloudEvent interface Stay organized with collections Save and categorize content based on your preferences.
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.
ACloudEventBase 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
| Property | Type | Description |
|---|---|---|
| data | T | (BETA) Information about this specific event. |
| id | string | (BETA) A globally unique ID for this event. |
| source | string | (BETA) The resource that published this event. |
| specversion | "1.0" | (BETA) Version of the CloudEvents spec for this event. |
| subject | string | (BETA) The resource, provided by source, that this event relates to. |
| time | string | (BETA) When this event occurred. |
| type | string | (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;Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-07-10 UTC.