|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Database storage backend (stub implementation) More...
#include <storage_backends.h>


Public Member Functions | |
| database_storage_backend () | |
| database_storage_backend (const storage_config &config) | |
| common::Result< bool > | store (const metrics_snapshot &snapshot) override |
| common::Result< metrics_snapshot > | retrieve (size_t index) override |
| common::Result< std::vector< metrics_snapshot > > | retrieve_range (size_t start, size_t count) override |
| size_t | size () const override |
| size_t | capacity () const override |
| common::Result< bool > | flush () override |
| common::Result< bool > | clear () override |
| std::unordered_map< std::string, size_t > | get_stats () const override |
Public Member Functions inherited from kcenon::monitoring::snapshot_storage_backend | |
| virtual | ~snapshot_storage_backend ()=default |
Private Attributes | |
| storage_config | config_ |
| std::deque< metrics_snapshot > | snapshots_ |
| std::mutex | mutex_ |
| bool | connected_ {false} |
Database storage backend (stub implementation)
Definition at line 202 of file storage_backends.h.
|
inline |
Definition at line 204 of file storage_backends.h.
|
inlineexplicit |
Definition at line 206 of file storage_backends.h.
|
inlineoverridevirtual |
Implements kcenon::monitoring::snapshot_storage_backend.
Definition at line 248 of file storage_backends.h.
References config_, and kcenon::monitoring::storage_config::max_capacity.
Referenced by TEST_F().

|
inlineoverridevirtual |
Implements kcenon::monitoring::snapshot_storage_backend.
Definition at line 256 of file storage_backends.h.
References mutex_, and snapshots_.
Referenced by TEST_F().

|
inlineoverridevirtual |
Implements kcenon::monitoring::snapshot_storage_backend.
Definition at line 252 of file storage_backends.h.
Referenced by TEST_F().

|
inlineoverridevirtual |
Implements kcenon::monitoring::snapshot_storage_backend.
Definition at line 262 of file storage_backends.h.
References config_, connected_, kcenon::monitoring::storage_config::max_capacity, mutex_, and snapshots_.
Referenced by TEST_F().

|
inlineoverridevirtual |
Implements kcenon::monitoring::snapshot_storage_backend.
Definition at line 220 of file storage_backends.h.
References mutex_, kcenon::monitoring::not_found, and snapshots_.
Referenced by TEST_F().

|
inlineoverridevirtual |
Implements kcenon::monitoring::snapshot_storage_backend.
Definition at line 230 of file storage_backends.h.
References mutex_, and snapshots_.
Referenced by TEST_F().

|
inlineoverridevirtual |
Implements kcenon::monitoring::snapshot_storage_backend.
Definition at line 243 of file storage_backends.h.
References mutex_, and snapshots_.
Referenced by TEST_F().

|
inlineoverridevirtual |
Implements kcenon::monitoring::snapshot_storage_backend.
Definition at line 209 of file storage_backends.h.
References config_, kcenon::monitoring::storage_config::max_capacity, mutex_, and snapshots_.
Referenced by TEST_F(), and TEST_F().

|
private |
Definition at line 272 of file storage_backends.h.
Referenced by capacity(), get_stats(), and store().
|
private |
|
mutableprivate |
Definition at line 274 of file storage_backends.h.
Referenced by clear(), get_stats(), retrieve(), retrieve_range(), size(), and store().
|
private |
Definition at line 273 of file storage_backends.h.
Referenced by clear(), get_stats(), retrieve(), retrieve_range(), size(), and store().