aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws/src/main/protobuf/ws-ce.proto
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-09-09 18:14:31 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-09-18 23:48:48 +0200
commit024672b883d5b81af0838106fe53df31365444f2 (patch)
tree0201950a25ec411bbcee9a87e4f21f9c021ae2d5 /sonar-ws/src/main/protobuf/ws-ce.proto
parentfaf4df42facfd3175f4689f2ea3013e92bfe301e (diff)
downloadsonarqube-024672b883d5b81af0838106fe53df31365444f2.tar.gz
sonarqube-024672b883d5b81af0838106fe53df31365444f2.zip
Replace table ANALYSIS_REPORTS by CE_QUEUE and CE_ACTIVITY
Diffstat (limited to 'sonar-ws/src/main/protobuf/ws-ce.proto')
-rw-r--r--sonar-ws/src/main/protobuf/ws-ce.proto72
1 files changed, 72 insertions, 0 deletions
diff --git a/sonar-ws/src/main/protobuf/ws-ce.proto b/sonar-ws/src/main/protobuf/ws-ce.proto
new file mode 100644
index 00000000000..fa558dd598c
--- /dev/null
+++ b/sonar-ws/src/main/protobuf/ws-ce.proto
@@ -0,0 +1,72 @@
+// SonarQube, open source software quality management tool.
+// Copyright (C) 2008-2015 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.ce;
+
+import "ws-commons.proto";
+
+option java_package = "org.sonarqube.ws";
+option java_outer_classname = "WsCe";
+option optimize_for = SPEED;
+
+// POST api/ce/submit
+message SubmitResponse {
+ optional string taskId = 1;
+ optional string projectId = 2;
+}
+
+// GET api/ce/task
+message TaskResponse {
+ optional Task task = 1;
+}
+
+// GET api/ce/queue
+message QueueResponse {
+ repeated Task tasks = 1;
+}
+
+// GET api/ce/activity
+message ActivityResponse {
+ optional sonarqube.ws.commons.Paging paging = 1;
+ repeated Task tasks = 2;
+}
+
+message Task {
+ optional string id = 1;
+ optional string taskType = 2;
+ optional string componentId = 3;
+ optional string componentKey = 4;
+ optional string componentName = 5;
+ optional TaskStatus status = 6;
+ optional string submittedAt = 7;
+ optional string submitterLogin = 8;
+ optional string startedAt = 9;
+ optional string finishedAt = 10;
+ optional bool isLastFinished = 11;
+ optional int64 executionTimeMs = 12;
+}
+
+enum TaskStatus {
+ PENDING = 0;
+ IN_PROGRESS = 1;
+ SUCCESS = 2;
+ FAILED = 3;
+ CANCELED = 4;
+}