با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
از هشدارهای سرعت استفاده کنید تا تیم خود را در صورت ایجاد مشکلی فوری در برنامه شما به تیم خود اطلاع دهید. برای Crashlytics ، یک مشکل گروهبندی خرابیهای مشابه یا رویدادهای برنامهای که پاسخ نمیدهد (ANR) است.
شما آستانه هشدارهای سرعت را بر حسب درصدی از کاربران و حداقل تعداد کاربرانی که تحت تأثیر خرابی یا ANR قرار گرفتهاند، تعریف میکنید. می توانید مقدار آستانه درصد را بین 0٪ تا 100٪ جلسات تنظیم کنید. حداقل آستانه کاربران را می توان روی هر عددی بزرگتر یا مساوی 10 تنظیم کرد. به طور پیش فرض، آستانه هشدار سرعت در 1٪ از جلسات و 25 کاربر تنظیم شده است.
به طور خاص، اگر در طول یک بازه زمانی 30 دقیقهای، همه موارد زیر درست باشند، یک هشدار فعال میشود:
یک مشکل در یک برنامه از آستانه درصد تعریف شده فراتر می رود و از حداقل کاربران تعیین شده برای آن برنامه بیشتر است.
این برنامه حداقل 10 کاربر در آن بازه زمانی دارد.
قبلاً هیچ هشداری برای این مشکل در برنامه در آن نسخه ارائه نشده بود.
آستانه های هشدار سرعت را برای هر یک از برنامه های ثبت شده خود پیکربندی کنید. هر برنامه می تواند آستانه هشدار متفاوتی داشته باشد.
وارد کنسول Firebase شوید، سپس پروژه خود را انتخاب کنید.
روی settings کلیک کنید، سپس تنظیمات پروژه را انتخاب کنید. تب Alerts را انتخاب کنید.
به کارت هشدارهای Crashlytics بروید و تب Velocity Alerts را انتخاب کنید.
آستانه های هشدار را برای برنامه پیکربندی کنید.
دریافت هشدار
دریافت هشدارهای پیش فرض
به طور پیش فرض، Firebase می تواند هشدارهای Crashlytics را با استفاده از ایمیل ارسال کند. برای هشدارهای سرعت و رگرسیون، Firebase همچنین میتواند این هشدارها را در کنسول Firebase نشان دهد.
برای دریافت هشدارهای Crashlytics با استفاده از این مکانیسم پیشفرض، باید مجوز firebase.projects.update را داشته باشید. نقشهای زیر بهطور پیشفرض شامل این مجوز مورد نیاز است: مدیر Firebase یا مالک پروژه یا ویرایشگر .
بهطور پیشفرض، هر عضو پروژه (که مجوزهای لازم برای دریافت هشدارها را دارد) زمانی که یک هشدار از Crashlytics فعال میشود، ایمیلی دریافت میکند.
هشدارها را برای حساب شخصی خود روشن یا خاموش کنید
برای حساب شخصی خود، میتوانید هشدارهای Crashlytics را بدون تأثیرگذاری بر دیگر اعضای پروژه روشن یا خاموش کنید. توجه داشته باشید که برای دریافت هشدارها همچنان به مجوزهای لازم نیاز دارید.
وارد کنسول Firebase شوید، سپس پروژه خود را انتخاب کنید.
روی settings کلیک کنید، سپس تنظیمات پروژه را انتخاب کنید. تب Alerts را انتخاب کنید.
به کارت هشدارهای Crashlytics بروید و تب Velocity Alerts را انتخاب کنید.
اولویت حساب خود را برای هشدارهای Crashlytics تنظیم کنید.
هشدار اولیه را برای خدمات شخص ثالث تنظیم کنید
برای هشدارهای Crashlytics ، Firebase مکانیزمی برای ارسال هشدار به سرویسهای شخص ثالث زیر ارائه میکند: Slack ، Jira ، یا PagerDuty .
این گزینههای هشدار اولیه را با استفاده از گردشهای کاری هدایتشده در برگه ادغام در خود تنظیم کنیدsettingsتنظیمات پروژه .
پیکربندی مورد استفاده برای هر برنامه را انتخاب کنید و مقصد سایر هشدارها را در کارت Crashlytics در برگه Alerts پیکربندی کنید.settingsتنظیمات پروژه .
توجه داشته باشید که اگر کنترل و سفارشیسازی بیشتری برای ارسال هشدارها به هر سرویس شخص ثالث میخواهید (فقط به Slack، Jira یا PagerDuty محدود نمیشود)، بخش تنظیم هشدار پیشرفته برای خدمات شخص ثالث را بررسی کنید که گزینههای هشدار پیشرفته را توضیح میدهد.
هشدار پیشرفته را برای خدمات شخص ثالث تنظیم کنید
میتوانید با استفاده از Cloud Functions for Firebase ، هشدارهای Crashlytics را به کانال اعلان ترجیحی تیمتان ارسال کنید. برای مثال، میتوانید تابعی بنویسید که یک رویداد هشدار را برای هشدارهای سرعت ثبت میکند و اطلاعات هشدار را به یک سرویس شخص ثالث، مانند Discord، Slack یا Jira ارسال میکند. با استفاده از این مکانیسم هشدار پیشرفته، می توانید اطلاعات ارسال شده به سرویس شخص ثالث را به طور کامل سفارشی کنید. برای مثال، میتوانید پیوندهای عمیق مفیدی را به کنسول Firebase اضافه کنید یا اطلاعات مربوط به عیبیابی شرکت را اضافه کنید.
برای راهاندازی قابلیتهای هشدار پیشرفته با استفاده از Cloud Functions for Firebase ، این مراحل را دنبال کنید:
با استفاده از Firebase CLI Cloud Functions for Firebase راه اندازی کنید.
تابعی را بنویسید و مستقر کنید که یک رویداد هشدار را از Crashlytics می گیرد و بار رویداد را مدیریت می کند (به عنوان مثال، اطلاعات هشدار را در پیامی در Discord پست می کند).
برای اطلاع از همه رویدادهای هشدار Crashlytics که میتوانید ثبت کنید، به مستندات مرجع هشدارهای Crashlytics بروید.
تاریخ آخرین بهروزرسانی 2025-09-03 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-09-03 بهوقت ساعت هماهنگ جهانی."],[],[],null,["\u003cbr /\u003e\n\nUse velocity alerts to notify your team when any individual issue is causing an\nurgent problem in your app. For Crashlytics, an issue is a grouping of\nsimilar crashes or application not responding (ANR) events.\n| **Important:** To get velocity alerts, **make sure your app uses *at minimum* the following versions of the\n| Crashlytics SDK:** \n| Apple platforms: v10.8.0+ \\| Android: v18.6.0+ (BoM v32.6.0+) \\| Flutter: v3.4.5+ \\| Unity: 11.7.0+\n\nWhat triggers an alert?\n\nVelocity alerts are triggered when an issue in your app crosses certain\nthresholds that you\n[configure in the Firebase console](#configure-thresholds).\n\nYou define the threshold for velocity alerts in terms of a\n***percentage of users and the minimum number of users that were\nimpacted by the crash or ANR***. You can set the percentage threshold value\nbetween 0% and 100% of sessions. The minimum users threshold can be set to any\nnumber greater than or equal to 10. By default, the velocity alert threshold is\nset at 1% of sessions and 25 users.\n\nSpecifically, an alert is triggered if, during a 30-minute time period,\n***all*** the following are true:\n\n- An issue in an app exceeds the defined percentage threshold and exceeds the minimum users set for that app.\n- The app has at least 10 users in that time period.\n- There was no alert previously raised for the issue in the app on that version.\n\nConfigure velocity alert thresholds\n\nTo configure velocity alert thresholds, you must have the\n`firebasecrashlytics.config.update` permission. The following roles include\nthis required permission by default:\n[Firebase Crashlytics Admin](/docs/projects/iam/roles-predefined-product#crashlytics),\n[Firebase Quality Admin](/docs/projects/iam/roles-predefined-category#quality_roles),\n[Firebase Admin](/docs/projects/iam/roles-predefined-all-products), or\nproject [Owner or Editor](/docs/projects/iam/roles-basic).\n\nConfigure velocity alert thresholds for each of your registered apps. Each app\ncan have a different alert threshold.\n\n1. Sign in to the Firebase console, then select your project.\n\n2. Click settings, then select\n **Project Settings** . Select the\n [**Alerts** tab](https://console.firebase.google.com/project/_/settings/alerts).\n\n3. Go to the **Crashlytics** alerts card and select the **Velocity Alerts**\n tab.\n\n4. Configure the alert thresholds for the app.\n\nReceive alerts\n\nGet default alerts\n\nBy default, Firebase can send Crashlytics alerts using email. For velocity\nalerts and regressions, Firebase can also show these alerts in the\nFirebase console.\n\nTo receive Crashlytics alerts using this default mechanism, you must have\nthe `firebase.projects.update` permission. The following roles include this\nrequired permission by default:\n[Firebase Admin](/docs/projects/iam/roles-predefined-all-products) or project\n[Owner or Editor](/docs/projects/iam/roles-basic).\n\nBy default, every project member (who has the required permissions to receive\nalerts) will get an email when an alert from Crashlytics is triggered.\n\nTurn alerts on or off for your own account\n\nFor your own account, you can turn Crashlytics alerts on or off without\naffecting other project members. Note that you still need the required\npermissions to receive alerts.\n\n1. Sign in to the Firebase console, then select your project.\n\n2. Click settings, then select\n **Project Settings** . Select the\n [**Alerts** tab](https://console.firebase.google.com/project/_/settings/alerts).\n\n3. Go to the **Crashlytics** alerts card and select the **Velocity Alerts**\n tab.\n\n4. Set your account preference for Crashlytics alerts.\n\nSet up basic alerting to third-party services\n\nFor Crashlytics alerts, Firebase offers a mechanism to send alerts to the\nfollowing third-party services:\n[Slack](https://support.google.com/firebase/answer/9005934),\n[Jira](https://support.google.com/firebase/answer/9118259), or\n[PagerDuty](https://support.google.com/firebase/answer/9168499).\n\n1. Set up these basic alerting options using guided workflows in the\n [*Integrations* tab](https://console.firebase.google.com/project/_/settings/integrations/)\n in your settings *Project\n settings*.\n\n2. Select which configuration is used for individual apps and configure the\n destination of other alerts on the Crashlytics card of the\n [*Alerts tab*](https://console.firebase.google.com/project/_/settings/alerts)\n in your settings *Project settings*.\n\nNote that if you want more control and customization for sending alerts to any\nthird-party service (not limited to only Slack, Jira, or PagerDuty), check out\nthe [Set up advanced alerting to third-party services](#advanced-alerts-3p)\nsection that describes advanced alerting options.\n\nSet up advanced alerting to third-party services\n\nYou can send Crashlytics alerts to your team's preferred notification\nchannel, using Cloud Functions for Firebase. For example, you can write a function\nthat captures an alert event for velocity alerts and posts the alert information\nto a third-party service, like Discord, Slack, or Jira. With this advanced\nalerting mechanism, you can fully customize the information sent to the\nthird-party service; for example, you can include helpful deep-links into the\nFirebase console or add company-specific troubleshooting information.\n| **Note:** To use advanced alerting capabilities, your Firebase project needs to use the [Blaze pricing plan](/pricing).\n\nTo set up advanced alerting capabilities using Cloud Functions for Firebase, follow these steps:\n\n1. [Set up Cloud Functions for Firebase](/docs/functions/get-started),\n which includes the following tasks:\n\n 1. Set up a development environment for Node.js or Python.\n 2. Install and sign into the Firebase CLI.\n 3. Initialize Cloud Functions for Firebase using the Firebase CLI.\n2. [Write and deploy a function](/docs/functions/alert-events) that\n captures an alert event from Crashlytics and handles the event\n payload (for example, posts the alert information in a message on Discord).\n\nTo learn about all the Crashlytics alert events that you can capture, go to\nthe reference documentation for\n[Crashlytics alerts](/docs/reference/functions/2nd-gen/node/firebase-functions.alerts.crashlytics)."]]