aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws/src
diff options
context:
space:
mode:
authorGuillaume Jambet <guillaume.jambet@sonarsource.com>2018-01-30 16:02:22 +0100
committerGuillaume Jambet <guillaume.jambet@gmail.com>2018-03-01 15:21:05 +0100
commitee3a17fa0f5a597f7f8d76562cb8d15fc6b3b342 (patch)
tree7cec190e0545123060331f45addd157d2b7a64da /sonar-ws/src
parent2bc87f33684239adbfa746db78ca73290688adaa (diff)
downloadsonarqube-ee3a17fa0f5a597f7f8d76562cb8d15fc6b3b342.tar.gz
sonarqube-ee3a17fa0f5a597f7f8d76562cb8d15fc6b3b342.zip
SONAR-10344 add service api/webhooks/search interface.
Diffstat (limited to 'sonar-ws/src')
-rw-r--r--sonar-ws/src/main/protobuf/ws-webhooks.proto21
1 files changed, 21 insertions, 0 deletions
diff --git a/sonar-ws/src/main/protobuf/ws-webhooks.proto b/sonar-ws/src/main/protobuf/ws-webhooks.proto
index a7ef3a9ab2b..30ae14d8a4d 100644
--- a/sonar-ws/src/main/protobuf/ws-webhooks.proto
+++ b/sonar-ws/src/main/protobuf/ws-webhooks.proto
@@ -24,6 +24,27 @@ option java_package = "org.sonarqube.ws";
option java_outer_classname = "Webhooks";
option optimize_for = SPEED;
+// WS api/webhooks/search
+message SearchWsResponse {
+ repeated Search webhooks = 1;
+}
+
+message Search {
+ optional string key = 1;
+ optional string name = 2;
+ optional string url = 3;
+ optional LatestDelivery latestDelivery = 4;
+}
+
+message LatestDelivery {
+ optional string id = 1;
+ optional string at = 2;
+ optional string success = 3;
+ optional string httpStatus = 4;
+ optional string durationMs = 5;
+}
+
+
// WS api/webhooks/deliveries
message DeliveriesWsResponse {
repeated Delivery deliveries = 1;