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-system.proto 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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.system;
  20. option java_package = "org.sonarqube.ws";
  21. option java_outer_classname = "System";
  22. option optimize_for = SPEED;
  23. // GET api/system/health
  24. message HealthResponse {
  25. optional Health health = 1;
  26. repeated Cause causes = 2;
  27. optional Nodes nodes = 3;
  28. }
  29. message Nodes {
  30. repeated Node nodes = 1;
  31. }
  32. // GET api/system/status
  33. message StatusResponse {
  34. optional string id = 1;
  35. optional string version = 2;
  36. optional Status status = 3;
  37. }
  38. message Cause {
  39. optional string message = 1;
  40. }
  41. enum Health {
  42. GREEN = 0;
  43. YELLOW = 1;
  44. RED = 2;
  45. }
  46. enum Status {
  47. STARTING = 0;
  48. UP = 1;
  49. DOWN = 2;
  50. RESTARTING = 3;
  51. DB_MIGRATION_NEEDED = 4;
  52. DB_MIGRATION_RUNNING = 5;
  53. }
  54. message Node {
  55. optional string name = 1;
  56. optional NodeType type = 2;
  57. optional string host = 3;
  58. optional int32 port = 4;
  59. optional string startedAt = 5;
  60. optional Health health = 6;
  61. repeated Cause causes = 7;
  62. }
  63. enum NodeType {
  64. APPLICATION = 0;
  65. SEARCH = 1;
  66. }