status

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	HostName   string   `json:"hostname"`
	Procs      int      `json:"procs"`
	HostID     string   `json:"host_id"`
	CPUPercent int      `json:"cpu_percent"`
	Volumes    []Volume `json:"volumes,omitempty"`
}

Info contains disk and cpu utilization results

type Service

type Service struct {
	Volumes []Volume
}

Service provides disk and cpu utilization

func (Service) Get

func (s Service) Get() (*Info, error)

Get returns the disk and cpu utilization

type Volume

type Volume struct {
	Name         string `json:"name"`
	Path         string `json:"path"`
	UsagePercent int    `json:"usage_percent"`
}

Volume contains input information for a volume and the result for utilization percentage

Jump to

Keyboard shortcuts

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