models

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BIOSInfo

type BIOSInfo struct {
	Vendor      string `json:"vendor"`
	Version     string `json:"version"`
	Date        string `json:"date"`
	Motherboard string `json:"motherboard"`
}

type CPUBasic

type CPUBasic struct {
	Count int    `json:"count"`
	Model string `json:"model"`
}

type CPUCursorData

type CPUCursorData struct {
	Total     []float64   `json:"total"`
	Cores     [][]float64 `json:"cores"`
	Timestamp int64       `json:"timestamp"`
}

type CPUInfo

type CPUInfo struct {
	Count       int         `json:"count"`
	Model       string      `json:"model"`
	Frequency   float64     `json:"frequency"`
	Temperature float64     `json:"temperature"`
	Usage       float64     `json:"usage"`
	CoreUsage   []float64   `json:"coreUsage"`
	Total       []float64   `json:"total"`
	Cores       [][]float64 `json:"cores"`
	Cursor      string      `json:"cursor,omitempty"`
}

type DiskInfo

type DiskInfo struct {
	Name  string `json:"name"`
	Read  uint64 `json:"read"`
	Write uint64 `json:"write"`
}

type DiskMountInfo

type DiskMountInfo struct {
	Device  string `json:"device"`
	Mount   string `json:"mount"`
	FSType  string `json:"fstype"`
	Size    string `json:"size"`
	Used    string `json:"used"`
	Avail   string `json:"avail"`
	Percent string `json:"percent"`
}

type GPU

type GPU struct {
	Driver      string  `json:"driver"`
	Vendor      string  `json:"vendor"`
	DisplayName string  `json:"displayName"`
	FullName    string  `json:"fullName"`
	PciId       string  `json:"pciId"`
	RawLine     string  `json:"rawLine"`
	Temperature float64 `json:"temperature"`
	Hwmon       string  `json:"hwmon"`
}

type GPUInfo

type GPUInfo struct {
	GPUs []GPU `json:"gpus"`
}

type GPUTempInfo

type GPUTempInfo struct {
	Driver      string  `json:"driver"`
	Hwmon       string  `json:"hwmon"`
	Temperature float64 `json:"temperature"`
}

type GPUTempsInfo

type GPUTempsInfo struct {
	GPUTemps []GPUTempInfo `json:"gputemps"`
}

type MemoryInfo

type MemoryInfo struct {
	Total     uint64 `json:"total"`
	Free      uint64 `json:"free"`
	Available uint64 `json:"available"`
	Buffers   uint64 `json:"buffers"`
	Cached    uint64 `json:"cached"`
	Shared    uint64 `json:"shared"`
	SwapTotal uint64 `json:"swaptotal"`
	SwapFree  uint64 `json:"swapfree"`
}

type MetaInfo

type MetaInfo struct {
	CPU        *CPUInfo         `json:"cpu,omitempty"`
	Memory     *MemoryInfo      `json:"memory,omitempty"`
	Network    []*NetworkInfo   `json:"network,omitempty"`
	Disk       []*DiskInfo      `json:"disk,omitempty"`
	DiskMounts []*DiskMountInfo `json:"diskmounts,omitempty"`
	Processes  []*ProcessInfo   `json:"processes,omitempty"`
	System     *SystemInfo      `json:"system,omitempty"`
	Hardware   *SystemHardware  `json:"hardware,omitempty"`
	GPU        *GPUInfo         `json:"gpu,omitempty"`
}

type ModulesInfo

type ModulesInfo struct {
	Available []string `json:"available"`
}

type NetworkInfo

type NetworkInfo struct {
	Name string `json:"name"`
	Rx   uint64 `json:"rx"`
	Tx   uint64 `json:"tx"`
}

type ProcessCursorData

type ProcessCursorData struct {
	PID       int32   `json:"pid"`
	Ticks     float64 `json:"ticks"`
	Timestamp int64   `json:"timestamp"`
}

type ProcessInfo

type ProcessInfo struct {
	PID           int32   `json:"pid"`
	PPID          int32   `json:"ppid"`
	CPU           float64 `json:"cpu"`
	PTicks        float64 `json:"pticks"`
	MemoryPercent float32 `json:"memoryPercent"`
	MemoryKB      uint64  `json:"memoryKB"`
	PSSKB         uint64  `json:"pssKB"`
	PSSPercent    float32 `json:"pssPercent"`
	Command       string  `json:"command"`
	FullCommand   string  `json:"fullCommand"`
}

type ProcessListResponse

type ProcessListResponse struct {
	Processes []*ProcessInfo `json:"processes"`
	Cursor    string         `json:"cursor,omitempty"`
}

type SystemHardware

type SystemHardware struct {
	Kernel   string   `json:"kernel"`
	Distro   string   `json:"distro"`
	Hostname string   `json:"hostname"`
	Arch     string   `json:"arch"`
	CPU      CPUBasic `json:"cpu"`
	BIOS     BIOSInfo `json:"bios"`
}

type SystemInfo

type SystemInfo struct {
	LoadAvg   string `json:"loadavg"`
	Processes int    `json:"processes"`
	Threads   int    `json:"threads"`
	BootTime  string `json:"boottime"`
}

type SystemMetrics

type SystemMetrics struct {
	Memory     *MemoryInfo      `json:"memory"`
	CPU        *CPUInfo         `json:"cpu"`
	Network    []*NetworkInfo   `json:"network"`
	Disk       []*DiskInfo      `json:"disk"`
	Processes  []*ProcessInfo   `json:"processes"`
	System     *SystemInfo      `json:"system"`
	DiskMounts []*DiskMountInfo `json:"diskmounts"`
}

Jump to

Keyboard shortcuts

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