Golos
Разработчикам Статистика Баунти Документация Партнеры Github
Classes | Public Member Functions | List of all members
golos::blockchain_statistics::blockchain_statistics_api Class Reference

#include <blockchain_statistics_api.hpp>

Inheritance diagram for golos::blockchain_statistics::blockchain_statistics_api:

Classes

struct  blockchain_statistics_api_impl
 

Public Member Functions

 blockchain_statistics_api (const golos::application::api_context &ctx)
 
 ~blockchain_statistics_api ()
 
void on_api_startup ()
 
statistics get_stats_for_time (fc::time_point_sec open, uint32_t interval) const
 Gets statistics over the time window length, interval, that contains time, open. More...
 
statistics get_stats_for_interval (fc::time_point_sec start, fc::time_point_sec end) const
 Aggregates statistics over a time interval. More...
 
statistics get_lifetime_stats () const
 Returns lifetime statistics. More...
 

Detailed Description

Definition at line 73 of file blockchain_statistics_api.hpp.

Constructor & Destructor Documentation

◆ blockchain_statistics_api()

golos::blockchain_statistics::blockchain_statistics_api::blockchain_statistics_api ( const golos::application::api_context ctx)

Definition at line 66 of file blockchain_statistics_api.cpp.

◆ ~blockchain_statistics_api()

golos::blockchain_statistics::blockchain_statistics_api::~blockchain_statistics_api ( )
default

Member Function Documentation

◆ get_lifetime_stats()

statistics golos::blockchain_statistics::blockchain_statistics_api::get_lifetime_stats ( ) const

Returns lifetime statistics.

Definition at line 86 of file blockchain_statistics_api.cpp.

◆ get_stats_for_interval()

statistics golos::blockchain_statistics::blockchain_statistics_api::get_stats_for_interval ( fc::time_point_sec  start,
fc::time_point_sec  end 
) const

Aggregates statistics over a time interval.

Parameters
startThe beginning time of the window.
stopThe end time of the window. stop must take place after start.
Returns
Aggregated statistics over the interval.

Definition at line 78 of file blockchain_statistics_api.cpp.

◆ get_stats_for_time()

statistics golos::blockchain_statistics::blockchain_statistics_api::get_stats_for_time ( fc::time_point_sec  open,
uint32_t  interval 
) const

Gets statistics over the time window length, interval, that contains time, open.

Parameters
openThe opening time, or a time contained within the window.
intervalThe size of the window for which statistics were aggregated.
Returns
Statistics for the window.

Definition at line 72 of file blockchain_statistics_api.cpp.

◆ on_api_startup()

void golos::blockchain_statistics::blockchain_statistics_api::on_api_startup ( )

Definition at line 69 of file blockchain_statistics_api.cpp.


The documentation for this class was generated from the following files: