internal

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertCSV added in v0.6.0

func ConvertCSV(args *ConvertCSVArgs) error

func ConvertV1ToV2 added in v0.6.0

func ConvertV1ToV2(args *ConvertArgs) error

func Run

func Run(args *Args)

Types

type Args

type Args struct {
	Endpoint              string
	Interval              time.Duration
	Log                   string
	Console               bool
	ServiceControlCommand string
}

type ConvertArgs added in v0.6.0

type ConvertArgs struct {
	InputFiles []string
	OutputFile string
}

type ConvertCSVArgs added in v0.6.0

type ConvertCSVArgs struct {
	InputFile  []string
	OutputFile string
}

type HardwareDataSink

type HardwareDataSink interface {
	Observe(ctx context.Context, info *pb.MachineMetrics)
}

type HardwareInfo added in v0.6.0

type HardwareInfo struct {
	// Load as a percentage [0-100].
	Load []int `json:"load" yaml:"load"`
	// TJMax is the thermal junction maximum of the CPU. Once the temperature hits this limit the CPU will thermal throttle.
	TJMax []float64 `json:"tjMax" yaml:"tjMax"`
	// CoreCount is the total number of cores across all CPUs on the machine.
	CoreCount int `json:"coreCount" yaml:"coreCount"`
	// CPUCount is the number of CPUs on the machine.
	CPUCount int `json:"cpuCount" yaml:"cpuCount"`
	// TemperatureCelcius is the temperature of each core expressed in Celcius.
	TemperatureCelcius []float64 `json:"temperatureCelcius" yaml:"temperatureCelcius"`
	// VID is the voltage requested by the CPU.
	VID float64 `json:"vid" yaml:"vid"`
	// CPUSpeed is the clock frequency of the CPU.
	CPUSpeed float64 `json:"cpuSpeed" yaml:"cpuSpeed"`
	// FSBSpeed is the clock frequency of the front side bus.
	FSBSpeed float64 `json:"fsbSpeed" yaml:"fsbSpeed"`
	// Multiplier is the front side bus multipler of the CPU.
	Multiplier float64 `json:"multiplier" yaml:"multiplier"`
	// CPUName is the name and model of the CPU.
	CPUName string `json:"cpuName" yaml:"cpuName"`
	// Timestamp is the time that the sample was taken.
	Timestamp time.Time `json:"timestamp" yaml:"timestamp"`
}

HardwareInfo includes CPU and motherboard information about the host machine.

Jump to

Keyboard shortcuts

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