systemutils

package module
v0.0.0-...-dc0e353 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2018 License: Apache-2.0 Imports: 7 Imported by: 11

README

systemutils

A package to get basic system level metrics, such as CPU usage, disk volumes, memory etc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lun

type Lun struct {
	Iops      int
	Capacity  uint64
	Available uint64
}

Lun describes the properties of a physical LUN.

type System

type System interface {
	// CpuUsage returns the usage in percentage format.
	CpuUsage() (usage float64, total float64, ticks float64)

	// MemUsage returns the available memory on this system.
	MemUsage() (total, used, free uint64)

	// Luns returns information on the available LUNs on this system.
	Luns() (luns map[string]Lun)
}

func New

func New() System

Jump to

Keyboard shortcuts

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