firebase_functions.alerts_fn module Stay organized with collections Save and categorize content based on your preferences.
Cloud functions to handle events from Firebase Alerts.
Classes
AlertEventclassfirebase_functions.alerts_fn.AlertEvent(specversion:str,id:str,source:str,type:str,time:datetime,data:T,subject:str|None,alert_type:str,app_id:str|None) |
|---|
Bases: A custom CloudEvent for Firebase Alerts (with custom extension attributes).
|
Functions
on_alert_publishedfirebase_functions.alerts_fn.on_alert_published(**kwargs)→Callable[[Callable[[AlertEvent[FirebaseAlertData[T]]],None]],Callable[[AlertEvent[FirebaseAlertData[T]]],None]] |
|---|
Event handler that triggers when a Firebase Alerts event is published. Example: fromfirebase_functionsimportalerts_fn@alerts_fn.on_alert_published(alert_type=alerts_fn.AlertType.CRASHLYTICS_NEW_FATAL_ISSUE,)defexample(alert:alerts_fn.AlertEvent[alerts_fn.FirebaseAlertData])->None:print(alert)
|
Constants
OnAlertPublishedCallablefirebase_functions.alerts_fn.OnAlertPublishedCallable |
|---|
The type of the callable for 'on_alert_published' functions. alias of |
OnAlertPublishedEventfirebase_functions.alerts_fn.OnAlertPublishedEvent |
|---|
The type of the event for 'on_alert_published' functions. alias of |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-11-06 UTC.