aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws/src/main/protobuf/ws-system.proto
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-ws/src/main/protobuf/ws-system.proto')
-rw-r--r--sonar-ws/src/main/protobuf/ws-system.proto16
1 files changed, 16 insertions, 0 deletions
diff --git a/sonar-ws/src/main/protobuf/ws-system.proto b/sonar-ws/src/main/protobuf/ws-system.proto
index 4f0fd9af5fc..39ad9210eb7 100644
--- a/sonar-ws/src/main/protobuf/ws-system.proto
+++ b/sonar-ws/src/main/protobuf/ws-system.proto
@@ -30,6 +30,13 @@ message HealthResponse {
repeated Cause causes = 2;
}
+// GET api/system/status
+message StatusResponse {
+ optional string id = 1;
+ optional string version = 2;
+ optional Status status = 3;
+}
+
message Cause {
optional string message = 1;
}
@@ -39,3 +46,12 @@ enum Health {
YELLOW = 1;
RED = 2;
}
+
+enum Status {
+ STARTING = 0;
+ UP = 1;
+ DOWN = 2;
+ RESTARTING = 3;
+ DB_MIGRATION_NEEDED = 4;
+ DB_MIGRATION_RUNNING = 5;
+}