Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Pemberi rekomendasi dan insight notifikasi Error Reporting
Pemberi rekomendasi Error Reporting mencari error terbaru di project Google Cloud Anda dan memberikan rekomendasi jika Anda belum mengonfigurasi notifikasi Error Reporting.
Jika Anda telah mengonfigurasi notifikasi, tidak ada rekomendasi yang dibuat.
Dokumen ini menjelaskan cara mengaktifkan dan melihat rekomendasi serta insight Anda.
Sebelum memulai
Sebelum dapat melihat rekomendasi dan insight Pelaporan Error, Anda harus melakukan hal berikut:
Aktifkan Recommender API seperti yang dijelaskan di
Mengaktifkan API.
Pastikan Anda memiliki izin yang memadai.
Anda harus memiliki salah satu peran berikut, yang memberikan izin yang diperlukan:
Deskripsi tugas
Peran
Melihat rekomendasi/insight
roles/recommender.errorReportingViewer
Melihat dan memperbarui (menutup) rekomendasi/insight
roles/recommender.errorReportingAdmin
Memilih tidak ikut serta dalam rekomendasi/insight di Pusat Transparansi dan Kontrol.
Untuk mengetahui informasi selengkapnya, lihat
Memilih tidak ikut.
roles/dataprocessing.admin
Peran Recommender ini memberikan izin API berikut:
Pemberi rekomendasi menampilkan rekomendasi di konsol Google Cloud .
Anda juga dapat mencantumkan rekomendasi menggunakan Google Cloud CLI atau Recommender API.
Google Cloud console
Untuk melihat rekomendasi Anda, lakukan langkah-langkah berikut:
Buka konsol Google Cloud , atau gunakan tombol berikut:
Pemberi rekomendasi Error Reporting menghasilkan rekomendasi berdasarkan insight. Anda dapat mengambil insight ini menggunakan Google Cloud CLI atau Recommender API.
gcloud CLI
Untuk mencantumkan insight Error Reporting menggunakan
gcloud CLI, jalankan perintah berikut:
gcloud recommender insights list \
--insight-type=google.clouderrorreporting.Insight \
--project=PROJECT_ID \
--location=global
Ganti PROJECT_ID dengan ID untuk Google Cloud project Anda.
Untuk mengetahui informasi selengkapnya tentang perintah ini, termasuk opsi untuk format output, lihat gcloud recommender insights list.
Recommender API
Untuk mencantumkan insight Error Reporting menggunakan
Recommender API, jalankan perintah berikut:
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-02 UTC."],[],[],null,["# Error Reporting notification recommender and insights\n=====================================================\n\n|\n| This feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nThe [Error Reporting](/error-reporting/docs) recommender looks for\nrecent crashes in your Google Cloud project and provides recommendations if you\nhave not configured [Error Reporting notifications](/error-reporting/docs/notifications).\nWhen you have notifications configured, no recommendations are made.\n\nThis document describes how to enable and view your recommendations\nand insights.\n\nBefore you begin\n----------------\n\nBefore you can view Error Reporting recommendations and\ninsights, you must do the following:\n\n1. Enable the Recommender API as described in\n [Enable the API](/recommender/docs/enabling).\n\n2. Ensure that you have sufficient permission.\n You must have one of the following roles, which provide the necessary\n permissions:\n\n\n \u003cbr /\u003e\n\n These Recommender roles provide the following API permissions:\n\n\n \u003cbr /\u003e\n\n For more information about roles and about granting access, see the\n following:\n - [Understanding roles](/iam/docs/understanding-roles)\n - [Managing access to projects, folders, and organizations](/iam/docs/granting-changing-revoking-access)\n\nView recommendations\n--------------------\n\nRecommender displays recommendations in the Google Cloud console.\nYou can also list recommendations by using the Google Cloud CLI or\nthe Recommender API. \n\n### Google Cloud console\n\n\nTo view your recommendations, do the following:\n\n1. Go to the Google Cloud console, or use the following button:\n\n [Go to Google Cloud console](https://console.cloud.google.com/)\n2. Select the **Recommendations** tab.\n\n\u003cbr /\u003e\n\n### gcloud CLI\n\n\nTo list your Error Reporting recommendations by using the\ngcloud CLI, run the following command: \n\n```\ngcloud recommender recommendations list \\\n --recommender=google.clouderrorreporting.Recommender \\\n --project=PROJECT_ID \\\n --location=global\n```\n\nReplace \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e with the identifier for your Google Cloud project.\n\nFor more information about this command, including options for the output\nformat, see [`gcloud recommender recommendations list`](/sdk/gcloud/reference/recommender/recommendations/list).\n\n\u003cbr /\u003e\n\n### Recommender API\n\n\nTo list your Error Reporting recommendations by using the\nRecommender API, run the following command: \n\n```\ncurl -H \"Authorization: Bearer $(gcloud auth print-access-token)\" \\\n\"https://recommender.googleapis.com/v1/projects/PROJECT_ID/locations/global/recommenders/google.clouderrorreporting.Recommender/recommendations\"\n```\n\nReplace \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e with the identifier for your Google Cloud project.\n\nFor more information, see [Using the API - Recommendations](/recommender/docs/using-api).\n\n\u003cbr /\u003e\n\nView insights\n-------------\n\nThe Error Reporting recommender generates recommendations\nbased on [insights](/recommender/docs/insights/using-insights). You can retrieve these insights\nby using the Google Cloud CLI or the Recommender API. \n\n### gcloud CLI\n\n\nTo list your Error Reporting insights by using the\ngcloud CLI, run the following command: \n\n```\ngcloud recommender insights list \\\n --insight-type=google.clouderrorreporting.Insight \\\n --project=PROJECT_ID \\\n --location=global\n```\n\nReplace \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e with the identifier for your Google Cloud project.\n\nFor more information about this command, including options for the output\nformat, see [`gcloud recommender insights list`](/sdk/gcloud/reference/recommender/insights/list).\n\n### Recommender API\n\n\nTo list your Error Reporting insights by using the\nRecommender API, run the following command: \n\n```\ncurl -H \"Authorization: Bearer $(gcloud auth print-access-token)\" \\\n\"https://recommender.googleapis.com/v1/projects/PROJECT_ID/locations/global/recommenders/google.clouderrorreporting.Insight/insights\"\n```\n\nReplace \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e with the identifier for your Google Cloud project.\n\nFor more information, see [Using the API - Insights](/recommender/docs/insights/using-api).\n\n\u003cbr /\u003e\n\nPricing\n-------\n\nError Reporting recommendations and insights are\navailable free of charge. For information about other pricing tiers, see\n[Recommender pricing](/recommender/pricing)."]]