dp3.history_management.history_manager ¶
DatetimeEncoder ¶
SnapshotCleaningConfig ¶
Bases: BaseModel
Configuration for snapshot cleaning.
Attributes:
Name | Type | Description |
---|---|---|
schedule |
CronExpression
|
Schedule for snapshot cleaning. |
older_than |
ParsedTimedelta
|
Snapshots older than this will be deleted. |
DPArchivationConfig ¶
Bases: BaseModel
Configuration for datapoint archivation.
Attributes:
Name | Type | Description |
---|---|---|
schedule |
CronExpression
|
Schedule for datapoint archivation. |
older_than |
ParsedTimedelta
|
Datapoints older than this will be archived. |
archive_dir |
Optional[str]
|
Directory where to archive datapoints. Can be |
HistoryManagerConfig ¶
Bases: BaseModel
Configuration for history manager.
Attributes:
Name | Type | Description |
---|---|---|
aggregation_schedule |
CronExpression
|
Schedule for master document aggregation. |
datapoint_cleaning_schedule |
CronExpression
|
Schedule for datapoint cleaning. |
mark_datapoints_schedule |
CronExpression
|
Schedule for marking datapoints in master docs. |
snapshot_cleaning |
SnapshotCleaningConfig
|
Configuration for snapshot cleaning. |
datapoint_archivation |
DPArchivationConfig
|
Configuration for datapoint archivation. |
HistoryManager ¶
Source code in dp3/history_management/history_manager.py
delete_old_dps ¶
Deletes old data points from master collection.
Source code in dp3/history_management/history_manager.py
mark_datapoints_in_master_docs ¶
Marks the timestamps of all datapoints in master documents.
Source code in dp3/history_management/history_manager.py
delete_old_snapshots ¶
Deletes old snapshots.
Source code in dp3/history_management/history_manager.py
archive_old_dps ¶
Archives old data points from raw collection.
Updates already saved archive files, if present.
Source code in dp3/history_management/history_manager.py
aggregate_multivalue_dp_history_on_equal ¶
Merge multivalue datapoints in the history with equal values and overlapping time validity.
Avergages the confidence. Will keep a pool of "active" datapoints and merge them with the next datapoint if they have the same value and overlapping time validity.
FIXME
The average calculation only works for the current iteration, but for the next call of the algorithm, the count of aggregated datapoints is lost.
Source code in dp3/history_management/history_manager.py
aggregate_dp_history_on_equal ¶
Merge datapoints in the history with equal values and overlapping time validity.
Avergages the confidence.
FIXME
The average calculation only works for the current iteration, but for the next call of the algorithm, the count of aggregated datapoints is lost.