Documentation
¶
Index ¶
Constants ¶
View Source
const ( DeviceStateUnknown = -1 DeviceStateOK = 1 DeviceStateWarning = 2 DeviceStateError = 3 )
View Source
const ( AlarmSeverityLow = 1 AlarmSeverityMedium = 2 AlarmSeverityHigh = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Device ¶
type Device struct { Active bool `json:"active"` SensorID string `json:"sensorID"` DeviceID string `json:"deviceID"` Tenant string `json:"tenant"` Name string `json:"name"` Description string `json:"description"` Location Location `json:"location"` Environment string `json:"environment,omitempty"` Source string `json:"source,omitempty"` Lwm2mTypes []Lwm2mType `json:"types"` Tags []Tag `json:"tags,omitempty"` DeviceProfile DeviceProfile `json:"deviceProfile"` DeviceStatus DeviceStatus `json:"deviceStatus"` DeviceState DeviceState `json:"deviceState"` Alarms []string `json:"alarms,omitempty"` }
type DeviceCreated ¶
type DeviceCreated struct { DeviceID string `json:"deviceID"` Tenant string `json:"tenant,omitempty"` Timestamp time.Time `json:"timestamp"` }
func (DeviceCreated) Body ¶
func (d DeviceCreated) Body() []byte
func (*DeviceCreated) ContentType ¶
func (d *DeviceCreated) ContentType() string
func (*DeviceCreated) TopicName ¶
func (d *DeviceCreated) TopicName() string
type DeviceProfile ¶
type DeviceState ¶
type DeviceStateUpdated ¶
type DeviceStateUpdated struct { DeviceID string `json:"deviceID"` State int `json:"state"` Tenant string `json:"tenant,omitempty"` Timestamp time.Time `json:"timestamp"` }
func (DeviceStateUpdated) Body ¶
func (d DeviceStateUpdated) Body() []byte
func (*DeviceStateUpdated) ContentType ¶
func (d *DeviceStateUpdated) ContentType() string
func (*DeviceStateUpdated) TopicName ¶
func (d *DeviceStateUpdated) TopicName() string
type DeviceStatus ¶
type DeviceStatusUpdated ¶
type DeviceStatusUpdated struct { DeviceID string `json:"deviceID"` DeviceStatus DeviceStatus `json:"status"` Tenant string `json:"tenant,omitempty"` Timestamp time.Time `json:"timestamp"` }
func (DeviceStatusUpdated) Body ¶
func (d DeviceStatusUpdated) Body() []byte
func (*DeviceStatusUpdated) ContentType ¶
func (d *DeviceStatusUpdated) ContentType() string
func (*DeviceStatusUpdated) TopicName ¶
func (d *DeviceStatusUpdated) TopicName() string
type DeviceUpdated ¶
type DeviceUpdated struct { DeviceID string `json:"deviceID"` Tenant string `json:"tenant,omitempty"` Timestamp time.Time `json:"timestamp"` }
func (DeviceUpdated) Body ¶
func (d DeviceUpdated) Body() []byte
func (DeviceUpdated) ContentType ¶
func (d DeviceUpdated) ContentType() string
func (DeviceUpdated) TopicName ¶
func (d DeviceUpdated) TopicName() string
type InformationItem ¶
Click to show internal directories.
Click to hide internal directories.