alerts namespace

Functions

FunctionDescription
onAlertPublished(alertType, handler)Declares a function that can handle Firebase Alerts from CloudEvents.
onAlertPublished(options, handler)Declares a function that can handle Firebase Alerts from CloudEvents.

Interfaces

InterfaceDescription
AlertEventA custom CloudEvent for Firebase Alerts (with custom extension attributes).
FirebaseAlertDataThe CloudEvent data emitted by Firebase Alerts.
FirebaseAlertOptionsConfiguration for Firebase Alert functions.

Namespaces

NamespaceDescription
appDistribution
billing
crashlytics
performance

Type Aliases

Type AliasDescription
AlertTypeThe underlying alert type of the Firebase Alerts provider.

alerts.onAlertPublished()

Declares a function that can handle Firebase Alerts from CloudEvents.

Signature:

exportdeclarefunctiononAlertPublished<Textends{["@type"]:string;}=any>(alertType:AlertType,handler:(event:AlertEvent<T>)=>any|Promise<any>):CloudFunction<AlertEvent<T>>;

Parameters

ParameterTypeDescription
alertTypeAlertTypethe alert type or Firebase Alert function configuration.
handler(event:AlertEvent<T>) => any | Promise<any>a function that can handle the Firebase Alert inside a CloudEvent.

Returns:

CloudFunction<AlertEvent<T>>

A function that you can export and deploy.

alerts.onAlertPublished()

Declares a function that can handle Firebase Alerts from CloudEvents.

Signature:

exportdeclarefunctiononAlertPublished<Textends{["@type"]:string;}=any>(options:FirebaseAlertOptions,handler:(event:AlertEvent<T>)=>any|Promise<any>):CloudFunction<AlertEvent<T>>;

Parameters

ParameterTypeDescription
optionsFirebaseAlertOptionsthe alert type and other options for this cloud function.
handler(event:AlertEvent<T>) => any | Promise<any>a function that can handle the Firebase Alert inside a CloudEvent.

Returns:

CloudFunction<AlertEvent<T>>

alerts.AlertType

The underlying alert type of the Firebase Alerts provider.

Signature:

exporttypeAlertType="crashlytics.newFatalIssue"|"crashlytics.newNonfatalIssue"|"crashlytics.regression"|"crashlytics.stabilityDigest"|"crashlytics.velocity"|"crashlytics.newAnrIssue"|"billing.planUpdate"|"billing.planAutomatedUpdate"|"appDistribution.newTesterIosDevice"|"appDistribution.inAppFeedback"|"performance.threshold"|string;

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-05-09 UTC.