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-webhooks.proto 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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.webhooks;
  20. import "ws-commons.proto";
  21. option java_package = "org.sonarqube.ws";
  22. option java_outer_classname = "Webhooks";
  23. option optimize_for = SPEED;
  24. message LatestDelivery {
  25. optional string id = 1;
  26. optional string at = 2;
  27. optional bool success = 3;
  28. optional int32 httpStatus = 4;
  29. optional int32 durationMs = 5;
  30. }
  31. message ListResponseElement {
  32. optional string key = 1;
  33. optional string name = 2;
  34. optional string url = 3;
  35. optional LatestDelivery latestDelivery = 4;
  36. }
  37. // GET api/webhooks/list
  38. message ListResponse {
  39. repeated ListResponseElement webhooks = 1;
  40. }
  41. // POST api/webhooks/create
  42. message CreateWsResponse {
  43. optional Webhook webhook = 1;
  44. message Webhook {
  45. optional string key = 1;
  46. optional string name = 2;
  47. optional string url = 3;
  48. }
  49. }
  50. // WS api/webhooks/deliveries
  51. message DeliveriesWsResponse {
  52. optional sonarqube.ws.commons.Paging paging = 1;
  53. repeated Delivery deliveries = 2;
  54. }
  55. // WS api/webhooks/delivery
  56. message DeliveryWsResponse {
  57. optional Delivery delivery = 1;
  58. }
  59. message Delivery {
  60. optional string id = 1;
  61. optional string componentKey = 2;
  62. optional string ceTaskId = 3;
  63. optional string name = 4;
  64. optional string url = 5;
  65. optional string at = 6;
  66. optional bool success = 7;
  67. optional int32 httpStatus = 8;
  68. optional int32 durationMs = 9;
  69. optional string payload = 10;
  70. optional string errorStacktrace = 11;
  71. }