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-hotspots.proto 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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.hotspots;
  20. import "ws-commons.proto";
  21. option java_package = "org.sonarqube.ws";
  22. option java_outer_classname = "Hotspots";
  23. option optimize_for = SPEED;
  24. // Response of GET api/hotspots/search
  25. message SearchWsResponse {
  26. optional sonarqube.ws.commons.Paging paging = 1;
  27. repeated Hotspot hotspots = 2;
  28. repeated Component components = 3;
  29. message Hotspot {
  30. optional string key = 1;
  31. optional string component = 2;
  32. optional string project = 3;
  33. optional string securityCategory = 4;
  34. optional string vulnerabilityProbability = 5;
  35. optional string status = 6;
  36. optional string resolution = 7;
  37. optional int32 line = 8;
  38. optional string message = 9;
  39. optional string assignee = 10;
  40. optional string author = 11;
  41. optional string creationDate = 12;
  42. optional string updateDate = 13;
  43. optional sonarqube.ws.commons.TextRange textRange = 14;
  44. repeated sonarqube.ws.commons.Flow flows = 15;
  45. }
  46. }
  47. // Response of GET api/hotspots/show
  48. message ShowWsResponse {
  49. optional string key = 1;
  50. optional Component component = 2;
  51. optional Component project = 3;
  52. optional Rule rule = 4;
  53. optional string status = 5;
  54. optional string resolution = 6;
  55. optional int32 line = 7;
  56. optional string hash = 18;
  57. optional string message = 8;
  58. optional string assignee = 9;
  59. optional string author = 10;
  60. optional string creationDate = 11;
  61. optional string updateDate = 12;
  62. optional sonarqube.ws.commons.TextRange textRange = 13;
  63. repeated sonarqube.ws.commons.Changelog changelog = 14;
  64. repeated sonarqube.ws.commons.Comment comment = 15;
  65. repeated sonarqube.ws.commons.User users = 16;
  66. optional bool canChangeStatus = 17;
  67. repeated sonarqube.ws.commons.Flow flows = 19;
  68. }
  69. message Component {
  70. reserved 1; //drop organization
  71. optional string key = 2;
  72. optional string qualifier = 3;
  73. optional string name = 4;
  74. optional string longName = 5;
  75. optional string path = 6;
  76. optional string branch = 7;
  77. optional string pullRequest = 8;
  78. }
  79. message Rule {
  80. optional string key = 1;
  81. optional string name = 2;
  82. optional string securityCategory = 3;
  83. optional string vulnerabilityProbability = 4;
  84. optional string riskDescription = 5 [deprecated=true];
  85. optional string vulnerabilityDescription = 6 [deprecated=true];
  86. optional string fixRecommendations = 7 [deprecated=true];
  87. }