lenskit.config.PowerQueries#
- class lenskit.config.PowerQueries#
Bases:
TypedDictQueries for requesting power consumption data from Prometheus.
Each entry is a Python format string (for
str.format()), that will be used to format a dictionary{"elapsed": time_ms}. The result should be a valid Prometheus query that returns the power consumption in Joules (watt seconds) over the lasttime_msmilliseconds.