Added Ports information to the expanded view

This commit is contained in:
Kenan Rhoton
2017-04-04 12:58:32 +02:00
committed by Kenan Rhoton
parent d81d10ec27
commit b2165b6a29
4 changed files with 90 additions and 8 deletions

View File

@@ -18,18 +18,22 @@ type Metrics struct {
IOBytesRead int64
IOBytesWrite int64
Pids int
PortsExposed []int64
PortsOpen [][]int64
}
func NewMetrics() Metrics {
return Metrics{
CPUUtil: -1,
NetTx: -1,
NetRx: -1,
MemUsage: -1,
MemPercent: -1,
IOBytesRead: -1,
IOBytesWrite: -1,
Pids: -1,
CPUUtil: -1,
NetTx: -1,
NetRx: -1,
MemUsage: -1,
MemPercent: -1,
IOBytesRead: -1,
IOBytesWrite: -1,
Pids: -1,
PortsExposed: nil,
PortsOpen: nil,
}
}