OptionaldataThe trigger-specific payload.
OptionalidIdentifies the event (unique per source).
OptionalsourceIdentifies the context in which the event happened.
OptionalspecversionThe CloudEvents spec version, e.g. 1.0.
OptionalsubjectThe subject of the event in the context of the source.
OptionaltimeRFC 3339 timestamp of when the event occurred.
OptionaltypeThe event type, e.g. google.cloud.pubsub.topic.v1.messagePublished.
Represents a GCP Cloud Functions event (a CloudEvent).
2nd-gen Cloud Functions deliver every non-HTTP trigger (Pub/Sub, Cloud Storage, Eventarc, Firestore, …) as a CloudEvent. The well-known envelope fields are typed here; the trigger-specific payload lives on
data, and the index signature keeps any extension attributes accessible.