api

package
v0.0.0-...-0d694ff Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Location      string         `yaml:"location"`
	SampleConfigs []ConfigSample `yaml:"sampleConfigs"`
}

type ConfigSample

type ConfigSample struct {
	// default jarvis config for sample
	EntityType contractsv1.EntityType `yaml:"entityType"`
	EntityName string                 `yaml:"entityName"`
	SampleType contractsv1.SampleType `yaml:"sampleType"`
	SampleName string                 `yaml:"sampleName"`
	MetricType contractsv1.MetricType `yaml:"metricType"`

	// modbus specific config for sample
	ValueMultiplier float64 `yaml:"valueMultiplier"`
	Prefix          string  `yaml:"prefix"`
	ValueStartIndex int     `yaml:"valueStartIndex"`
	ValueLength     int     `yaml:"valueLength"`
}

Jump to

Keyboard shortcuts

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