Versions in this module Expand all Collapse all v0 v0.1.2 Apr 3, 2019 Changes in this version + func PluginNfqueueHandler(mess dispatch.NfqueueMessage, ctid uint32, newSession bool) dispatch.NfqueueResult + func PluginShutdown() + func PluginStartup() + func WriteStatsJSON(p ParentJSON) + type Collector struct + Latency15Min ExponentialAverage + Latency1Min ExponentialAverage + Latency5Min ExponentialAverage + LatencyVariance RunningVariance + func CreateCollector() *Collector + func (c *Collector) AddDataPoint(value float64) + func (c *Collector) AddDataPointLimited(value float64, deviationLimit float64) + func (c *Collector) MakeCopy() Collector + type ExponentialAverage struct + CreationTime time.Time + LastDatapointTimestamp time.Time + TimeframeMilliSeconds float64 + Value float64 + func (ea *ExponentialAverage) AdjustExpAvg(value float64) + func (ea *ExponentialAverage) String() string + type InterfaceStatsJSON struct + InterfaceID int + Stats []StatisticJSON + func MakeInterfaceStatsJSON(interfaceID int, latency1 float64, latency5 float64, latency15 float64) InterfaceStatsJSON + type MetricJSON struct + Name string + Value float64 + type ParentJSON struct + Interfaces []InterfaceStatsJSON + Version int + func MakeStatsJSON(interfaceStats []InterfaceStatsJSON) ParentJSON + type RunningVariance struct + Alpha float64 + Mean float64 + StdDeviation float64 + Variance float64 + func (rv *RunningVariance) AdjustVariance(value float64) + func (rv *RunningVariance) String() string + type StatisticJSON struct + Metrics []MetricJSON + Name string + Unit string + func MakeStatisticJSON(name string, unit string, metrics []MetricJSON) StatisticJSON