thermal

package
v0.0.0-...-3283bf7 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Collect

func Collect(ctx context.Context, parentPath string, cc *common.CollectorContext)

func Describe

func Describe(ch chan<- *prometheus.Desc)

Types

type Fan

type Fan struct {
	NameCurrent    string        `json:"Name"`
	NameLegacy     string        `json:"FanName"`
	ReadingCurrent float64       `json:"Reading"`
	ReadingLegacy  float64       `json:"CurrentReading"`
	Status         common.Status `json:"Status"`
}

func (*Fan) Name

func (f *Fan) Name() string

func (*Fan) Reading

func (f *Fan) Reading() float64

type Temperature

type Temperature struct {
	Name                   string        `json:"Name"`
	ReadingCelsius         float64       `json:"ReadingCelsius"`
	UpperThresholdCritical float64       `json:"UpperThresholdCritical"`
	UpperThresholdFatal    float64       `json:"UpperThresholdFatal"`
	Status                 common.Status `json:"Status"`
}

type Thermal

type Thermal struct {
	Temperatures []Temperature `json:"Temperatures"`
	Fans         []Fan         `json:"Fans"`
}

Jump to

Keyboard shortcuts

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