2017-12-19 14:37:58 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
// Source represents data source for monitoring.
|
|
|
|
type Source interface {
|
|
|
|
PID() (int64, error)
|
2018-01-10 21:27:57 +00:00
|
|
|
UID() (int64, error)
|
2017-12-19 14:37:58 +00:00
|
|
|
CPU() (float64, error)
|
2018-01-18 10:37:18 +00:00
|
|
|
MemStats() (uint64, error)
|
2018-01-10 21:27:57 +00:00
|
|
|
Netstats() (int64, int64, error)
|
2017-12-19 14:37:58 +00:00
|
|
|
}
|