aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2017-11-22 13:17:02 +0100
committerEric Hartmann <hartmann.eric@gmail.Com>2017-12-04 13:44:55 +0100
commit90bd3b0bebe156c57cd12e9c835a81976f8b2919 (patch)
treecb1ae80c0bf528df389ed8072cd7f2924e509830 /sonar-ws
parentba30541afac7e59d5e910364b9d94c33d3b3dff9 (diff)
downloadsonarqube-90bd3b0bebe156c57cd12e9c835a81976f8b2919.tar.gz
sonarqube-90bd3b0bebe156c57cd12e9c835a81976f8b2919.zip
SONAR-10087 Use protobuf in api/qualitygates/show
Also take the opportunity to move business from QualityGates to ShowAction
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/protobuf/ws-qualitygates.proto16
1 files changed, 16 insertions, 0 deletions
diff --git a/sonar-ws/src/main/protobuf/ws-qualitygates.proto b/sonar-ws/src/main/protobuf/ws-qualitygates.proto
index 7a40a0bf2ce..ef51ba14a39 100644
--- a/sonar-ws/src/main/protobuf/ws-qualitygates.proto
+++ b/sonar-ws/src/main/protobuf/ws-qualitygates.proto
@@ -118,5 +118,21 @@ message UpdateConditionResponse {
optional int32 period = 6;
}
+// GET api/qualitygates/show
+message ShowWsResponse {
+ optional int64 id = 1;
+ optional string name = 2;
+ repeated Condition conditions = 3;
+
+ message Condition {
+ optional int64 id = 1;
+ optional string metric = 2;
+ optional int32 period = 3;
+ optional string op = 4;
+ optional string warning = 5;
+ optional string error = 6;
+ }
+}
+