File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ message HealthCheckResponse {
43
43
44
44
service Health {
45
45
rpc Check(HealthCheckRequest) returns (HealthCheckResponse);
46
+
47
+ rpc Watch(HealthCheckRequest) returns (stream HealthCheckResponse);
46
48
}
47
49
```
48
50
@@ -68,3 +70,8 @@ matching semantics that both the client and server agree upon.
68
70
A client can declare the server as unhealthy if the rpc is not finished after
69
71
some amount of time. The client should be able to handle the case where server
70
72
does not have the Health service.
73
+
74
+ A client can call the ` Watch ` method to perform a streaming health-check.
75
+ The server will immediately send back a message indicating the current
76
+ serving status. It will then subsequently send a new message whenever
77
+ the service's serving status changes.
You can’t perform that action at this time.
0 commit comments