MIME type of the data being sent with the event in the data field. Only application/json and text/plain are currently supported. If not specified, it is automatically inferred from the type of provided data.
Identifies the context in which an event happened. If not provided, the value of EVENTARC_CLOUD_EVENT_SOURCE environment variable is used and if that is not set, a validation error is thrown.
Type of the event. Should be prefixed with a reverse-DNS name (com.my-org.v1.something.happended).
CloudEvent.data
Data payload of the event. Objects are stringified with JSON and strings are be passed along as-is.
Signature:
data?:object|string;
CloudEvent.datacontenttype
MIME type of the data being sent with the event in the data field. Only application/json and text/plain are currently supported. If not specified, it is automatically inferred from the type of provided data.
Signature:
datacontenttype?:string;
CloudEvent.id
Identifier for the event. If not provided, it is auto-populated with a UUID.
Signature:
id?:string;
CloudEvent.source
Identifies the context in which an event happened. If not provided, the value of EVENTARC_CLOUD_EVENT_SOURCE environment variable is used and if that is not set, a validation error is thrown.
Signature:
source?:string;
CloudEvent.specversion
The version of the CloudEvents specification which the event uses. If not provided, is set to 1.0 -- the only supported value.
Signature:
specversion?:CloudEventVersion;
CloudEvent.subject
Subject (context) of the event in the context of the event producer.
Signature:
subject?:string;
CloudEvent.time
Timestamp of the event. Must be in ISO time format. If not specified, current time (at the moment of publishing) is used.
Signature:
time?:string;
CloudEvent.type
Type of the event. Should be prefixed with a reverse-DNS name (com.my-org.v1.something.happended).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-07-29 UTC."],[],[],null,["# CloudEvent interface\n\nA CloudEvent describes event data.\n\n**Signature:** \n\n export interface CloudEvent \n\nProperties\n----------\n\n| Property | Type | Description |\n|--------------------------------------------------------------------------------------|---------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [data](./firebase-admin.eventarc.cloudevent.md#cloudeventdata) | object \\| string | Data payload of the event. Objects are stringified with JSON and strings are be passed along as-is. |\n| [datacontenttype](./firebase-admin.eventarc.cloudevent.md#cloudeventdatacontenttype) | string | MIME type of the data being sent with the event in the `data` field. Only `application/json` and `text/plain` are currently supported. If not specified, it is automatically inferred from the type of provided data. |\n| [id](./firebase-admin.eventarc.cloudevent.md#cloudeventid) | string | Identifier for the event. If not provided, it is auto-populated with a UUID. |\n| [source](./firebase-admin.eventarc.cloudevent.md#cloudeventsource) | string | Identifies the context in which an event happened. If not provided, the value of `EVENTARC_CLOUD_EVENT_SOURCE` environment variable is used and if that is not set, a validation error is thrown. |\n| [specversion](./firebase-admin.eventarc.cloudevent.md#cloudeventspecversion) | [CloudEventVersion](./firebase-admin.eventarc.md#cloudeventversion) | The version of the CloudEvents specification which the event uses. If not provided, is set to `1.0` -- the only supported value. |\n| [subject](./firebase-admin.eventarc.cloudevent.md#cloudeventsubject) | string | Subject (context) of the event in the context of the event producer. |\n| [time](./firebase-admin.eventarc.cloudevent.md#cloudeventtime) | string | Timestamp of the event. Must be in ISO time format. If not specified, current time (at the moment of publishing) is used. |\n| [type](./firebase-admin.eventarc.cloudevent.md#cloudeventtype) | string | Type of the event. Should be prefixed with a reverse-DNS name (`com.my-org.v1.something.happended`). |\n\nCloudEvent.data\n---------------\n\nData payload of the event. Objects are stringified with JSON and strings are be passed along as-is.\n\n**Signature:** \n\n data?: object | string;\n\nCloudEvent.datacontenttype\n--------------------------\n\nMIME type of the data being sent with the event in the `data` field. Only `application/json` and `text/plain` are currently supported. If not specified, it is automatically inferred from the type of provided data.\n\n**Signature:** \n\n datacontenttype?: string;\n\nCloudEvent.id\n-------------\n\nIdentifier for the event. If not provided, it is auto-populated with a UUID.\n\n**Signature:** \n\n id?: string;\n\nCloudEvent.source\n-----------------\n\nIdentifies the context in which an event happened. If not provided, the value of `EVENTARC_CLOUD_EVENT_SOURCE` environment variable is used and if that is not set, a validation error is thrown.\n\n**Signature:** \n\n source?: string;\n\nCloudEvent.specversion\n----------------------\n\nThe version of the CloudEvents specification which the event uses. If not provided, is set to `1.0` -- the only supported value.\n\n**Signature:** \n\n specversion?: CloudEventVersion;\n\nCloudEvent.subject\n------------------\n\nSubject (context) of the event in the context of the event producer.\n\n**Signature:** \n\n subject?: string;\n\nCloudEvent.time\n---------------\n\nTimestamp of the event. Must be in ISO time format. If not specified, current time (at the moment of publishing) is used.\n\n**Signature:** \n\n time?: string;\n\nCloudEvent.type\n---------------\n\nType of the event. Should be prefixed with a reverse-DNS name (`com.my-org.v1.something.happended`).\n\n**Signature:** \n\n type: string;"]]