power

package
v0.0.0-...-c4b98d2 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 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) error

func Describe

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

Types

type Power

type Power struct {
	PowerConsumedWatts float64 `json:"PowerConsumedWatts"`
	Metrics            struct {
		AverageConsumedWatts float64 `json:"AverageConsumedWatts"`
		MaxConsumedWatts     float64 `json:"MaxConsumedWatts"`
		MinConsumedWatts     float64 `json:"MinConsumedWatts"`
	} `json:"PowerMetrics"`
	PowerSupplies []PowerSupply `json:"PowerSupplies"`
}

type PowerSupply

type PowerSupply struct {
	SerialNumber string        `json:"SerialNumber"`
	Status       common.Status `json:"Status"`
}

Jump to

Keyboard shortcuts

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