Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Battery ¶
type Battery struct {
RedisBatteryCharge
Capacity float64 // capacity of the battery, in Wh
MaxDrawRate float64 // maximum charge/discharge rate, in W
}
type Collector ¶
type Collector struct {
health.TimeChecker
// contains filtered or unexported fields
}
func NewCollector ¶
func (*Collector) Collect ¶
func (c *Collector) Collect(ch chan<- prometheus.Metric)
func (*Collector) Consume ¶
func (c *Collector) Consume(ctx context.Context, recentMeasurement homewizard.RecentMeasurement)
func (*Collector) Describe ¶
func (c *Collector) Describe(ch chan<- *prometheus.Desc)
type RedisBatteryCharge ¶ added in v0.2.4
type RedisBatteryCharge struct {
RedisClient
Key string
}
Click to show internal directories.
Click to hide internal directories.