HealthCheck 方法
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
此方法会返回您的预订服务器的运行状况。它使 Google 能够持续监控您的预订服务器的服务状态。
请求
无
返回值
无。
使用 HTTP 状态代码来指明您的服务器的服务状态。如果服务器已成功启动并运行,则返回 HTTP 状态代码 200 (OK),如果出现错误,则返回相应的 HTTP 状态代码。
请注意,返回非 200 状态代码可能会影响您的集成状态。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThis method allows Google to monitor the health and serving status of your Booking Server.\u003c/p\u003e\n"],["\u003cp\u003eYou need to use HTTP status codes to indicate the status of your server; 200 (OK) for successful operation and other codes for errors as defined in the provided reference.\u003c/p\u003e\n"],["\u003cp\u003eReturning a non-200 status code might negatively impact the status of your integration with Google.\u003c/p\u003e\n"]]],["The method checks a Booking Server's health status, allowing continuous monitoring. No request or return value is required; the server's status is indicated solely through the HTTP status code. A 200 (OK) code means the server is operational. Any other HTTP status code, as defined in the provided reference, signifies an error and can impact integration status.\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/reservations/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."]]