pi_dashboard.db¶
Database manager classes for the Pi Dashboard server.
- class pi_dashboard.db.MetricsDatabaseManager(db_config)[source]¶
Manager class for metrics database operations.
- __init__(db_config)[source]¶
Initialize the MetricsDatabaseManager with the given database configuration.
- is_stale(entry)[source]¶
Return True if the metrics entry is older than the specified metrics lifetime.
- Parameters:
entry (
SystemMetrics) – The metrics entry to check- Return bool:
True if the entry is stale
- Return type:
- get_all_system_metrics_entries()[source]¶
Public method to retrieve all metrics entries.
- Return type:
- get_system_metrics_entries_since(last_n_seconds, max_data_points)[source]¶
Get metrics entries from the last N seconds with adaptive downsampling.
- Return type:
- class pi_dashboard.db.NotesDatabaseManager(db_config)[source]¶
Manager class for notes database operations.
- __init__(db_config)[source]¶
Initialize the NotesDatabaseManager with the given database configuration.
Modules
Metrics database manager. |
|
Notes database manager. |