aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2017-08-23 16:26:39 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2017-09-13 15:50:47 +0200
commiteb6fa5835db8dc3fdc55d75bb13c70464a3e7305 (patch)
treea62c10fcca001a40af41c70650f9e38ff1536630 /sonar-ws
parentda817d1a7f8511c1ee6e7a233df16c577dd961d7 (diff)
downloadsonarqube-eb6fa5835db8dc3fdc55d75bb13c70464a3e7305.tar.gz
sonarqube-eb6fa5835db8dc3fdc55d75bb13c70464a3e7305.zip
SONAR-9739 add WS api/system/health
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/protobuf/ws-system.proto41
1 files changed, 41 insertions, 0 deletions
diff --git a/sonar-ws/src/main/protobuf/ws-system.proto b/sonar-ws/src/main/protobuf/ws-system.proto
new file mode 100644
index 00000000000..4f0fd9af5fc
--- /dev/null
+++ b/sonar-ws/src/main/protobuf/ws-system.proto
@@ -0,0 +1,41 @@
+// SonarQube, open source software quality management tool.
+// Copyright (C) 2008-2016 SonarSource
+// mailto:contact AT sonarsource DOT com
+//
+// SonarQube is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 3 of the License, or (at your option) any later version.
+//
+// SonarQube is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program; if not, write to the Free Software Foundation,
+// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+syntax = "proto2";
+
+package sonarqube.ws.system;
+
+option java_package = "org.sonarqube.ws";
+option java_outer_classname = "WsSystem";
+option optimize_for = SPEED;
+
+// GET api/system/health
+message HealthResponse {
+ optional Health health = 1;
+ repeated Cause causes = 2;
+}
+
+message Cause {
+ optional string message = 1;
+}
+
+enum Health {
+ GREEN = 0;
+ YELLOW = 1;
+ RED = 2;
+}