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-projectanalyses.proto 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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.projectanalysis;
  20. import "ws-commons.proto";
  21. option java_package = "org.sonarqube.ws";
  22. option java_outer_classname = "ProjectAnalyses";
  23. option optimize_for = SPEED;
  24. // WS api/project_analyses/create_event
  25. message CreateEventResponse {
  26. optional Event event = 1;
  27. }
  28. // WS api/project_analyses/update_event
  29. message UpdateEventResponse {
  30. optional Event event = 1;
  31. }
  32. // WS api/project_analyses/search
  33. message SearchResponse {
  34. optional sonarqube.ws.commons.Paging paging = 1;
  35. repeated Analysis analyses = 2;
  36. }
  37. message Event {
  38. optional string key = 1;
  39. optional string analysis = 2;
  40. optional string category = 3;
  41. optional string name = 4;
  42. optional string description = 5;
  43. optional QualityGate qualityGate = 6;
  44. optional DefinitionChange definitionChange = 7;
  45. }
  46. message Analysis {
  47. optional string key = 1;
  48. optional string date = 2;
  49. repeated Event events = 3;
  50. }
  51. message QualityGate {
  52. optional string status = 1;
  53. optional bool stillFailing = 2;
  54. repeated Failing failing = 3;
  55. }
  56. message Failing {
  57. optional string key = 1;
  58. optional string name = 2;
  59. optional string branch = 3;
  60. }
  61. message DefinitionChange {
  62. repeated Project projects = 1;
  63. }
  64. message Project {
  65. optional string changeType = 1;
  66. optional string key = 2;
  67. optional string name = 3;
  68. optional string branch = 4;
  69. optional string oldBranch = 5;
  70. optional string newBranch = 6;
  71. }