power

package
v0.0.0-...-bbe6159 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 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)

func Describe

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

Types

type Power

type Power struct {
	PowerControl []struct {
		ID                 string  `json:"MemberId"`
		PowerCapacityWatts float64 `json:"PowerCapacityWatts"`
		PowerConsumedWatts float64 `json:"PowerConsumedWatts"`
		Metrics            struct {
			AverageConsumedWatts float64 `json:"AverageConsumedWatts"`
			MaxConsumedWatts     float64 `json:"MaxConsumedWatts"`
			MinConsumedWatts     float64 `json:"MinConsumedWatts"`
		} `json:"PowerMetrics"`
	} `json:"PowerControl"`
	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