Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Measure ¶
type Measure struct { UID string `json:"uid"` // unique id for idempotency ClientID string `json:"client_id"` Timestamp time.Time `json:"timestamp"` CPUUsagePercent float64 `json:"cpu_usage_percent"` MemoryUsagePercent float64 `json:"memory_usage_percent"` IoUsagePercent float64 `json:"io_usage_percent"` NetLan models.NetBytes `json:"netlan"` NetWan models.NetBytes `json:"netwan"` Processes []Process `json:"processes"` MountPoints []MountPoint `json:"mountpoints"` }
type MountPoint ¶
type MountPoint struct { Name string `json:"name"` FreeBytes uint64 `json:"free_b"` TotalBytes uint64 `json:"total_b"` FreePercent float64 `json:"free_percent"` UsedPercent float64 `json:"used_percent"` }
func (MountPoint) CalcFreePercent ¶
func (mp MountPoint) CalcFreePercent() (p float64)
func (MountPoint) CalcUsedPercent ¶
func (mp MountPoint) CalcUsedPercent() (p float64)
func (*MountPoint) Clone ¶
func (mp *MountPoint) Clone() (clonedMP MountPoint)
Click to show internal directories.
Click to hide internal directories.