structs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package structs defines the data structures for disk.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	Major           uint32
	Minor           uint32
	Name            string `json:"name"`
	ReadsCompleted  uint64 `json:"reads_completed"`
	ReadsMerged     uint64 `json:"reads_merged"`
	ReadSectors     uint64 `json:"read_sectors"`
	ReadingTime     uint64 `json:"reading_time"`
	WritesCompleted uint64 `json:"writes_completed"`
	WritesMerged    uint64 `json:"writes_merged"`
	WrittenSectors  uint64 `json:"written_sectors"`
	WritingTime     uint64 `json:"writing_time"`
	IOInProgress    int32  `json:"io_in_progress"`
	IOTime          uint64 `json:"io_time"`
	WeightedIOTime  uint64 `json:"weighted_io_time"`
}

Device contains information for a given block device.

type DiskStats

type DiskStats struct {
	Timestamp int64    `json:"timestamp"`
	Device    []Device `json:"device"`
}

DiskStats holds the information for all of the block devices.

type DiskUsage

type DiskUsage struct {
	Timestamp int64    `json:"timestamp"`
	TimeDelta int64    `json:"time_delta"`
	Device    []Device `json:"device"`
}

DiskUsage holds the usage information for all of the block devices.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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