database.DatabaseEvent interface
Stay organized with collections
Save and categorize content based on your preferences.
A CloudEvent that contains a DataSnapshot or a Change
Signature:
export interface DatabaseEvent<T, Params = Record<string, string>> extends CloudEvent<T>
Extends: CloudEvent<T>
Properties
Property |
Type |
Description |
firebaseDatabaseHost |
string |
The domain of the database instance |
instance |
string |
The instance ID portion of the fully qualified resource name |
location |
string |
The location of the database |
params |
Params |
An object containing the values of the path patterns. Only named capture groups will be populated - {key}, {key=*}, {key=**} |
ref |
string |
The database reference path |
database.DatabaseEvent.firebaseDatabaseHost
The domain of the database instance
Signature:
firebaseDatabaseHost: string;
database.DatabaseEvent.instance
The instance ID portion of the fully qualified resource name
Signature:
instance: string;
database.DatabaseEvent.location
The location of the database
Signature:
location: string;
database.DatabaseEvent.params
An object containing the values of the path patterns. Only named capture groups will be populated - {key}, {key=*}, {key=**}
Signature:
params: Params;
database.DatabaseEvent.ref
The database reference path
Signature:
ref: string;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-04-18 UTC.
[null,null,["Last updated 2023-04-18 UTC."],[],[],null,["A CloudEvent that contains a DataSnapshot or a Change\n\n**Signature:** \n\n export interface DatabaseEvent\u003cT, Params = Record\u003cstring, string\u003e\u003e extends CloudEvent\u003cT\u003e \n\n**Extends:** [CloudEvent](./firebase-functions.cloudevent.md#cloudevent_interface)\\\u003cT\\\u003e\n\nProperties\n\ndatabase.DatabaseEvent.firebaseDatabaseHost\n\nThe domain of the database instance\n\n**Signature:** \n\n firebaseDatabaseHost: string;\n\ndatabase.DatabaseEvent.instance\n\nThe instance ID portion of the fully qualified resource name\n\n**Signature:** \n\n instance: string;\n\ndatabase.DatabaseEvent.location\n\nThe location of the database\n\n**Signature:** \n\n location: string;\n\ndatabase.DatabaseEvent.params\n\nAn object containing the values of the path patterns. Only named capture groups will be populated - {key}, {key=\\*}, {key=\\*\\*}\n\n**Signature:** \n\n params: Params;\n\ndatabase.DatabaseEvent.ref\n\nThe database reference path\n\n**Signature:** \n\n ref: string;"]]