stats.spec.in 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {
  2. "module_spec": {
  3. "module_name": "Stats",
  4. "module_description": "Stats daemon",
  5. "config_data": [],
  6. "commands": [
  7. {
  8. "command_name": "status",
  9. "command_description": "identify whether stats module is alive or not",
  10. "command_args": []
  11. },
  12. {
  13. "command_name": "show",
  14. "command_description": "show the specified/all statistics data",
  15. "command_args": [
  16. {
  17. "item_name": "stats_item_name",
  18. "item_type": "string",
  19. "item_optional": true,
  20. "item_default": ""
  21. }
  22. ]
  23. },
  24. {
  25. "command_name": "set",
  26. "command_description": "set the value of specified name in statistics data",
  27. "command_args": [
  28. {
  29. "item_name": "stats_data",
  30. "item_type": "map",
  31. "item_optional": false,
  32. "item_default": {},
  33. "map_item_spec": []
  34. }
  35. ]
  36. },
  37. {
  38. "command_name": "remove",
  39. "command_description": "remove the specified name from statistics data",
  40. "command_args": [
  41. {
  42. "item_name": "stats_item_name",
  43. "item_type": "string",
  44. "item_optional": false,
  45. "item_default": ""
  46. }
  47. ]
  48. },
  49. {
  50. "command_name": "reset",
  51. "command_description": "reset all statistics data to default values except for several constant names",
  52. "command_args": []
  53. },
  54. {
  55. "command_name": "shutdown",
  56. "command_description": "Shut down the stats module",
  57. "command_args": []
  58. }
  59. ]
  60. }
  61. }