Table of Contents

Class: MetricsDB | Twisted-0.17.4/twisted/metrics/metricsdb.py
--- | ---

Class to provide an interface to the metrics database. Use cases: - get info for a source - insert a metrics item - insert a metrics event

Base Classes |
--- | ---
adbapi.Augmentation

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.

Table of Contents

This document was automatically generated on Sat Apr 20 01:32:11 2002 by HappyDoc version 2.0