Metric values are self archiving with a timestamp.
More...
|
| def | __init__ (self, name='', timestamp=0, datatype='', strvalue='', datavalue=None, archive=True, batch=10) |
| |
| def | archive (self) |
| |
|
|
| name |
| |
|
| timestamp |
| |
|
| datatype |
| |
|
| strvalue |
| |
|
| datavalue |
| |
Metric values are self archiving with a timestamp.
§ __init__()
| def Metric.MetricValue.__init__ |
( |
|
self, |
|
|
|
name = '', |
|
|
|
timestamp = 0, |
|
|
|
datatype = '', |
|
|
|
strvalue = '', |
|
|
|
datavalue = None, |
|
|
|
archive = True, |
|
|
|
batch = 10 |
|
) |
| |
Initializes MetricValue object
In-memory objects which hold historic values of a metric
they are also responsible for archiving themselves
§ archive()
| def Metric.MetricValue.archive |
( |
|
self | ) |
|
a metric triggers this function but it only writes to the file once 10 values have been collected
metricvalue.archive()
The documentation for this class was generated from the following file: