[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-07。"],[],[],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)."]]