bob.spec 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. {
  2. "module_spec": {
  3. "module_name": "Boss",
  4. "module_description": "Master process",
  5. "config_data": [
  6. {
  7. "item_name": "components",
  8. "item_type": "named_set",
  9. "item_optional": false,
  10. "item_default": {
  11. "b10-stats": { "address": "Stats", "kind": "dispensable" },
  12. "b10-cmdctl": { "special": "cmdctl", "kind": "needed" }
  13. },
  14. "named_set_item_spec": {
  15. "item_name": "component",
  16. "item_type": "map",
  17. "item_optional": false,
  18. "item_default": { },
  19. "map_item_spec": [
  20. {
  21. "item_name": "special",
  22. "item_optional": true,
  23. "item_type": "string"
  24. },
  25. {
  26. "item_name": "process",
  27. "item_optional": true,
  28. "item_type": "string"
  29. },
  30. {
  31. "item_name": "kind",
  32. "item_optional": false,
  33. "item_type": "string",
  34. "item_default": "dispensable"
  35. },
  36. {
  37. "item_name": "address",
  38. "item_optional": true,
  39. "item_type": "string"
  40. },
  41. {
  42. "item_name": "params",
  43. "item_optional": true,
  44. "item_type": "list",
  45. "list_item_spec": {
  46. "item_name": "param",
  47. "item_optional": false,
  48. "item_type": "string",
  49. "item_default": ""
  50. }
  51. },
  52. {
  53. "item_name": "priority",
  54. "item_optional": true,
  55. "item_type": "integer"
  56. }
  57. ]
  58. }
  59. }
  60. ],
  61. "commands": [
  62. {
  63. "command_name": "shutdown",
  64. "command_description": "Shut down BIND 10",
  65. "command_args": []
  66. },
  67. {
  68. "command_name": "ping",
  69. "command_description": "Ping the boss process",
  70. "command_args": []
  71. },
  72. {
  73. "command_name": "show_processes",
  74. "command_description": "List the running BIND 10 processes",
  75. "command_args": []
  76. }
  77. ],
  78. "statistics": [
  79. {
  80. "item_name": "boot_time",
  81. "item_type": "string",
  82. "item_optional": false,
  83. "item_default": "1970-01-01T00:00:00Z",
  84. "item_title": "Boot time",
  85. "item_description": "A date time when bind10 process starts initially",
  86. "item_format": "date-time"
  87. }
  88. ]
  89. }
  90. }