Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateStatName(pid int, key string, value string, suffix string) string
- func NewDiskViewer(ioFlow *IOFlowStat) iostat.IOViewer
- func ParseStatName(fname string) (pid int, suffix string, err error)
- func SetupDefaultIOStat(s *IOFlowStat)
- type DiskViewer
- type IOFlowStat
- type StatGetter
Constants ¶
View Source
const (
IOStatFileSuffix = "iostat"
)
Variables ¶
View Source
var ErrInvalidStatName = errors.New("flow: invalid stat name")
Functions ¶
func GenerateStatName ¶
${pid}.${key}_${value}.${suffix}
func NewDiskViewer ¶
func NewDiskViewer(ioFlow *IOFlowStat) iostat.IOViewer
func SetupDefaultIOStat ¶
func SetupDefaultIOStat(s *IOFlowStat)
Types ¶
type DiskViewer ¶
type DiskViewer struct {
// contains filtered or unexported fields
}
func (*DiskViewer) Close ¶
func (d *DiskViewer) Close()
func (*DiskViewer) ReadStat ¶
func (d *DiskViewer) ReadStat() *iostat.StatData
func (*DiskViewer) Update ¶
func (d *DiskViewer) Update()
func (*DiskViewer) WriteStat ¶
func (d *DiskViewer) WriteStat() *iostat.StatData
type IOFlowStat ¶
func NewIOFlowStat ¶
func NewIOFlowStat(key string, dryRun bool) (*IOFlowStat, error)
func (*IOFlowStat) GetStatMgr ¶
func (flow *IOFlowStat) GetStatMgr(iot bnapi.IOType) iostat.StatMgrAPI
type StatGetter ¶
type StatGetter interface {
GetStatMgr(ioType bnapi.IOType) iostat.StatMgrAPI
}
Click to show internal directories.
Click to hide internal directories.