6 #ifndef API_BLOCKCHAIN_STATISTICS
7 #define API_BLOCKCHAIN_STATISTICS "blockchain_statistics_api"
17 namespace blockchain_monitoring {
20 class blockchain_statistics_api_impl;
67 std::shared_ptr<detail::blockchain_statistics_api_impl> my;
73 (get_stats_for_time)(get_stats_for_interval)(get_lifetime_stats))
blockchain_statistics_api(const scorum::app::api_context &ctx)
statistics get_stats_for_interval(const fc::time_point_sec &start, const fc::time_point_sec &stop) const
Aggregates statistics over a time interval.
statistics get_stats_for_time(const fc::time_point_sec &open, uint32_t interval) const
Gets statistics over the time window length, interval, that contains time, open.
statistics get_lifetime_stats() const
Returns lifetime statistics.