ddt  0.1
ddtStatistics.hpp
Go to the documentation of this file.
1 // @copyright
2 // (c) Copyright ESO 2020
3 // All Rights Reserved
4 // ESO (eso.org) is an Intergovernmental Organization, and therefore special
5 // legal conditions apply.
6 //
7 // @file ddtStatistics.hpp
8 // @brief Statistics for the monitoring API.
9 //
10 // This struct contains the raw values for the monitoring API.
11 //
12 // @author Matthias Grimm, CGI
13 // @since 2020/05/28
14 //
15 
16 #include <chrono>
17 #include <iostream>
18 
19 namespace ddt {
20 
24 struct DdtStatistics {
28  std::chrono::system_clock::time_point last_received;
32  std::string last_received_str = "";
36  int32_t num_subscribers = 0;
40  uint64_t total_samples = 0;
44  uint64_t total_bytes = 0;
48  uint64_t total_latency = 0;
52  int32_t queue_capacity = 0;
56  std::string originating_broker = "";
57 };
58 
59 } // namespace ddt
ddt::DdtStatistics
Definition: ddtStatistics.hpp:24
ddt::DdtStatistics::last_received_str
std::string last_received_str
Definition: ddtStatistics.hpp:32
ddt::DdtStatistics::total_latency
uint64_t total_latency
Definition: ddtStatistics.hpp:48
ddt
Definition: ddtClient.hpp:36
ddt::DdtStatistics::total_bytes
uint64_t total_bytes
Definition: ddtStatistics.hpp:44
ddt::DdtStatistics::num_subscribers
int32_t num_subscribers
Definition: ddtStatistics.hpp:36
ddt::DdtStatistics::originating_broker
std::string originating_broker
Definition: ddtStatistics.hpp:56
ddt::DdtStatistics::last_received
std::chrono::system_clock::time_point last_received
Definition: ddtStatistics.hpp:28
ddt::DdtStatistics::queue_capacity
int32_t queue_capacity
Definition: ddtStatistics.hpp:52
ddt::DdtStatistics::total_samples
uint64_t total_samples
Definition: ddtStatistics.hpp:40