[#312] control: Define HealthStatus enum
Define enumeration of the statuses of storage node application. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
71fcbd3ed4
commit
0abb8acef3
3 changed files with 15 additions and 0 deletions
BIN
pkg/services/control/service.pb.go
generated
BIN
pkg/services/control/service.pb.go
generated
Binary file not shown.
BIN
pkg/services/control/types.pb.go
generated
BIN
pkg/services/control/types.pb.go
generated
Binary file not shown.
|
@ -101,3 +101,18 @@ message Netmap {
|
||||||
// Nodes presented in network.
|
// Nodes presented in network.
|
||||||
repeated NodeInfo nodes = 2 [json_name = "nodes"];
|
repeated NodeInfo nodes = 2 [json_name = "nodes"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Health status of the storage node application.
|
||||||
|
enum HealthStatus {
|
||||||
|
// Undefined status, default value.
|
||||||
|
HEALTH_STATUS_UNDEFINED = 0;
|
||||||
|
|
||||||
|
// Storage node application is starting.
|
||||||
|
STARTING = 1;
|
||||||
|
|
||||||
|
// Storage node application is started and serves all services.
|
||||||
|
READY = 2;
|
||||||
|
|
||||||
|
// Storage node application is shutting down.
|
||||||
|
SHUTTING_DOWN = 3;
|
||||||
|
}
|
Loading…
Reference in a new issue