alerts.performance namespace

功能

功能描述
onThresholdAlertPublished(處理程序)聲明一個可以處理接收效能閾值警報的函數。
onThresholdAlertPublished(appId,處理程序)聲明一個可以處理接收效能閾值警報的函數。
onThresholdAlertPublished(選項,處理程序)聲明一個可以處理接收效能閾值警報的函數。

介面

介面描述
演出活動Firebase 警報的自訂 CloudEvent(具有自訂擴充屬性)。
效能選項應用程式分發功能的配置。
閾值警報負載效能閾值警報的內部負載對象。有效負載被包裝在一個物件內。

alerts.performance.onThresholdAlertPublished()

聲明一個可以處理接收效能閾值警報的函數。

簽名:

export declare function onThresholdAlertPublished(handler: (event: PerformanceEvent<ThresholdAlertPayload>) => any | Promise<any>): CloudFunction<PerformanceEvent<ThresholdAlertPayload>>;

參數

範圍類型描述
處理程式(事件:表演活動<閾值警報負載>) => 任意 |承諾<任何>每次收到閾值警報時執行的事件處理程序。

返回:

雲函數<演出活動<閾值警報負載>>

您可以匯出和部署的函數。

alerts.performance.onThresholdAlertPublished()

聲明一個可以處理接收效能閾值警報的函數。

簽名:

export declare function onThresholdAlertPublished(appId: string, handler: (event: PerformanceEvent<ThresholdAlertPayload>) => any | Promise<any>): CloudFunction<PerformanceEvent<ThresholdAlertPayload>>;

參數

範圍類型描述
應用程式ID細繩處理程序將觸發的特定應用程式。
處理程式(事件:表演活動<閾值警報負載>) => 任意 |承諾<任何>每次收到閾值警報時執行的事件處理程序。

返回:

雲函數<演出活動<閾值警報負載>>

您可以匯出和部署的函數。

alerts.performance.onThresholdAlertPublished()

聲明一個可以處理接收效能閾值警報的函數。

簽名:

export declare function onThresholdAlertPublished(opts: PerformanceOptions, handler: (event: PerformanceEvent<ThresholdAlertPayload>) => any | Promise<any>): CloudFunction<PerformanceEvent<ThresholdAlertPayload>>;

參數

範圍類型描述
選擇效能選項可以在該功能上設定的選項。
處理程式(事件:表演活動<閾值警報負載>) => 任意 |承諾<任意>每次收到閾值警報時執行的事件處理程序。

返回:

雲函數<演出活動<閾值警報負載>>

您可以匯出和部署的函數。