Stone.js API
    Preparing search index...

    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.

    interface GcpCloudFunctionsEvent {
        data?: unknown;
        id?: string;
        source?: string;
        specversion?: string;
        subject?: string;
        time?: string;
        type?: string;
        [key: string]: unknown;
    }

    Hierarchy

    • Record<string, unknown>
      • GcpCloudFunctionsEvent

    Indexable

    • [key: string]: unknown
    Index
    data?: unknown

    The trigger-specific payload.

    id?: string

    Identifies the event (unique per source).

    source?: string

    Identifies the context in which the event happened.

    specversion?: string

    The CloudEvents spec version, e.g. 1.0.

    subject?: string

    The subject of the event in the context of the source.

    time?: string

    RFC 3339 timestamp of when the event occurred.

    type?: string

    The event type, e.g. google.cloud.pubsub.topic.v1.messagePublished.