disk

package
v0.0.0-...-7983b3b Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SectorSize is exported in github.com/shirou/gopsutil/disk (but not working!)
	SectorSize = 512
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	core.CheckBase
	// contains filtered or unexported fields
}

Check stores disk-specific additional fields

func (*Check) Configure

func (c *Check) Configure(data integration.Data, initConfig integration.Data, source string) error

Configure the disk check

func (*Check) Run

func (c *Check) Run() error

Run executes the check

type IOCheck

type IOCheck struct {
	core.CheckBase
	// contains filtered or unexported fields
}

IOCheck doesn't need additional fields

func (*IOCheck) Configure

func (c *IOCheck) Configure(data integration.Data, initConfig integration.Data, source string) error

Configure the IOstats check

func (*IOCheck) Run

func (c *IOCheck) Run() error

Run executes the check

type TopologyCollector

type TopologyCollector struct {
	corechecks.CheckTopologyCollector
}

TopologyCollector contains all the metadata needed to produce disk topology

func MakeTopologyCollector

func MakeTopologyCollector() *TopologyCollector

MakeTopologyCollector returns an instance of the DiskTopologyCollector

func (*TopologyCollector) BuildTopology

func (dtc *TopologyCollector) BuildTopology(partitions []disk.PartitionStat) error

BuildTopology creates / collects and produces disk topology

Jump to

Keyboard shortcuts

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