Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

ws-webhooks.proto 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. // deprecated
  37. // optional string secret = 5;
  38. optional bool hasSecret = 6;
  39. }
  40. // GET api/webhooks/list
  41. message ListResponse {
  42. repeated ListResponseElement webhooks = 1;
  43. }
  44. // POST api/webhooks/create
  45. message CreateWsResponse {
  46. optional Webhook webhook = 1;
  47. message Webhook {
  48. optional string key = 1;
  49. optional string name = 2;
  50. optional string url = 3;
  51. // deprecated
  52. // optional string secret = 4;
  53. required bool hasSecret = 5;
  54. }
  55. }
  56. // WS api/webhooks/deliveries
  57. message DeliveriesWsResponse {
  58. optional sonarqube.ws.commons.Paging paging = 1;
  59. repeated Delivery deliveries = 2;
  60. }
  61. // WS api/webhooks/delivery
  62. message DeliveryWsResponse {
  63. optional Delivery delivery = 1;
  64. }
  65. message Delivery {
  66. optional string id = 1;
  67. optional string componentKey = 2;
  68. optional string ceTaskId = 3;
  69. optional string name = 4;
  70. optional string url = 5;
  71. optional string at = 6;
  72. optional bool success = 7;
  73. optional int32 httpStatus = 8;
  74. optional int32 durationMs = 9;
  75. optional string payload = 10;
  76. optional string errorStacktrace = 11;
  77. }