core

package
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2017 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgentInit

func AgentInit(version, build string) error

AgentInit Connect to docker engine, get initial containers list and start the agent

Types

type Agent

type Agent struct {
	// contains filtered or unexported fields
}

Agent data

type AgentConfig

type AgentConfig struct {
	// contains filtered or unexported fields
}

AgentConfig configuration parameters

type CPUStats

type CPUStats struct {
	Time                 time.Time
	PerCPUUsage          []uint64
	TotalUsage           uint64
	UsageInKernelmode    uint64
	UsageInUsermode      uint64
	PreTime              time.Time
	PrePerCPUUsage       []uint64
	PreTotalUsage        uint64
	PreUsageInKernelmode uint64
	PreUsageInUsermode   uint64
}

CPUStats cpu stats

type CPUStatsDiff

type CPUStatsDiff struct {
	Duration          uint64
	TotalUsage        float64
	UsageInKernelmode float64
	UsageInUsermode   float64
}

CPUStatsDiff diff between two cpu stats

type ContainerData

type ContainerData struct {
	ID string
	// contains filtered or unexported fields
}

ContainerData data

type IOStats

type IOStats struct {
	Time   time.Time
	Reads  uint64
	Writes uint64
	Totals uint64
}

IOStats IO stats

type IOStatsDiff

type IOStatsDiff struct {
	Duration int64
	Reads    int64
	Writes   int64
	Totals   int64
}

IOStatsDiff diff between two IOStats

type NetStats

type NetStats struct {
	Time      time.Time
	RxBytes   uint64
	RxDropped uint64
	RxErrors  uint64
	RxPackets uint64
	TxBytes   uint64
	TxDropped uint64
	TxErrors  uint64
	TxPackets uint64
}

NetStats net stats

type NetStatsDiff

type NetStatsDiff struct {
	Duration  int64
	RxBytes   int64
	RxDropped int64
	RxErrors  int64
	RxPackets int64
	TxBytes   int64
	TxDropped int64
	TxErrors  int64
	TxPackets int64
}

NetStatsDiff diff between two IOStats

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL