chmodels

package
v0.0.0-...-9b663ca Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceHealth

type DeviceHealth struct {
	base.Model
	ActionTime time.Time
	DeviceID   uint32
	Value      float64
	CreatedAt  time.Time
}

DeviceHealth ..

func NewDeviceHealth

func NewDeviceHealth() *DeviceHealth

NewDeviceHealth ..

func (*DeviceHealth) IsUnhealthy

func (m *DeviceHealth) IsUnhealthy() bool

IsUnhealthy check if device is unhealthy

type DeviceTelemetry

type DeviceTelemetry struct {
	ActionTime  time.Time
	DeviceID    uint32
	TelemetryID uint32
	Value       float64
	CreatedAt   time.Time
}

DeviceTelemetry uploaded telemetry data

Jump to

Keyboard shortcuts

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