mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-07 21:02:51 -05:00
add health command (#2659)
* add health command * update health check implementation to allow for more checks to added over time * add change changelog entry
This commit is contained in:
@@ -182,6 +182,14 @@ service HeadscaleService {
|
||||
}
|
||||
// --- Policy end ---
|
||||
|
||||
// --- Health start ---
|
||||
rpc Health(HealthRequest) returns (HealthResponse) {
|
||||
option (google.api.http) = {
|
||||
get : "/api/v1/health"
|
||||
};
|
||||
}
|
||||
// --- Health end ---
|
||||
|
||||
// Implement Tailscale API
|
||||
// rpc GetDevice(GetDeviceRequest) returns(GetDeviceResponse) {
|
||||
// option(google.api.http) = {
|
||||
@@ -209,3 +217,9 @@ service HeadscaleService {
|
||||
// };
|
||||
// }
|
||||
}
|
||||
|
||||
message HealthRequest {}
|
||||
|
||||
message HealthResponse {
|
||||
bool database_connectivity = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user