@@ -4,6 +4,8 @@ import type * as grpc from '@grpc/grpc-js'
44import type { MethodDefinition } from '@grpc/proto-loader'
55import type { HealthCheckRequest as _grpc_health_v1_HealthCheckRequest , HealthCheckRequest__Output as _grpc_health_v1_HealthCheckRequest__Output } from '../../../grpc/health/v1/HealthCheckRequest' ;
66import type { HealthCheckResponse as _grpc_health_v1_HealthCheckResponse , HealthCheckResponse__Output as _grpc_health_v1_HealthCheckResponse__Output } from '../../../grpc/health/v1/HealthCheckResponse' ;
7+ import type { HealthListRequest as _grpc_health_v1_HealthListRequest , HealthListRequest__Output as _grpc_health_v1_HealthListRequest__Output } from '../../../grpc/health/v1/HealthListRequest' ;
8+ import type { HealthListResponse as _grpc_health_v1_HealthListResponse , HealthListResponse__Output as _grpc_health_v1_HealthListResponse__Output } from '../../../grpc/health/v1/HealthListResponse' ;
79
810/**
911 * Health is gRPC's mechanism for checking whether a server is able to handle
@@ -42,6 +44,41 @@ export interface HealthClient extends grpc.Client {
4244 check ( argument : _grpc_health_v1_HealthCheckRequest , options : grpc . CallOptions , callback : grpc . requestCallback < _grpc_health_v1_HealthCheckResponse__Output > ) : grpc . ClientUnaryCall ;
4345 check ( argument : _grpc_health_v1_HealthCheckRequest , callback : grpc . requestCallback < _grpc_health_v1_HealthCheckResponse__Output > ) : grpc . ClientUnaryCall ;
4446
47+ /**
48+ * List provides a non-atomic snapshot of the health of all the available
49+ * services.
50+ *
51+ * The server may respond with a RESOURCE_EXHAUSTED error if too many services
52+ * exist.
53+ *
54+ * Clients should set a deadline when calling List, and can declare the server
55+ * unhealthy if they do not receive a timely response.
56+ *
57+ * Clients should keep in mind that the list of health services exposed by an
58+ * application can change over the lifetime of the process.
59+ */
60+ List ( argument : _grpc_health_v1_HealthListRequest , metadata : grpc . Metadata , options : grpc . CallOptions , callback : grpc . requestCallback < _grpc_health_v1_HealthListResponse__Output > ) : grpc . ClientUnaryCall ;
61+ List ( argument : _grpc_health_v1_HealthListRequest , metadata : grpc . Metadata , callback : grpc . requestCallback < _grpc_health_v1_HealthListResponse__Output > ) : grpc . ClientUnaryCall ;
62+ List ( argument : _grpc_health_v1_HealthListRequest , options : grpc . CallOptions , callback : grpc . requestCallback < _grpc_health_v1_HealthListResponse__Output > ) : grpc . ClientUnaryCall ;
63+ List ( argument : _grpc_health_v1_HealthListRequest , callback : grpc . requestCallback < _grpc_health_v1_HealthListResponse__Output > ) : grpc . ClientUnaryCall ;
64+ /**
65+ * List provides a non-atomic snapshot of the health of all the available
66+ * services.
67+ *
68+ * The server may respond with a RESOURCE_EXHAUSTED error if too many services
69+ * exist.
70+ *
71+ * Clients should set a deadline when calling List, and can declare the server
72+ * unhealthy if they do not receive a timely response.
73+ *
74+ * Clients should keep in mind that the list of health services exposed by an
75+ * application can change over the lifetime of the process.
76+ */
77+ list ( argument : _grpc_health_v1_HealthListRequest , metadata : grpc . Metadata , options : grpc . CallOptions , callback : grpc . requestCallback < _grpc_health_v1_HealthListResponse__Output > ) : grpc . ClientUnaryCall ;
78+ list ( argument : _grpc_health_v1_HealthListRequest , metadata : grpc . Metadata , callback : grpc . requestCallback < _grpc_health_v1_HealthListResponse__Output > ) : grpc . ClientUnaryCall ;
79+ list ( argument : _grpc_health_v1_HealthListRequest , options : grpc . CallOptions , callback : grpc . requestCallback < _grpc_health_v1_HealthListResponse__Output > ) : grpc . ClientUnaryCall ;
80+ list ( argument : _grpc_health_v1_HealthListRequest , callback : grpc . requestCallback < _grpc_health_v1_HealthListResponse__Output > ) : grpc . ClientUnaryCall ;
81+
4582 /**
4683 * Performs a watch for the serving status of the requested service.
4784 * The server will immediately send back a message indicating the current
@@ -102,6 +139,21 @@ export interface HealthHandlers extends grpc.UntypedServiceImplementation {
102139 */
103140 Check : grpc . handleUnaryCall < _grpc_health_v1_HealthCheckRequest__Output , _grpc_health_v1_HealthCheckResponse > ;
104141
142+ /**
143+ * List provides a non-atomic snapshot of the health of all the available
144+ * services.
145+ *
146+ * The server may respond with a RESOURCE_EXHAUSTED error if too many services
147+ * exist.
148+ *
149+ * Clients should set a deadline when calling List, and can declare the server
150+ * unhealthy if they do not receive a timely response.
151+ *
152+ * Clients should keep in mind that the list of health services exposed by an
153+ * application can change over the lifetime of the process.
154+ */
155+ List : grpc . handleUnaryCall < _grpc_health_v1_HealthListRequest__Output , _grpc_health_v1_HealthListResponse > ;
156+
105157 /**
106158 * Performs a watch for the serving status of the requested service.
107159 * The server will immediately send back a message indicating the current
@@ -125,5 +177,6 @@ export interface HealthHandlers extends grpc.UntypedServiceImplementation {
125177
126178export interface HealthDefinition extends grpc . ServiceDefinition {
127179 Check : MethodDefinition < _grpc_health_v1_HealthCheckRequest , _grpc_health_v1_HealthCheckResponse , _grpc_health_v1_HealthCheckRequest__Output , _grpc_health_v1_HealthCheckResponse__Output >
180+ List : MethodDefinition < _grpc_health_v1_HealthListRequest , _grpc_health_v1_HealthListResponse , _grpc_health_v1_HealthListRequest__Output , _grpc_health_v1_HealthListResponse__Output >
128181 Watch : MethodDefinition < _grpc_health_v1_HealthCheckRequest , _grpc_health_v1_HealthCheckResponse , _grpc_health_v1_HealthCheckRequest__Output , _grpc_health_v1_HealthCheckResponse__Output >
129182}
0 commit comments