entities

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApcHost

type ApcHost struct {
	IpAddress            string
	Name                 string
	NetworkSamplePeriod  time.Duration
	GraphingSamplePeriod time.Duration
	Enabled              bool
	TrayIcon             bool
	State                string
}

func NewApcHost

func NewApcHost(name, ip string, networkSamplePeriod, graphingSamplePeriod time.Duration, enable, trayIcon bool) *ApcHost

func (*ApcHost) IsNil added in v0.9.3

func (a *ApcHost) IsNil() bool

type ChannelTuple

type ChannelTuple struct {
	Events chan []string
	Status chan []string
}

func NewChannelTuple

func NewChannelTuple(depth int) *ChannelTuple

func (*ChannelTuple) Close

func (ct *ChannelTuple) Close()

type GraphAverage added in v0.9.3

type GraphAverage struct {
	// contains filtered or unexported fields
}

func NewGraphAverage added in v0.9.3

func NewGraphAverage(hostName, pointName string, graphPeriod time.Duration) *GraphAverage

NewGraphAverage create a data queue of graphPeriod depth returns the straight average of the queue,

func (*GraphAverage) AddValue added in v0.9.3

func (g *GraphAverage) AddValue(value float64) float64

AddValue adds the given float32 value into the queue and return the average value of the queue value queue's size is limited by graph period config value

func (*GraphAverage) IsNil added in v0.9.3

func (g *GraphAverage) IsNil() bool

func (*GraphAverage) SeriesName added in v0.9.3

func (g *GraphAverage) SeriesName() string

func (*GraphAverage) String added in v0.9.3

func (g *GraphAverage) String() string

Jump to

Keyboard shortcuts

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