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.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. }
  45. // GET api/ce/analysis_status
  46. message AnalysisStatusWsResponse {
  47. optional Component component = 1;
  48. message Component {
  49. optional string organization = 1;
  50. optional string key = 2;
  51. optional string name = 3;
  52. repeated string warnings = 4;
  53. optional string branch = 5;
  54. optional string pullRequest = 6;
  55. }
  56. }
  57. // GET api/ce/component
  58. message ComponentResponse {
  59. repeated Task queue = 1;
  60. optional Task current = 2;
  61. }
  62. // GET api/ce/info
  63. message InfoWsResponse {
  64. optional WorkersPauseStatus workersPauseStatus = 1;
  65. }
  66. enum WorkersPauseStatus {
  67. RESUMED = 0;
  68. PAUSING = 1;
  69. PAUSED = 2;
  70. }
  71. // GET api/ce/task_types
  72. message TaskTypesWsResponse {
  73. repeated string taskTypes = 1;
  74. }
  75. // GET api/ce/worker_count
  76. message WorkerCountResponse {
  77. optional int32 value = 1;
  78. optional bool canSetWorkerCount = 2;
  79. }
  80. message Task {
  81. optional string id = 1;
  82. optional string type = 2;
  83. optional string componentId = 3;
  84. optional string componentKey = 4;
  85. optional string componentName = 5;
  86. optional string componentQualifier = 6;
  87. optional string analysisId = 7;
  88. optional TaskStatus status = 8;
  89. optional string submittedAt = 9;
  90. optional string submitterLogin = 10;
  91. optional string startedAt = 11;
  92. optional string executedAt = 12;
  93. optional bool isLastExecuted = 13;
  94. optional int64 executionTimeMs = 14;
  95. optional bool logs = 15;
  96. optional string errorMessage = 16;
  97. optional string errorStacktrace = 17;
  98. optional string scannerContext = 18;
  99. optional bool hasScannerContext = 19;
  100. optional string organization = 20;
  101. optional string branch = 21;
  102. optional sonarqube.ws.commons.BranchType branchType = 22;
  103. optional string errorType = 23;
  104. optional string pullRequest = 24;
  105. optional string pullRequestTitle = 25;
  106. optional int32 warningCount = 26;
  107. repeated string warnings = 27;
  108. }
  109. enum TaskStatus {
  110. PENDING = 0;
  111. IN_PROGRESS = 1;
  112. SUCCESS = 2;
  113. FAILED = 3;
  114. CANCELED = 4;
  115. }