2021-02-15 07:50:51 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2021-02-21 15:30:39 +00:00
|
|
|
package inetmock.rpc;
|
|
|
|
|
|
|
|
option csharp_namespace = "INetMock.Client.Rpc";
|
2021-02-15 07:50:51 +00:00
|
|
|
option go_package = "gitlab.com/inetmock/inetmock/internal/rpc";
|
|
|
|
option java_multiple_files = true;
|
|
|
|
option java_outer_classname = "HealthProto";
|
2021-02-21 15:30:39 +00:00
|
|
|
option java_package = "com.github.baez90.inetmock.rpc";
|
2021-02-15 07:50:51 +00:00
|
|
|
|
|
|
|
service Health {
|
2021-02-21 15:30:39 +00:00
|
|
|
rpc GetHealth(HealthRequest) returns (HealthResponse);
|
2021-02-15 07:50:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
enum HealthState {
|
2021-02-21 15:30:39 +00:00
|
|
|
HEALTHY = 0;
|
|
|
|
INITIALIZING = 1;
|
|
|
|
UNHEALTHY = 2;
|
|
|
|
UNKNOWN = 3;
|
2021-02-15 07:50:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message HealthRequest {
|
2021-02-21 15:30:39 +00:00
|
|
|
repeated string components = 1;
|
2021-02-15 07:50:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message ComponentHealth {
|
2021-02-21 15:30:39 +00:00
|
|
|
HealthState State = 1;
|
|
|
|
string message = 2;
|
2021-02-15 07:50:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message HealthResponse {
|
2021-02-21 15:30:39 +00:00
|
|
|
HealthState overallHealthState = 1;
|
|
|
|
map<string, ComponentHealth> componentsHealth = 2;
|
2021-02-15 16:59:40 +00:00
|
|
|
}
|