Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Details ¶
type Details struct {
Last string `json:"last"` //how many seconds ago...
Bytes WelfordStats `json:"bytes"`
Dt WelfordStats `json:"dt"`
}
Details represents detailed statistics
func NewDetails ¶
NewDetails holds detailed information on channel statistics in one direction
type Report ¶
type Report struct {
Connected string `json:"connected"`
Tx Details `json:"tx"`
Rx Details `json:"rx"`
}
Report represents overally statistics for a topic
type WelfordStats ¶
type WelfordStats struct {
Count uint64 `json:"count"`
Min float64 `json:"min"`
Max float64 `json:"max"`
Mean float64 `json:"mean"`
Stddev float64 `json:"stddev"`
Variance float64 `json:"variance"`
}
WelfordStats represents statistical values
func NewWelford ¶
func NewWelford(w *welford.Stats) *WelfordStats
NewWelford initialises a new statistics structure
Click to show internal directories.
Click to hide internal directories.