conutil

package
v0.0.0-...-24b5a56 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = cli.Command{
	Name:      "measure",
	Usage:     "measure container load",
	ArgsUsage: "COMMAND [arguments...]",
	Action:    measureContainer,
	Flags: []cli.Flag{
		cli.StringFlag{
			Name:        "id",
			Usage:       "Container ID",
			Destination: &containerID,
		},
	},
}

Command the command it self

Functions

This section is empty.

Types

type ContainerMetrics

type ContainerMetrics struct {
	CPUTime       uint64 `json:"CPUTime"`
	ProcessCount  int    `json:"pCount"`
	TaskCount     int    `json:"tsks"`
	UsedRAM       int    `json:"usedRAM(MB)"`
	SwappedMemory int    `json:"swappedMemory(MB)"`
	TotalMemory   int    `json:"swappedMemory(MB)"`
	RootSize      int    `json:"rootSize(MB)"`
}

ContainerMetrics ...

func GetContainerUtilization

func GetContainerUtilization(ContainerID string) (ContainerMetrics, error)

GetContainerUtilization ...

func (ContainerMetrics) String

func (m ContainerMetrics) String() string

Jump to

Keyboard shortcuts

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