class documentation
class TimeSeriesManager(object):
Manager for TimeSeries handlings
| Method | add |
Add a subscription for the <TS> resource. Setup the internal structures. |
| Method | is |
Check whether a resource is been monitored. |
| Method | pause |
Pause the monitoring of a <TS> resource. |
| Method | remove |
Remove a subcription from a <TS> resource. Remove the internal structures. |
| Method | restart |
Restart the TimeSeriesManager service. |
| Method | start |
Initialize the TimeSeriesManager. Register event handlers. |
| Method | stop |
Shutdown the TimeSeriesManager. Stop all the active workers. |
| Method | stop |
Stop the background worker that monitores the timeSeries ingress. |
| Method | stop |
Remove a <TS> resource from monitoring. No other attributes are updated. |
| Method | time |
This method is called when the expectedDgtRange has passed. It checks whether a TSI is missing by looking at the latest arrived dgt. |
| Method | update |
Update an existing missing data subscription. |
| Method | update |
Add or update to the internal monitor DB. The monitoring is started when a first TSI is added for a <TS>. |
| Class Variable | dispatcher |
Injected Dispatcher instance. |
| Class Variable | notification |
Injected NotificationManager instance. |
| Method | _restore |
Restore the necessary internal in-memory structures when (re)starting a CSE. |
Check whether a resource is been monitored.
| Parameters | |
ri:str | ResourceID of the TimeSeries resource. |
| Returns | |
bool | Boolean indicating whether the resource is monitored. |
Pause the monitoring of a <TS> resource.
| Parameters | |
tsstr | ResourceID of the TimeSeries resource. |
| Returns | |
bool | Boolean indicating success. |
Remove a <TS> resource from monitoring. No other attributes are updated.
| Parameters | |
tsstr | ResourceID of the TimeSeries resource. |
| Returns | |
bool | Boolean indicating success. |
This method is called when the expectedDgtRange has passed. It checks whether a TSI is missing by looking at the latest arrived dgt.
| Parameters | |
tsstr | resourceID of the respective <TS> resource.
Can be used to retrieve infos from runningTimeserieses dict. |
| Returns | |
bool | True if the monitor should continue, False if the monitor should stop. |