mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
27 lines
425 B
Go
27 lines
425 B
Go
package models
|
|
|
|
type Metrics struct {
|
|
CPUUtil int
|
|
NetTx int64
|
|
NetRx int64
|
|
MemLimit int64
|
|
MemPercent int
|
|
MemUsage int64
|
|
IOBytesRead int64
|
|
IOBytesWrite int64
|
|
Pids int
|
|
}
|
|
|
|
func NewMetrics() Metrics {
|
|
return Metrics{
|
|
CPUUtil: -1,
|
|
NetTx: -1,
|
|
NetRx: -1,
|
|
MemUsage: -1,
|
|
MemPercent: -1,
|
|
IOBytesRead: -1,
|
|
IOBytesWrite: -1,
|
|
Pids: -1,
|
|
}
|
|
}
|