本文說明使用 Personalized Service Health 時可能遇到的問題,以及解決方法。
API 擲回 403 錯誤
如果存取未啟用的 API,您會收到下列錯誤訊息:
{
"error": {
"code": 403,
"message": "Service Health API has not been used in project PROJECT_ID before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/servicehealth.googleapis.com/overview?project=PROJECT_ID then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
"status": "PERMISSION_DENIED",
"details": [
{
"@type": "type.googleapis.com/google.rpc.Help",
"links": [
{
"description": "Google developers console API activation",
"url": "https://console.developers.google.com/apis/api/servicehealth.googleapis.com/overview?project=PROJECT_ID"
}
]
},
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "SERVICE_DISABLED",
"domain": "googleapis.com",
"metadata": {
"consumer": "projects/PROJECT_ID",
"service": "servicehealth.googleapis.com"
}
}
]
}
}
新事件未觸發警告
如果事件的關聯性為「不明」,Personalized Service Health 就不會傳送通知。或者,快訊政策可能設定錯誤。
提供意見、要求功能或回報問題
- 前往 Google Cloud 控制台全域導覽列中的「支援」按鈕。
- 選取「提供意見」。
- 撰寫意見回饋、建議功能或回報問題。
- (選用) 附上螢幕截圖。
- 選取「傳送」。