metrics

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Snapshot

type Snapshot struct {
	Timestamp     time.Time
	Uptime        time.Duration
	MemoryTotal   uint64
	MemoryUsed    uint64
	MemoryPercent float64
	CPUPercent    float64
	DiskTotal     uint64
	DiskUsed      uint64
	DiskPercent   float64
}

snapshot represents a moment-in-time capture of system state

func Gather

func Gather() (*Snapshot, error)

gather collects current system metrics and returns a snapshot

Jump to

Keyboard shortcuts

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