stats-httpd.spec 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {
  2. "module_spec": {
  3. "module_name": "StatsHttpd",
  4. "module_description": "Stats HTTP daemon",
  5. "config_data": [
  6. {
  7. "item_name": "listen_on",
  8. "item_type": "list",
  9. "item_optional": false,
  10. "item_default": [
  11. {
  12. "address": "127.0.0.1",
  13. "port": 8000
  14. }
  15. ],
  16. "list_item_spec": {
  17. "item_name": "address",
  18. "item_type": "map",
  19. "item_optional": false,
  20. "item_default": {},
  21. "map_item_spec": [
  22. {
  23. "item_name": "address",
  24. "item_type": "string",
  25. "item_optional": true,
  26. "item_default": "127.0.0.1",
  27. "item_description": "listen-on address for HTTP"
  28. },
  29. {
  30. "item_name": "port",
  31. "item_type": "integer",
  32. "item_optional": true,
  33. "item_default": 8000,
  34. "item_description": "listen-on port for HTTP"
  35. }
  36. ]
  37. },
  38. "item_description": "http listen-on address and port"
  39. }
  40. ],
  41. "commands": [
  42. {
  43. "command_name": "status",
  44. "command_description": "Status of the stats httpd",
  45. "command_args": []
  46. },
  47. {
  48. "command_name": "shutdown",
  49. "command_description": "Shut down the stats httpd",
  50. "command_args": [
  51. {
  52. "item_name": "pid",
  53. "item_type": "integer",
  54. "item_optional": true
  55. }
  56. ]
  57. }
  58. ]
  59. }
  60. }