HealthCheck 方法
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
這個方法會傳回預訂伺服器的狀態,協助 Google 持續監控預訂伺服器的服務狀態。
要求
無。
傳回值
無。
請使用 HTTP 狀態碼來表示伺服器的服務狀態。如果伺服器順利運作,請傳回 HTTP 狀態碼 200 (OK);如要表示發生錯誤,請傳回其中一個 HTTP 狀態碼。
請注意,傳回非 200 狀態碼可能會影響整合狀態。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eThis method allows Google to monitor the health of your Booking Server.\u003c/p\u003e\n"],["\u003cp\u003eYou need to use HTTP status codes to indicate the server's health (200 for OK, other codes for errors).\u003c/p\u003e\n"],["\u003cp\u003eReturning a non-200 status code might impact your integration with Google.\u003c/p\u003e\n"]]],["The Booking Server health status is checked via an HTTP request with no request body or return value. A successful server is indicated by an HTTP status code of 200 (OK). Any other HTTP status code, as defined in the provided status code documentation, signals an error. Returning a non-200 status code may negatively impact integration. Google uses this method to monitor the operational status of the server.\n"],null,["# HealthCheck method\n\nThis method returns your Booking Server health status. It enables Google to\ncontinuously monitor the serving state of your Booking server.\n\n**Request**\n\nNone\n\n**Return value**\n\nNone.\n\nUse HTTP status code to indicate the serving status of your server. Return\nan HTTP status code 200 (OK) if the server is up and running successfully,\nor to indicate an error please return one of\n[HTTP status code](/actions-center/verticals/local-services/e2e/reference/booking-server-api-rest/e2e-methods/status-codes).\n\n\nPlease note that returning a non-200 status code may affect your integration status."]]