Cloud functions to handle Crashlytics events from Firebase Alerts.
Classes
CrashlyticsEventclass firebase_functions.alerts.crashlytics_fn.CrashlyticsEvent(specversion: str, id: str, source: str, type: str, time: datetime, data: T, subject: str | None, alert_type: str, app_id: str) |
---|
Bases: A custom CloudEvent for billing Firebase Alerts.
|
Issueclass firebase_functions.alerts.crashlytics_fn.Issue(id: str, title: str, subtitle: str, app_version: str) |
---|
Bases: Generic Crashlytics issue interface
|
NewAnrIssuePayloadclass firebase_functions.alerts.crashlytics_fn.NewAnrIssuePayload(issue: Issue) |
---|
Bases: The internal payload object for a new Application Not Responding issue. Payload is wrapped inside a FirebaseAlertData object.
|
NewFatalIssuePayloadclass firebase_functions.alerts.crashlytics_fn.NewFatalIssuePayload(issue: Issue) |
---|
Bases: The internal payload object for a new fatal issue. Payload is wrapped inside a FirebaseAlertData object.
|
NewNonfatalIssuePayloadclass firebase_functions.alerts.crashlytics_fn.NewNonfatalIssuePayload(issue: Issue) |
---|
Bases: The internal payload object for a new non-fatal issue. Payload is wrapped inside a FirebaseAlertData object.
|
RegressionAlertPayloadclass firebase_functions.alerts.crashlytics_fn.RegressionAlertPayload(type: str, issue: Issue, resolve_time: datetime) |
---|
Bases: The internal payload object for a regression alert. Payload is wrapped inside a FirebaseAlertData object.
|
StabilityDigestPayloadclass firebase_functions.alerts.crashlytics_fn.StabilityDigestPayload(digest_date: datetime, trending_issues: list[TrendingIssueDetails]) |
---|
Bases: The internal payload object for a stability digest. Payload is wrapped inside a FirebaseAlertData object.
|
TrendingIssueDetailsclass firebase_functions.alerts.crashlytics_fn.TrendingIssueDetails(type: str, issue: Issue, event_count: int, user_count: int) |
---|
Bases: Generic Crashlytics trending issue interface
|
VelocityAlertPayloadclass firebase_functions.alerts.crashlytics_fn.VelocityAlertPayload(issue: Issue, create_time: datetime, crash_count: int, crash_percentage: float, first_version: str) |
---|
Bases: The internal payload object for a velocity alert. Payload is wrapped inside a FirebaseAlertData object.
|
Functions
on_new_anr_issue_publishedfirebase_functions.alerts.crashlytics_fn.on_new_anr_issue_published(**kwargs) Callable[[Callable[[CrashlyticsEvent[NewAnrIssuePayload]], None]], Callable[[CrashlyticsEvent[NewAnrIssuePayload]], None]] |
---|
Event handler which runs every time a new ANR issue is received. Example: import firebase_functions.alerts.crashlytics_fn as crashlytics_fn @crashlytics_fn.on_new_anr_issue_published() def example(alert: crashlytics_fn.CrashlyticsNewAnrIssueEvent) -> None: print(alert)
|
on_new_fatal_issue_publishedfirebase_functions.alerts.crashlytics_fn.on_new_fatal_issue_published(**kwargs) Callable[[Callable[[CrashlyticsEvent[NewFatalIssuePayload]], None]], Callable[[CrashlyticsEvent[NewFatalIssuePayload]], None]] |
---|
Event handler which runs every time a new fatal issue is received. Example: import firebase_functions.alerts.crashlytics_fn as crashlytics_fn @crashlytics_fn.on_new_fatal_issue_published() def example(alert: crashlytics_fn.CrashlyticsNewFatalIssueEvent) -> None: print(alert)
|
on_new_nonfatal_issue_publishedfirebase_functions.alerts.crashlytics_fn.on_new_nonfatal_issue_published(**kwargs) Callable[[Callable[[CrashlyticsEvent[NewNonfatalIssuePayload]], None]], Callable[[CrashlyticsEvent[NewNonfatalIssuePayload]], None]] |
---|
Event handler which runs every time a new nonfatal issue is received. Example: import firebase_functions.alerts.crashlytics_fn as crashlytics_fn @crashlytics_fn.on_new_nonfatal_issue_published() def example(alert: crashlytics_fn.CrashlyticsNewNonfatalIssueEvent) -> None: print(alert)
|
on_regression_alert_publishedfirebase_functions.alerts.crashlytics_fn.on_regression_alert_published(**kwargs) Callable[[Callable[[CrashlyticsEvent[RegressionAlertPayload]], None]], Callable[[CrashlyticsEvent[RegressionAlertPayload]], None]] |
---|
Event handler which runs every time a regression alert is received. Example: import firebase_functions.alerts.crashlytics_fn as crashlytics_fn @crashlytics_fn.on_regression_alert_published() def example(alert: crashlytics_fn.CrashlyticsRegressionAlertEvent) -> None: print(alert)
|
on_stability_digest_publishedfirebase_functions.alerts.crashlytics_fn.on_stability_digest_published(**kwargs) Callable[[Callable[[CrashlyticsEvent[StabilityDigestPayload]], None]], Callable[[CrashlyticsEvent[StabilityDigestPayload]], None]] |
---|
Event handler which runs every time a stability digest is received. Example: import firebase_functions.alerts.crashlytics_fn as crashlytics_fn @crashlytics_fn.on_stability_digest_published() def example(alert: crashlytics_fn.CrashlyticsStabilityDigestEvent) -> None: print(alert)
|
on_velocity_alert_publishedfirebase_functions.alerts.crashlytics_fn.on_velocity_alert_published(**kwargs) Callable[[Callable[[CrashlyticsEvent[VelocityAlertPayload]], None]], Callable[[CrashlyticsEvent[VelocityAlertPayload]], None]] |
---|
Event handler which runs every time a velocity alert is received. Example: import firebase_functions.alerts.crashlytics_fn as crashlytics_fn @crashlytics_fn.on_velocity_alert_published() def example(alert: crashlytics_fn.CrashlyticsVelocityAlertEvent) -> None: print(alert)
|
Constants
CrashlyticsNewAnrIssueEventfirebase_functions.alerts.crashlytics_fn.CrashlyticsNewAnrIssueEvent |
---|
The type of the event for 'on_new_anr_issue_published' functions. alias of |
CrashlyticsNewFatalIssueEventfirebase_functions.alerts.crashlytics_fn.CrashlyticsNewFatalIssueEvent |
---|
The type of the event for 'on_new_fatal_issue_published' functions. alias of |
CrashlyticsNewNonfatalIssueEventfirebase_functions.alerts.crashlytics_fn.CrashlyticsNewNonfatalIssueEvent |
---|
The type of the event for 'on_new_nonfatal_issue_published' functions. alias of |
CrashlyticsRegressionAlertEventfirebase_functions.alerts.crashlytics_fn.CrashlyticsRegressionAlertEvent |
---|
The type of the event for 'on_regression_alert_published' functions. alias of |
CrashlyticsStabilityDigestEventfirebase_functions.alerts.crashlytics_fn.CrashlyticsStabilityDigestEvent |
---|
The type of the event for 'on_stability_digest_published' functions. alias of |
CrashlyticsVelocityAlertEventfirebase_functions.alerts.crashlytics_fn.CrashlyticsVelocityAlertEvent |
---|
The type of the event for 'on_velocity_alert_published' functions. alias of |
OnNewAnrIssuePublishedCallablefirebase_functions.alerts.crashlytics_fn.OnNewAnrIssuePublishedCallable |
---|
The type of the callable for 'on_new_anr_issue_published' functions. alias of |
OnNewFatalIssuePublishedCallablefirebase_functions.alerts.crashlytics_fn.OnNewFatalIssuePublishedCallable |
---|
The type of the callable for 'on_new_fatal_issue_published' functions. alias of |
OnNewNonfatalIssuePublishedCallablefirebase_functions.alerts.crashlytics_fn.OnNewNonfatalIssuePublishedCallable |
---|
The type of the callable for 'on_new_nonfatal_issue_published' functions. alias of |
OnRegressionAlertPublishedCallablefirebase_functions.alerts.crashlytics_fn.OnRegressionAlertPublishedCallable |
---|
The type of the callable for 'on_regression_alert_published' functions. alias of |
OnStabilityDigestPublishedCallablefirebase_functions.alerts.crashlytics_fn.OnStabilityDigestPublishedCallable |
---|
The type of the callable for 'on_stability_digest_published' functions. alias of |
OnVelocityAlertPublishedCallablefirebase_functions.alerts.crashlytics_fn.OnVelocityAlertPublishedCallable |
---|
The type of the callable for 'on_velocity_alert_published' functions. alias of |