HealthCheck 方法
這個方法會傳回預訂伺服器的狀態,協助 Google 持續監控預訂伺服器的服務狀態。
要求
無。
傳回值
無。
請使用 HTTP 狀態碼來表示伺服器的服務狀態。如果伺服器順利運作,請傳回 HTTP 狀態碼 200 (OK);如要表示發生錯誤,請傳回其中一個 HTTP 狀態碼。
請注意,傳回非 200 狀態碼可能會影響整合狀態。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-26 (世界標準時間)。
[null,null,["上次更新時間:2024-11-26 (世界標準時間)。"],[[["This method allows Google to monitor the health and serving status of your Booking Server."],["You should return a 200 (OK) HTTP status code if your server is running successfully."],["Return a non-200 HTTP status code to indicate an error, using the provided status code reference."],["Using a non-200 status code may impact your integration status with Google."]]],["The core content details a method for checking a Booking Server's health status. Google monitors this status, and no request or return value is needed. The server's status is conveyed solely through HTTP status codes. A 200 (OK) code signifies a healthy server, while other HTTP status codes from a specified list indicate errors. Non-200 codes can impact integration status.\n"]]