|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Batch of metrics for efficient processing. More...
#include <metric_types.h>

Public Member Functions | |
| metric_batch () | |
| metric_batch (size_t id) | |
| void | add_metric (compact_metric_value &&metric) |
| Add metric to batch. | |
| size_t | memory_footprint () const noexcept |
| Get batch size in bytes. | |
| void | reserve (size_t count) |
| Reserve space for metrics. | |
| void | clear () |
| Clear all metrics. | |
| bool | empty () const noexcept |
| Check if batch is empty. | |
| size_t | size () const noexcept |
| Get number of metrics in batch. | |
Public Attributes | |
| std::vector< compact_metric_value > | metrics |
| std::chrono::system_clock::time_point | batch_timestamp |
| size_t | batch_id |
Batch of metrics for efficient processing.
Definition at line 197 of file metric_types.h.
|
inline |
Definition at line 202 of file metric_types.h.
Referenced by memory_footprint().

|
inlineexplicit |
Definition at line 204 of file metric_types.h.
|
inline |
Add metric to batch.
Definition at line 210 of file metric_types.h.
References metrics.
Referenced by demonstrate_metric_batch(), TEST_F(), and TEST_F().

|
inline |
Clear all metrics.
Definition at line 235 of file metric_types.h.
References batch_timestamp, and metrics.
Referenced by demonstrate_metric_batch(), and TEST_F().

|
inlinenoexcept |
Check if batch is empty.
Definition at line 243 of file metric_types.h.
References metrics.
Referenced by demonstrate_metric_batch(), and TEST_F().

|
inlinenoexcept |
Get batch size in bytes.
Definition at line 217 of file metric_types.h.
References metric_batch(), and metrics.
Referenced by demonstrate_metric_batch(), and TEST_F().


|
inline |
Reserve space for metrics.
Definition at line 228 of file metric_types.h.
References metrics.
Referenced by demonstrate_metric_batch().

|
inlinenoexcept |
Get number of metrics in batch.
Definition at line 250 of file metric_types.h.
References metrics.
Referenced by demonstrate_metric_batch(), and TEST_F().

| size_t kcenon::monitoring::metric_batch::batch_id |
Definition at line 200 of file metric_types.h.
Referenced by demonstrate_metric_batch().
| std::chrono::system_clock::time_point kcenon::monitoring::metric_batch::batch_timestamp |
Definition at line 199 of file metric_types.h.
Referenced by clear().
| std::vector<compact_metric_value> kcenon::monitoring::metric_batch::metrics |
Definition at line 198 of file metric_types.h.
Referenced by add_metric(), clear(), empty(), memory_footprint(), reserve(), size(), and kcenon::monitoring::metric_storage::store_metrics_batch().