Metoda HealthCheck
Ta metoda zwraca stan serwera rezerwacji. Umożliwia to Google ciągłe monitorowanie stanu serwera rezerwacji.
Wyślij prośbę
Brak
Zwracana wartość
Brak.
Użyj kodu stanu HTTP, aby wskazać stan wyświetlania serwera. Zwracaj kod stanu HTTP 200 (OK), jeśli serwer działa prawidłowo,
lub aby wskazać błąd, zwracaj jeden z kodów stanu HTTP.
Pamiętaj, że zwrócenie kodu stanu innego niż 200 może wpłynąć na stan integracji.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-11-26 UTC.
[null,null,["Ostatnia aktualizacja: 2024-11-26 UTC."],[[["This method allows Google to monitor the health of your Booking Server."],["You need to use HTTP status codes to indicate the server's health (200 for OK, other codes for errors)."],["Returning a non-200 status code might impact your integration with Google."]]],["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"]]