Documentation ¶
Index ¶
- Constants
- Variables
- func Logger(ctx context.Context) *zap.Logger
- func NewStationModelRecordHandler(db *sqlxcache.DB) *stationModelRecordHandler
- type AggregateSensorKey
- type AggregationFunction
- type AverageFunction
- type InterestingnessHandler
- type MaximumFunction
- type SensorAndModulePosition
- type TsDBHandler
- type UpdateSensorValue
Constants ¶
View Source
const (
BatchSize = 1000
)
Variables ¶
View Source
var (
AggregateNames = []string{"24h", "6h", "1h", "10m", "1m"}
)
View Source
var (
EarliestPlausibleTime = time.Date(2018, 1, 1, 0, 0, 0, 0, time.UTC)
)
Functions ¶
Types ¶
type AggregateSensorKey ¶
type AggregationFunction ¶
type AverageFunction ¶
type AverageFunction struct { }
type InterestingnessHandler ¶
type InterestingnessHandler struct {
// contains filtered or unexported fields
}
func NewInterestingnessHandler ¶
func NewInterestingnessHandler(db *sqlxcache.DB) *InterestingnessHandler
func (*InterestingnessHandler) Close ¶
func (ih *InterestingnessHandler) Close(ctx context.Context) error
func (*InterestingnessHandler) ConsiderReading ¶
func (ih *InterestingnessHandler) ConsiderReading(ctx context.Context, r *data.IncomingReading) error
type MaximumFunction ¶
type MaximumFunction struct { }
type SensorAndModulePosition ¶
type TsDBHandler ¶
type TsDBHandler struct {
// contains filtered or unexported fields
}
func NewTsDbHandler ¶
func NewTsDbHandler(db *sqlxcache.DB, tsConfig *storage.TimeScaleDBConfig, publisher jobs.MessagePublisher, completions *jobs.CompletionIDs) *TsDBHandler
func (*TsDBHandler) OnData ¶
func (v *TsDBHandler) OnData(ctx context.Context, provision *data.Provision, rawData *pb.DataRecord, rawMeta *pb.DataRecord, db *data.DataRecord, meta *data.MetaRecord) error
func (*TsDBHandler) OnMeta ¶
func (v *TsDBHandler) OnMeta(ctx context.Context, provision *data.Provision, rawMeta *pb.DataRecord, meta *data.MetaRecord) error
Click to show internal directories.
Click to hide internal directories.