Documentation ¶
Index ¶
- Constants
- func Connect(configuration map[string]interface{}) (database.Connection, error)
- type Config
- type Connection
- func (conn *Connection) Close()
- func (conn *Connection) InsertGlobals(stats *runtime.GlobalStats, time time.Time, site string, domain string)
- func (conn *Connection) InsertLink(link *runtime.Link, t time.Time)
- func (conn *Connection) InsertNode(node *runtime.Node)
- func (conn *Connection) PruneNodes(deleteAfter time.Duration)
Constants ¶
View Source
const ( MeasurementLink = "link" // Measurement for per-link statistics MeasurementNode = "node" // Measurement for per-node statistics MeasurementDHCP = "dhcp" // Measurement for DHCP server statistics MeasurementGlobal = "global" // Measurement for summarized global statistics CounterMeasurementFirmware = "firmware" // Measurement for firmware statistics CounterMeasurementModel = "model" // Measurement for model statistics CounterMeasurementAutoupdater = "autoupdater" // Measurement for autoupdater )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connection ¶
type Connection struct { database.Connection // contains filtered or unexported fields }
func (*Connection) InsertGlobals ¶
func (conn *Connection) InsertGlobals(stats *runtime.GlobalStats, time time.Time, site string, domain string)
InsertGlobals implementation of database
func (*Connection) InsertLink ¶
func (conn *Connection) InsertLink(link *runtime.Link, t time.Time)
InsertLink adds a link data point
func (*Connection) InsertNode ¶
func (conn *Connection) InsertNode(node *runtime.Node)
InsertNode stores statistics and neighbours in the database
func (*Connection) PruneNodes ¶
func (conn *Connection) PruneNodes(deleteAfter time.Duration)
PruneNodes prunes historical per-node data - not nessasary, juse configurate your influxdb2
Click to show internal directories.
Click to hide internal directories.