You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ws-ce.proto 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. // SonarQube, open source software quality management tool.
  2. // Copyright (C) 2008-2016 SonarSource
  3. // mailto:contact AT sonarsource DOT com
  4. //
  5. // SonarQube is free software; you can redistribute it and/or
  6. // modify it under the terms of the GNU Lesser General Public
  7. // License as published by the Free Software Foundation; either
  8. // version 3 of the License, or (at your option) any later version.
  9. //
  10. // SonarQube is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. // Lesser General Public License for more details.
  14. //
  15. // You should have received a copy of the GNU Lesser General Public License
  16. // along with this program; if not, write to the Free Software Foundation,
  17. // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18. syntax = "proto2";
  19. package sonarqube.ws.ce;
  20. import "ws-commons.proto";
  21. option java_package = "org.sonarqube.ws";
  22. option java_outer_classname = "Ce";
  23. option optimize_for = SPEED;
  24. // POST api/ce/submit
  25. message SubmitResponse {
  26. optional string taskId = 1;
  27. optional string projectId = 2;
  28. }
  29. // GET api/ce/task
  30. message TaskResponse {
  31. optional Task task = 1;
  32. }
  33. // GET api/ce/activity
  34. message ActivityResponse {
  35. // paging has been deprecated in 5.5
  36. optional sonarqube.ws.commons.Paging unusedPaging = 1;
  37. repeated Task tasks = 2;
  38. }
  39. // GET api/ce/activity_status
  40. message ActivityStatusWsResponse {
  41. optional int32 pending = 1;
  42. optional int32 failing = 2;
  43. optional int32 inProgress = 3;
  44. optional int64 pendingTime = 4;
  45. }
  46. // GET api/ce/analysis_status
  47. message AnalysisStatusWsResponse {
  48. optional Component component = 1;
  49. message Component {
  50. optional string organization = 1;
  51. optional string key = 2;
  52. optional string name = 3;
  53. repeated string warnings = 4;
  54. optional string branch = 5;
  55. optional string pullRequest = 6;
  56. }
  57. }
  58. // GET api/ce/component
  59. message ComponentResponse {
  60. repeated Task queue = 1;
  61. optional Task current = 2;
  62. }
  63. // GET api/ce/info
  64. message InfoWsResponse {
  65. optional WorkersPauseStatus workersPauseStatus = 1;
  66. }
  67. enum WorkersPauseStatus {
  68. RESUMED = 0;
  69. PAUSING = 1;
  70. PAUSED = 2;
  71. }
  72. // GET api/ce/task_types
  73. message TaskTypesWsResponse {
  74. repeated string taskTypes = 1;
  75. }
  76. // GET api/ce/worker_count
  77. message WorkerCountResponse {
  78. optional int32 value = 1;
  79. optional bool canSetWorkerCount = 2;
  80. }
  81. message Task {
  82. optional string id = 1;
  83. optional string type = 2;
  84. optional string componentId = 3;
  85. optional string componentKey = 4;
  86. optional string componentName = 5;
  87. optional string componentQualifier = 6;
  88. optional string analysisId = 7;
  89. optional TaskStatus status = 8;
  90. optional string submittedAt = 9;
  91. optional string submitterLogin = 10;
  92. optional string startedAt = 11;
  93. optional string executedAt = 12;
  94. optional bool isLastExecuted = 13;
  95. optional int64 executionTimeMs = 14;
  96. optional bool logs = 15;
  97. optional string errorMessage = 16;
  98. optional string errorStacktrace = 17;
  99. optional string scannerContext = 18;
  100. optional bool hasScannerContext = 19;
  101. optional string organization = 20;
  102. optional string branch = 21;
  103. optional sonarqube.ws.commons.BranchType branchType = 22;
  104. optional string errorType = 23;
  105. optional string pullRequest = 24;
  106. optional string pullRequestTitle = 25;
  107. optional int32 warningCount = 26;
  108. repeated string warnings = 27;
  109. }
  110. enum TaskStatus {
  111. PENDING = 0;
  112. IN_PROGRESS = 1;
  113. SUCCESS = 2;
  114. FAILED = 3;
  115. CANCELED = 4;
  116. }