Documentation
¶
Index ¶
- Constants
- func Connect(configuration map[string]interface{}) (database.Connection, error)
- func GlobalStatsFields(name string, stats *runtime.GlobalStats) []graphigo.Metric
- type Config
- type Connection
- func (c *Connection) Close()
- func (c *Connection) InsertGlobals(stats *runtime.GlobalStats, time time.Time, site string, domain string)
- func (c *Connection) InsertLink(link *runtime.Link, time time.Time)
- func (c *Connection) InsertNode(node *runtime.Node)
- func (c *Connection) PruneNodes(deleteAfter time.Duration)
Constants ¶
View Source
const ( MeasurementNode = "node" // Measurement for per-node 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 ¶
func GlobalStatsFields ¶
func GlobalStatsFields(name string, stats *runtime.GlobalStats) []graphigo.Metric
Types ¶
type Connection ¶
type Connection struct { database.Connection // contains filtered or unexported fields }
func (*Connection) Close ¶
func (c *Connection) Close()
func (*Connection) InsertGlobals ¶
func (c *Connection) InsertGlobals(stats *runtime.GlobalStats, time time.Time, site string, domain string)
func (*Connection) InsertLink ¶
func (c *Connection) InsertLink(link *runtime.Link, time time.Time)
InsertLink stores per link statistics
func (*Connection) InsertNode ¶
func (c *Connection) InsertNode(node *runtime.Node)
InsertNode implementation of database
func (*Connection) PruneNodes ¶
func (c *Connection) PruneNodes(deleteAfter time.Duration)
PruneNode implementation of database
Click to show internal directories.
Click to hide internal directories.