[#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:
Leonard Lyubich 2021-01-15 13:13:41 +03:00 committed by Alex Vanin
parent 71fcbd3ed4
commit 0abb8acef3
3 changed files with 15 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View file

@ -101,3 +101,18 @@ message Netmap {
// Nodes presented in network.
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;
}