Documentation
¶
Overview ¶
Package os queries the host OS information (e.g., kernel version).
Index ¶
Constants ¶
View Source
const ( StateNameHost = "host" StateKeyHostID = "id" StateNameKernel = "kernel" StateKeyKernelArch = "arch" StateKeyKernelVersion = "version" StateNamePlatform = "platform" StateKeyPlatformName = "name" StateKeyPlatformFamily = "family" StateKeyPlatformVersion = "version" StateNameUptimes = "uptimes" StateKeyUptimesSeconds = "uptime_seconds" StateKeyUptimesHumanized = "uptime_humanized" StateKeyUptimesBootTimeUnixSeconds = "boot_time_unix_seconds" StateKeyUptimesBootTimeHumanized = "boot_time_humanized" StateNameProcessCountsByStatus = "process_counts_by_status" StateKeyProcessCountZombieProcesses = "process_count_zombie_processes" )
View Source
const Name = "os"
Variables ¶
View Source
var DefaultZombieProcessCountThreshold = 1000
Functions ¶
Types ¶
type Config ¶
type Config struct {
Query query_config.Config `json:"query"`
}
type Output ¶
type Output struct {
Host Host `json:"host"`
Kernel Kernel `json:"kernel"`
Platform Platform `json:"platform"`
Uptimes Uptimes `json:"uptimes"`
ProcessCountZombieProcesses int `json:"process_count_zombie_processes"`
}
func ParseOutputJSON ¶
func ParseStatesToOutput ¶
func ParseStatesToOutput(states ...components.State) (*Output, error)
type Platform ¶
Click to show internal directories.
Click to hide internal directories.