psutil

package
v3.0.0-...-2700aaf Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFolderExistsAndReadable

func CheckFolderExistsAndReadable(path string) bool

func GetGoPsutilCPU

func GetGoPsutilCPU(interval time.Duration) ([]map[string]any, error)

Simulates "psutil" metric output. Assumes the result from last call as input, otherwise uses a 1s measurement

func GetGoPsutilDiskPG

func GetGoPsutilDiskPG(DataDirs, TblspaceDirs []map[string]any) ([]map[string]any, error)

func GetGoPsutilDiskTotals

func GetGoPsutilDiskTotals() ([]map[string]any, error)

func GetGoPsutilMem

func GetGoPsutilMem() ([]map[string]any, error)

func GetLoadAvgLocal

func GetLoadAvgLocal() ([]map[string]any, error)

func GetPathUnderlyingDeviceID

func GetPathUnderlyingDeviceID(path string) (uint64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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