diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2017-11-22 13:17:02 +0100 |
---|---|---|
committer | Eric Hartmann <hartmann.eric@gmail.Com> | 2017-12-04 13:44:55 +0100 |
commit | 90bd3b0bebe156c57cd12e9c835a81976f8b2919 (patch) | |
tree | cb1ae80c0bf528df389ed8072cd7f2924e509830 /sonar-ws | |
parent | ba30541afac7e59d5e910364b9d94c33d3b3dff9 (diff) | |
download | sonarqube-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.proto | 16 |
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; + } +} + |