File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
packages/grpc-health-check/proto/health/v1 Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,13 @@ option java_multiple_files = true;
25
25
option java_outer_classname = "HealthProto" ;
26
26
option java_package = "io.grpc.health.v1" ;
27
27
28
+ message HealthListRequest {}
29
+
30
+ message HealthListResponse {
31
+ // statuses contains all the services and their respective status.
32
+ map <string , HealthCheckResponse > statuses = 1 ;
33
+ }
34
+
28
35
message HealthCheckRequest {
29
36
string service = 1 ;
30
37
}
@@ -70,4 +77,17 @@ service Health {
70
77
// call. If the call terminates with any other status (including OK),
71
78
// clients should retry the call with appropriate exponential backoff.
72
79
rpc Watch (HealthCheckRequest ) returns (stream HealthCheckResponse );
80
+
81
+ // List provides a non-atomic snapshot of the health of all the available
82
+ // services.
83
+ //
84
+ // The server may respond with a RESOURCE_EXHAUSTED error if too many services
85
+ // exist.
86
+ //
87
+ // Clients should set a deadline when calling List, and can declare the server
88
+ // unhealthy if they do not receive a timely response.
89
+ //
90
+ // Clients should keep in mind that the list of health services exposed by an
91
+ // application can change over the lifetime of the process.
92
+ rpc List (HealthListRequest ) returns (HealthListResponse );
73
93
}
You can’t perform that action at this time.
0 commit comments