기능
기능 | 설명 |
---|---|
onThresholdAlertPublished(처리기) | 성능 임계값 경고 수신을 처리할 수 있는 함수를 선언합니다. |
onThresholdAlertPublished(appId, 핸들러) | 성능 임계값 경고 수신을 처리할 수 있는 함수를 선언합니다. |
onThresholdAlertPublished(옵션, 처리기) | 성능 임계값 경고 수신을 처리할 수 있는 함수를 선언합니다. |
인터페이스
상호 작용 | 설명 |
---|---|
퍼포먼스이벤트 | Firebase 알림용 맞춤 CloudEvent(맞춤 확장 속성 포함) |
성능옵션 | 앱 배포 기능을 위한 구성입니다. |
임계값 경고 페이로드 | 성능 임계값 경고에 대한 내부 페이로드 개체입니다. 페이로드는 객체 내부에 래핑됩니다. |
Alerts.performance.onThresholdAlertPublished()
성능 임계값 경고 수신을 처리할 수 있는 함수를 선언합니다.
서명:
export declare function onThresholdAlertPublished(handler: (event: PerformanceEvent<ThresholdAlertPayload>) => any | Promise<any>): CloudFunction<PerformanceEvent<ThresholdAlertPayload>>;
매개변수
매개변수 | 유형 | 설명 |
---|---|---|
매니저 | (이벤트: PerformanceEvent < 임계값 경고 페이로드 >) => 모두 | 약속<아무거나> | 임계값 경고가 수신될 때마다 실행되는 이벤트 핸들러입니다. |
보고:
CloudFunction < 퍼포먼스이벤트 < 임계값 경고 페이로드 >>
내보내고 배포할 수 있는 기능입니다.
Alerts.performance.onThresholdAlertPublished()
성능 임계값 경고 수신을 처리할 수 있는 함수를 선언합니다.
서명:
export declare function onThresholdAlertPublished(appId: string, handler: (event: PerformanceEvent<ThresholdAlertPayload>) => any | Promise<any>): CloudFunction<PerformanceEvent<ThresholdAlertPayload>>;
매개변수
매개변수 | 유형 | 설명 |
---|---|---|
앱 ID | 끈 | 핸들러가 트리거되는 특정 애플리케이션입니다. |
매니저 | (이벤트: PerformanceEvent < 임계값 경고 페이로드 >) => 모두 | 약속<아무거나> | 임계값 경고가 수신될 때마다 실행되는 이벤트 핸들러입니다. |
보고:
CloudFunction < 퍼포먼스이벤트 < 임계값 경고 페이로드 >>
내보내고 배포할 수 있는 기능입니다.
Alerts.performance.onThresholdAlertPublished()
성능 임계값 경고 수신을 처리할 수 있는 함수를 선언합니다.
서명:
export declare function onThresholdAlertPublished(opts: PerformanceOptions, handler: (event: PerformanceEvent<ThresholdAlertPayload>) => any | Promise<any>): CloudFunction<PerformanceEvent<ThresholdAlertPayload>>;
매개변수
매개변수 | 유형 | 설명 |
---|---|---|
선택하다 | 성능옵션 | 함수에 설정할 수 있는 옵션입니다. |
매니저 | (이벤트: PerformanceEvent < 임계값 경고 페이로드 >) => 모두 | 약속<아무거나> | 임계값 경고가 수신될 때마다 실행되는 이벤트 핸들러입니다. |
보고:
CloudFunction < 퍼포먼스이벤트 < 임계값 경고 페이로드 >>
내보내고 배포할 수 있는 기능입니다.