[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-05-09 UTC."],[],[],null,["# alerts namespace\n\nFunctions\n---------\n\n| Function | Description |\n|-----------------------------------------------------------------------------------------------|-----------------------------------------------------------------------|\n| [onAlertPublished(alertType, handler)](./firebase-functions.alerts.md#alertsonalertpublished) | Declares a function that can handle Firebase Alerts from CloudEvents. |\n| [onAlertPublished(options, handler)](./firebase-functions.alerts.md#alertsonalertpublished) | Declares a function that can handle Firebase Alerts from CloudEvents. |\n\nInterfaces\n----------\n\n| Interface | Description |\n|------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------|\n| [AlertEvent](./firebase-functions.alerts.alertevent.md#alertsalertevent_interface) | A custom CloudEvent for Firebase Alerts (with custom extension attributes). |\n| [FirebaseAlertData](./firebase-functions.alerts.firebasealertdata.md#alertsfirebasealertdata_interface) | The CloudEvent data emitted by Firebase Alerts. |\n| [FirebaseAlertOptions](./firebase-functions.alerts.firebasealertoptions.md#alertsfirebasealertoptions_interface) | Configuration for Firebase Alert functions. |\n\nNamespaces\n----------\n\n| Namespace | Description |\n|---------------------------------------------------------------------------------------------------|-------------|\n| [appDistribution](./firebase-functions.alerts.appdistribution.md#alertsappdistribution_namespace) | |\n| [billing](./firebase-functions.alerts.billing.md#alertsbilling_namespace) | |\n| [crashlytics](./firebase-functions.alerts.crashlytics.md#alertscrashlytics_namespace) | |\n| [performance](./firebase-functions.alerts.performance.md#alertsperformance_namespace) | |\n\nType Aliases\n------------\n\n| Type Alias | Description |\n|-------------------------------------------------------------|------------------------------------------------------------|\n| [AlertType](./firebase-functions.alerts.md#alertsalerttype) | The underlying alert type of the Firebase Alerts provider. |\n\nalerts.onAlertPublished()\n-------------------------\n\nDeclares a function that can handle Firebase Alerts from CloudEvents.\n\n**Signature:** \n\n export declare function onAlertPublished\u003cT extends {\n [\"@type\"]: string;\n } = any\u003e(alertType: AlertType, handler: (event: AlertEvent\u003cT\u003e) =\u003e any | Promise\u003cany\u003e): CloudFunction\u003cAlertEvent\u003cT\u003e\u003e;\n\n### Parameters\n\n| Parameter | Type | Description |\n|-----------|----------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------|\n| alertType | [AlertType](./firebase-functions.alerts.md#alertsalerttype) | the alert type or Firebase Alert function configuration. |\n| handler | (event: [AlertEvent](./firebase-functions.alerts.alertevent.md#alertsalertevent_interface)\\\u003cT\\\u003e) =\\\u003e any \\| Promise\\\u003cany\\\u003e | a function that can handle the Firebase Alert inside a CloudEvent. |\n\n**Returns:**\n\n[CloudFunction](./firebase-functions.cloudfunction.md#cloudfunction_interface)\\\u003c[AlertEvent](./firebase-functions.alerts.alertevent.md#alertsalertevent_interface)\\\u003cT\\\u003e\\\u003e\n\nA function that you can export and deploy.\n\nalerts.onAlertPublished()\n-------------------------\n\nDeclares a function that can handle Firebase Alerts from CloudEvents.\n\n**Signature:** \n\n export declare function onAlertPublished\u003cT extends {\n [\"@type\"]: string;\n } = any\u003e(options: FirebaseAlertOptions, handler: (event: AlertEvent\u003cT\u003e) =\u003e any | Promise\u003cany\u003e): CloudFunction\u003cAlertEvent\u003cT\u003e\u003e;\n\n### Parameters\n\n| Parameter | Type | Description |\n|-----------|----------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------|\n| options | [FirebaseAlertOptions](./firebase-functions.alerts.firebasealertoptions.md#alertsfirebasealertoptions_interface) | the alert type and other options for this cloud function. |\n| handler | (event: [AlertEvent](./firebase-functions.alerts.alertevent.md#alertsalertevent_interface)\\\u003cT\\\u003e) =\\\u003e any \\| Promise\\\u003cany\\\u003e | a function that can handle the Firebase Alert inside a CloudEvent. |\n\n**Returns:**\n\n[CloudFunction](./firebase-functions.cloudfunction.md#cloudfunction_interface)\\\u003c[AlertEvent](./firebase-functions.alerts.alertevent.md#alertsalertevent_interface)\\\u003cT\\\u003e\\\u003e\n\nalerts.AlertType\n----------------\n\nThe underlying alert type of the Firebase Alerts provider.\n\n**Signature:** \n\n export type AlertType = \"crashlytics.newFatalIssue\" | \"crashlytics.newNonfatalIssue\" | \"crashlytics.regression\" | \"crashlytics.stabilityDigest\" | \"crashlytics.velocity\" | \"crashlytics.newAnrIssue\" | \"billing.planUpdate\" | \"billing.planAutomatedUpdate\" | \"appDistribution.newTesterIosDevice\" | \"appDistribution.inAppFeedback\" | \"performance.threshold\" | string;"]]