alerts.performance.ThresholdAlertPayload interface

性能阈值警报的内部负载对象。有效负载被包装在一个对象内。

签名:

export interface ThresholdAlertPayload 

特性

财产类型描述
应用程序版本细绳如果警报是针对网络请求(因为警报是针对所有版本的应用程序的数据进行检查)或 Web 应用程序(其中应用程序是无版本的),则触发此警报的应用程序版本可以省略
条件百分位数字警报条件的百分位数,如果百分位数不适用于警报条件并省略,则可以为 0;范围:[1, 100]
事件名称细绳此警报所针对的跟踪或网络请求的名称(例如 my_custom_trace、firebase.com/api/123)
事件类型细绳此警报适用的资源类型(即跟踪、网络请求、屏幕渲染等)
调查Uri细绳用于调查此警报的更多信息的 Fireconsole 链接
度量类型细绳此警报适用的指标类型(即成功率、响应时间、持续时间等)
样本数数字针对此警报条件检查的事件数
阈值单位细绳警报阈值的单位(例如“百分比”、“秒”)
阈值数字警报条件的阈值,无单位(例如“75”、“2.1”)
违规单位细绳违规值的单位(例如“百分比”、“秒”)
违规值数字违反警报条件的值(例如“76.5”、“3”)

警报.性能.ThresholdAlertPayload.appVersion

如果警报是针对网络请求(因为警报是针对所有版本的应用程序的数据进行检查)或 Web 应用程序(其中应用程序是无版本的),则触发此警报的应用程序版本可以省略

签名:

appVersion?: string;

警报.性能.ThresholdAlertPayload.conditionPercentile

警报条件的百分位数,如果百分位数不适用于警报条件并省略,则可以为 0;范围:[1, 100]

签名:

conditionPercentile?: number;

警报.性能.ThresholdAlertPayload.事件名称

此警报所针对的跟踪或网络请求的名称(例如 my_custom_trace、firebase.com/api/123)

签名:

eventName: string;

警报.性能.ThresholdAlertPayload.eventType

此警报适用的资源类型(即跟踪、网络请求、屏幕渲染等)

签名:

eventType: string;

警报.性能.ThresholdAlertPayload.investigateUri

用于调查此警报的更多信息的 Fireconsole 链接

签名:

investigateUri: string;

警报.性能.ThresholdAlertPayload.metricType

此警报适用的指标类型(即成功率、响应时间、持续时间等)

签名:

metricType: string;

警报.性能.ThresholdAlertPayload.numSamples

针对此警报条件检查的事件数

签名:

numSamples: number;

警报.性能.ThresholdAlertPayload.thresholdUnit

警报阈值的单位(例如“百分比”、“秒”)

签名:

thresholdUnit: string;

警报.性能.ThresholdAlertPayload.thresholdValue

警报条件的阈值,无单位(例如“75”、“2.1”)

签名:

thresholdValue: number;

警报.性能.ThresholdAlertPayload.violationUnit

违规值的单位(例如“百分比”、“秒”)

签名:

violationUnit: string;

警报.性能.ThresholdAlertPayload.violationValue

违反警报条件的值(例如“76.5”、“3”)

签名:

violationValue: number;