Class to provide an interface to the metrics database. Use cases:
- get info for a source
- insert a metrics item
- insert a metrics event
Methods
|
|
getAllSources
getAllVariables
getHistory
getSourceInfo
insertMetricsEvent
insertMetricsItem
|
|
getAllSources
|
getAllSources ( self )
Loads all the known metrics sources.
|
|
getAllVariables
|
getAllVariables ( self )
Loads all metrics variables.
|
|
getHistory
|
getHistory (
self,
source_name,
name,
)
Get the history of values for this item from this source
|
|
getSourceInfo
|
getSourceInfo ( self, source_name )
This gets the information for a metrics source by it's name. The info will be used
to verify the connecting source.
|
|
insertMetricsEvent
|
insertMetricsEvent (
self,
source_name,
event_name,
)
Inserts a metrics event into the database.
|
|
insertMetricsItem
|
insertMetricsItem (
self,
source_name,
item_name,
item_value,
)
Inserts a value for metrics item into the database.
|
|