converter

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeSeriesMetric            = "timeseries"
	CurrentValueMetric          = "currentvalue"
	DurationCountMetric         = "durationcount"
	DiscreteSensorChangesMetric = "changes"
	SensorNamespace             = "sensors"
	KpiNamespace                = "kpis"
	AverageStatistic            = "average" //TODO; we should either send timeseries or average
)
View Source
const (
	SensorAverage queryType = iota
	CurrentValue
	DurationCount
	DiscreteSensorChanges
	ListCompanyMetrics
	ListMachineMetrics
	ListSensorMetrics
	KpiCurrentValue
	Detailedkpi
	Unknown
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

type Converter struct {
	Range      *datasource.TimeRange
	RestClient restclient.RestClient
	Logger     hclog.Logger
}

func (*Converter) Convert

func (c *Converter) Convert(spec *types.QuerySpecification) types.Runnable

func (*Converter) EndTime

func (c *Converter) EndTime() time.Time

func (*Converter) StartTime

func (c *Converter) StartTime() time.Time

Jump to

Keyboard shortcuts

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