Add docker stats
This commit is contained in:
@@ -4,6 +4,7 @@ import "github.com/stretchr/testify/mock"
|
||||
|
||||
import "github.com/influxdb/tivan/plugins/system/ps/cpu"
|
||||
import "github.com/influxdb/tivan/plugins/system/ps/disk"
|
||||
|
||||
import "github.com/influxdb/tivan/plugins/system/ps/load"
|
||||
import "github.com/influxdb/tivan/plugins/system/ps/mem"
|
||||
import "github.com/influxdb/tivan/plugins/system/ps/net"
|
||||
@@ -68,3 +69,11 @@ func (m *MockPS) SwapStat() (*mem.SwapMemoryStat, error) {
|
||||
|
||||
return r0, r1
|
||||
}
|
||||
func (m *MockPS) DockerStat() ([]*DockerContainerStat, error) {
|
||||
ret := m.Called()
|
||||
|
||||
r0 := ret.Get(0).([]*DockerContainerStat)
|
||||
r1 := ret.Error(1)
|
||||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user