types.go 970 B

1234567891011121314151617181920212223242526272829303132
  1. package analytic
  2. type MemStat struct {
  3. Total string `json:"total"`
  4. Used string `json:"used"`
  5. Cached string `json:"cached"`
  6. Free string `json:"free"`
  7. SwapUsed string `json:"swap_used"`
  8. SwapTotal string `json:"swap_total"`
  9. SwapCached string `json:"swap_cached"`
  10. SwapPercent float64 `json:"swap_percent"`
  11. Pressure float64 `json:"pressure"`
  12. }
  13. type PartitionStat struct {
  14. Mountpoint string `json:"mountpoint"`
  15. Device string `json:"device"`
  16. Fstype string `json:"fstype"`
  17. Total string `json:"total"`
  18. Used string `json:"used"`
  19. Free string `json:"free"`
  20. Percentage float64 `json:"percentage"`
  21. }
  22. type DiskStat struct {
  23. Total string `json:"total"`
  24. Used string `json:"used"`
  25. Percentage float64 `json:"percentage"`
  26. Writes Usage[uint64] `json:"writes"`
  27. Reads Usage[uint64] `json:"reads"`
  28. Partitions []PartitionStat `json:"partitions"`
  29. }