Properties

data

non-null Object

Data returned for the event. The nature of the data depends on the event type:

eventId

(string or undefined)

The event’s unique identifier.

eventType

(string or undefined)

Type of event. Valid values are:

  • providers/google.firebase.analytics/eventTypes/event.log
  • providers/google.firebase.database/eventTypes/ref.write
  • providers/firebase.auth/eventTypes/user.create
  • providers/firebase.auth/eventTypes/user.delete
  • providers/cloud.pubsub/eventTypes/topic.publish
  • providers/cloud.storage/eventTypes/object.change

params

(non-null Object or undefined)

An object containing the values of the wildcards in the path parameter provided to the ref() method for a Realtime Database trigger.

resource

(string or undefined)

The resource that emitted the event. Valid values are:

  • Analytics — projects/<projectId>/events/<analyticsEventType>
  • Realtime Database — projects/_/instances/<databaseInstance>/refs/<databasePath>
  • Storage — projects/_/buckets/<bucketName>/objects/<fileName>#<generation>
  • Authentication — projects/<projectId>
  • Pub/Sub — projects/<projectId>/topics/<topicName>

Because Realtime Database instances and Cloud Storage buckets are globally unique and not tied to the project, their resources start with projects/_. Underscore is not a valid project name.

timestamp

(string or undefined)

Timestamp for the event as an RFC 3339 string.