services

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

type Exporter struct {
	// contains filtered or unexported fields
}

func NewExporter

func NewExporter(cfg ExporterConfig, evanClient *myheat.Client, l wdlogger.Logger, metricsService *Metrics) *Exporter

func (*Exporter) Run

func (e *Exporter) Run(ctx context.Context)

type ExporterConfig

type ExporterConfig struct {
	PullInterval time.Duration
}

func NewExporterConfig

func NewExporterConfig(pullInterval time.Duration) ExporterConfig

func (ExporterConfig) Validate

func (e ExporterConfig) Validate() error

type Metrics

type Metrics struct {
	// contains filtered or unexported fields
}

func NewMetrics

func NewMetrics(logger wdlogger.Logger) *Metrics

func (*Metrics) CountEnvHeatDemandSeconds added in v0.3.0

func (m *Metrics) CountEnvHeatDemandSeconds(id int64, name string, value bool)

func (*Metrics) Run added in v0.3.0

func (m *Metrics) Run(ctx context.Context)

func (*Metrics) SetDeviceWeatherTemp

func (m *Metrics) SetDeviceWeatherTemp(id int64, name string, city string, value float64)

func (*Metrics) SetEnvironmentHeatDemand

func (m *Metrics) SetEnvironmentHeatDemand(id int64, name string, value bool)

func (*Metrics) SetEnvironmentTempCurrent

func (m *Metrics) SetEnvironmentTempCurrent(id int64, name string, value float64)

func (*Metrics) SetEnvironmentTempTarget

func (m *Metrics) SetEnvironmentTempTarget(id int64, name string, value float64)

Jump to

Keyboard shortcuts

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