devicehealth

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DeviceCount                      health.Stat = "DeviceCount"
	TotalWRPRequestResponseProcessed health.Stat = "TotalWRPRequestResponseProcessed"
	TotalPingMessagesReceived        health.Stat = "TotalPingMessagesReceived"
	TotalPongMessagesReceived        health.Stat = "TotalPongMessagesReceived"
	TotalConnectionEvents            health.Stat = "TotalConnectionEvents"
	TotalDisconnectionEvents         health.Stat = "TotalDisconnectionEvents"
)

Variables

Options is an array of all the health Options exposed via this package

Functions

This section is empty.

Types

type Listener

type Listener struct {
	Dispatcher health.Dispatcher
}

Listener provides a device.Listener that dispatches health statistics

func (*Listener) OnDeviceEvent

func (l *Listener) OnDeviceEvent(e *device.Event)

OnDeviceEvent is a device.Listener that will dispatched health events to the configured health Dispatcher.

Jump to

Keyboard shortcuts

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