host

package
v0.0.0-...-4f2f30f Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sync

func Sync() error

func WaitForSync

func WaitForSync()

Types

type Metrics

type Metrics struct {
	CPU       float64 `json:"cpu_pct"`   // Percent rounded to 2 decimal places
	Mem       uint64  `json:"mem_bytes"` // Total virtual memory in bytes
	Timestamp int64   `json:"ts"`        // Unix Timestamp in UTC
}

func GetMetrics

func GetMetrics() (*Metrics, error)

Jump to

Keyboard shortcuts

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