Documentation ¶
Overview ¶
Package temperature tracks the NVIDIA per-GPU temperatures.
Index ¶
Constants ¶
View Source
const ( StateNameTemperature = "temperature" StateKeyTemperatureData = "data" StateKeyTemperatureEncoding = "encoding" StateValueTemperatureEncodingJSON = "json" )
View Source
const Name = "accelerator-nvidia-temperature"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Query query_config.Config `json:"query"`
}
type Output ¶
type Output struct { UsagesSMI []nvidia_query.ParsedTemperature `json:"usages_smi"` UsagesNVML []nvidia_query_nvml.Temperature `json:"usages_nvml"` }
func ParseOutputJSON ¶
func ParseStatesToOutput ¶
func ParseStatesToOutput(states ...components.State) (*Output, error)
func ToOutput ¶
func ToOutput(i *nvidia_query.Output) *Output
ToOutput converts nvidia_query.Output to Output. It returns an empty non-nil object, if the input or the required field is nil (e.g., i.SMI).
Click to show internal directories.
Click to hide internal directories.