sensormonitor

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Monitor

type Monitor struct {
	MonitorSensors []SensorConfig
	// contains filtered or unexported fields
}

func New

func New(notify *notifier.Notify) *Monitor

func (*Monitor) Alive

func (s *Monitor) Alive(id int)

func (*Monitor) CheckDead

func (s *Monitor) CheckDead(dur string)

CheckDead loops through list of sensors and sending notifications if duration has passed since last Alive.

func (Monitor) SetTimeout

func (s Monitor) SetTimeout(timeout string)

func (*Monitor) Start

func (s *Monitor) Start()

type SensorConfig

type SensorConfig struct {
	Id   int
	Name string
}

Jump to

Keyboard shortcuts

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