Documentation
¶
Overview ¶
Package hostprobe collects lightweight host resource snapshots for operational dashboards and health inspection.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
CacheTTL time.Duration `json:"-" mapstructure:"cache_ttl" yaml:"cache_ttl"`
CPUInterval time.Duration `json:"-" mapstructure:"cpu_interval" yaml:"cpu_interval"`
Disks []DiskSpec `json:"-" mapstructure:"disks" yaml:"disks"`
Network NetworkSpec `json:"-" mapstructure:"network" yaml:"network"`
}
type Host ¶
type Host struct {
Hostname string `json:"hostname"`
OS string `json:"os"`
Platform string `json:"platform"`
PlatformVersion string `json:"platform_version"`
KernelVersion string `json:"kernel_version"`
Architecture string `json:"architecture"`
UptimeSeconds uint64 `json:"uptime_seconds"`
BootTime uint64 `json:"boot_time"`
}
type Network ¶
type Network struct {
BytesSent uint64 `json:"bytes_sent"`
BytesReceived uint64 `json:"bytes_received"`
PacketsSent uint64 `json:"packets_sent"`
PacketsReceived uint64 `json:"packets_received"`
SendBytesPerSecond float64 `json:"send_bytes_per_second"`
RecvBytesPerSecond float64 `json:"recv_bytes_per_second"`
SampleWindow float64 `json:"sample_window_seconds"`
RateReady bool `json:"rate_ready"`
}
type NetworkSpec ¶ added in v0.1.17
Click to show internal directories.
Click to hide internal directories.