hostinfo

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2017 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package hostinfo provides the messaging structures specific to host info queries

Index

Constants

View Source
const (
	Memory     = "MEMORY"
	Cpu        = "CPU"
	Filesystem = "FILESYSTEM"
	System     = "SYSTEM"
	Processes  = "PROCS"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HostInfoBase

type HostInfoBase struct {
	Type string `json:"type"`
}

type HostInfoCpuMetrics

type HostInfoCpuMetrics struct {
	Idle         uint64  `json:"idle"`
	Irq          float64 `json:"irq"`
	Mhz          float64 `json:"mhz"`
	Model        string  `json:"model"`
	Name         string  `json:"name"`
	Nice         float64 `json:"nice"`
	SoftIrq      float64 `json:"softirq"`
	Stolen       float64 `json:"stolen"`
	Sys          float64 `json:"sys"`
	Total        uint64  `json:"total"`
	TotalCores   uint64  `json:"total_cores"`
	TotalSockets uint64  `json:"total_sockets"`
	User         float64 `json:"user"`
	Vendor       string  `json:"vendor"`
	Wait         float64 `json:"wait"`
}

type HostInfoCpuResult

type HostInfoCpuResult struct {
	Metrics   []HostInfoCpuMetrics `json:"metrics"`
	Timestamp int64                `json:"timestamp"`
}

type HostInfoFilesystemMetrics

type HostInfoFilesystemMetrics struct {
	DirectoryName  string `json:"dir_name"`
	DeviceName     string `json:"dev_name"`
	Options        string `json:"options"`
	SystemTypeName string `json:"sys_type_name"`
	Free           uint64 `json:"free"`
	Total          uint64 `json:"total"`
	Used           uint64 `json:"used"`
	Available      uint64 `json:"avail"`
	Files          uint64 `json:"files"`
	FreeFiles      uint64 `json:"free_files"`
}

type HostInfoFilesystemResult

type HostInfoFilesystemResult struct {
	Metrics   []HostInfoFilesystemMetrics `json:"metrics"`
	Timestamp int64                       `json:"timestamp"`
}

type HostInfoMemoryMetrics

type HostInfoMemoryMetrics struct {
	UsedPercentage     float64 `json:"used_percentage"`
	ActualFree         uint64  `json:"actual_free"`
	ActualUsed         uint64  `json:"actual_used"`
	Free               uint64  `json:"free"`
	Total              uint64  `json:"total"`
	Used               uint64  `json:"used"`
	RAM                uint64  `json:"ram"`
	SwapFree           uint64  `json:"swap_free"`
	SwapTotal          uint64  `json:"swap_total"`
	SwapUsed           uint64  `json:"swap_used"`
	SwapUsedPercentage float64 `json:"swap_percentage"`
}

type HostInfoMemoryResult

type HostInfoMemoryResult struct {
	Metrics   HostInfoMemoryMetrics `json:"metrics"`
	Timestamp int64                 `json:"timestamp"`
}

type HostInfoProcessesMetrics

type HostInfoProcessesMetrics struct {
	Pid       int32   `json:"pid"`
	ExeName   string  `json:"exe_name"`
	ExeCwd    string  `json:"exe_cwd"`
	ExeRoot   string  `json:"exe_root"`
	StartTime int64   `json:"time_start_time"`
	TimeUser  float64 `json:"time_user"`
	TimeSys   float64 `json:"time_sys"`
	TimeTotal float64 `json:"time_total"`
	StateName string  `json:"state_name"`
	MemoryRes uint64  `json:"memory_resident"`
}

type HostInfoProcessesResult

type HostInfoProcessesResult struct {
	Metrics   []HostInfoProcessesMetrics `json:"metrics"`
	Timestamp int64                      `json:"timestamp"`
}

type HostInfoSystemMetrics

type HostInfoSystemMetrics struct {
	Arch          string `json:"arch"`
	Name          string `json:"name"`
	Version       string `json:"version"`
	VendorName    string `json:"vendor_name"`
	Vendor        string `json:"vendor"`
	VendorVersion string `json:"vendor_version"`
}

type HostInfoSystemResult

type HostInfoSystemResult struct {
	Metrics   HostInfoSystemMetrics `json:"metrics"`
	Timestamp int64                 `json:"timestamp"`
}

Jump to

Keyboard shortcuts

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