ioStatTransform

package
v0.0.0-...-fd4faf2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LastRawStat = make(map[string]diskStat.DiskStat)

Functions

func IsPartition

func IsPartition(device *string) (r bool)

func TransformStat

func TransformStat(channel <-chan *diskStat.DiskStat, statsOutputChannel chan *diskStat.ExtendedIoStats) (err error)

TransformStat goroutine function to transform the stats and send to the stats output channel.

Types

type DiskStatDiff

type DiskStatDiff struct {
	Id              int64
	PartId          int64
	Device          string
	ReadsCompleted  float64
	ReadsMerged     float64
	SectorsRead     float64
	MillisReading   float64
	WritesCompleted float64
	WritesMerged    float64
	SectorsWrite    float64
	MillisWriting   float64
	// IoInProgress float64 //not used and calculated diff then all others
	MillisDoingIo         float64
	WeightedMillisDoingIo float64
	RecordTime            float64
	IoTotal               float64
	SectorsTotalRaw       float64
}

DiskStatDiff struct for all extended io stats storing just the difference between the current and the last.

Jump to

Keyboard shortcuts

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