|
| virtual | ~storage_backend ()=default |
| |
| virtual common::VoidResult | store (const metrics_snapshot &snapshot)=0 |
| | Store a metrics snapshot.
|
| |
| virtual common::Result< metrics_snapshot > | retrieve (std::size_t index) const =0 |
| | Retrieve a stored snapshot by index.
|
| |
| virtual common::Result< std::vector< metrics_snapshot > > | retrieve_range (std::size_t start_index, std::size_t count) const =0 |
| | Retrieve multiple snapshots.
|
| |
| virtual std::size_t | capacity () const =0 |
| | Get storage capacity.
|
| |
| virtual std::size_t | size () const =0 |
| | Get current storage usage.
|
| |
| virtual common::VoidResult | clear ()=0 |
| | Clear all stored data.
|
| |
| virtual common::VoidResult | flush ()=0 |
| | Flush any buffered data to persistent storage.
|
| |
Abstract interface for metrics storage.
Provides persistence capabilities for metric snapshots. Implementations can store data in memory, on disk, or in external databases.
- Thread Safety:
- Implementations MUST be thread-safe. Store and retrieve operations may be called concurrently.
Definition at line 420 of file monitoring_core.h.