|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Storage configuration. More...
#include <storage_backends.h>

Public Member Functions | |
| common::Result< bool > | validate () const |
| Validate configuration. | |
Public Attributes | |
| storage_backend_type | type {storage_backend_type::memory_buffer} |
| std::string | path |
| std::string | data_directory |
| compression_algorithm | compression {compression_algorithm::none} |
| size_t | max_size_mb {100} |
| bool | auto_flush {true} |
| std::chrono::milliseconds | flush_interval {std::chrono::milliseconds(5000)} |
| size_t | max_capacity {1000} |
| size_t | batch_size {100} |
| std::string | table_name |
| std::string | host |
| uint16_t | port {0} |
| std::string | database_name |
| std::string | username |
| std::string | password |
Storage configuration.
Definition at line 56 of file storage_backends.h.
|
inline |
Validate configuration.
Definition at line 79 of file storage_backends.h.
References batch_size, host, kcenon::monitoring::invalid_capacity, kcenon::monitoring::invalid_configuration, max_capacity, kcenon::monitoring::memory_buffer, path, and type.
Referenced by TEST_F().

| bool kcenon::monitoring::storage_config::auto_flush {true} |
Definition at line 62 of file storage_backends.h.
| size_t kcenon::monitoring::storage_config::batch_size {100} |
| compression_algorithm kcenon::monitoring::storage_config::compression {compression_algorithm::none} |
Definition at line 60 of file storage_backends.h.
Referenced by main().
| std::string kcenon::monitoring::storage_config::data_directory |
Definition at line 59 of file storage_backends.h.
Referenced by main().
| std::string kcenon::monitoring::storage_config::database_name |
Definition at line 71 of file storage_backends.h.
Referenced by TEST_F().
| std::chrono::milliseconds kcenon::monitoring::storage_config::flush_interval {std::chrono::milliseconds(5000)} |
Definition at line 63 of file storage_backends.h.
| std::string kcenon::monitoring::storage_config::host |
Definition at line 69 of file storage_backends.h.
Referenced by TEST_F(), and validate().
| size_t kcenon::monitoring::storage_config::max_capacity {1000} |
Definition at line 66 of file storage_backends.h.
Referenced by kcenon::monitoring::cloud_storage_backend::capacity(), kcenon::monitoring::database_storage_backend::capacity(), kcenon::monitoring::file_storage_backend::capacity(), kcenon::monitoring::memory_storage_backend::capacity(), kcenon::monitoring::create_cloud_storage(), kcenon::monitoring::create_database_storage(), kcenon::monitoring::create_file_storage(), kcenon::monitoring::cloud_storage_backend::get_stats(), kcenon::monitoring::database_storage_backend::get_stats(), kcenon::monitoring::file_storage_backend::get_stats(), kcenon::monitoring::memory_storage_backend::get_stats(), kcenon::monitoring::cloud_storage_backend::store(), kcenon::monitoring::database_storage_backend::store(), kcenon::monitoring::file_storage_backend::store(), kcenon::monitoring::memory_storage_backend::store(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and validate().
| size_t kcenon::monitoring::storage_config::max_size_mb {100} |
Definition at line 61 of file storage_backends.h.
| std::string kcenon::monitoring::storage_config::password |
Definition at line 73 of file storage_backends.h.
Referenced by TEST_F().
| std::string kcenon::monitoring::storage_config::path |
Definition at line 58 of file storage_backends.h.
Referenced by kcenon::monitoring::create_cloud_storage(), kcenon::monitoring::create_database_storage(), kcenon::monitoring::create_file_storage(), main(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and validate().
| uint16_t kcenon::monitoring::storage_config::port {0} |
| std::string kcenon::monitoring::storage_config::table_name |
Definition at line 68 of file storage_backends.h.
Referenced by kcenon::monitoring::create_database_storage(), and TEST_F().
| storage_backend_type kcenon::monitoring::storage_config::type {storage_backend_type::memory_buffer} |
Definition at line 57 of file storage_backends.h.
Referenced by kcenon::monitoring::storage_backend_factory::create_backend(), kcenon::monitoring::create_cloud_storage(), kcenon::monitoring::create_database_storage(), kcenon::monitoring::create_file_storage(), main(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and validate().
| std::string kcenon::monitoring::storage_config::username |
Definition at line 72 of file storage_backends.h.
Referenced by TEST_F().