Scorum
Public Types | Public Member Functions | Public Attributes | List of all members
scorum::common_statistics::common_statistics_api_impl< Bucket, Statistic > Class Template Reference

#include <base_api_impl.hpp>

Public Types

typedef common_statistics_api_impl base_api_impl
 

Public Member Functions

 common_statistics_api_impl (scorum::app::application &app, const std::string &name)
 
Statistic get_stats_for_time (const fc::time_point_sec &open, uint32_t interval) const
 
template<typename Plugin >
Statistic get_stats_for_interval (const fc::time_point_sec &start, const fc::time_point_sec &end) const
 
Statistic get_lifetime_stats () const
 

Public Attributes

scorum::app::application_app
 
const std::string _plugin_name
 

Detailed Description

template<typename Bucket, typename Statistic>
class scorum::common_statistics::common_statistics_api_impl< Bucket, Statistic >

Definition at line 8 of file base_api_impl.hpp.

Member Typedef Documentation

◆ base_api_impl

template<typename Bucket , typename Statistic >
typedef common_statistics_api_impl scorum::common_statistics::common_statistics_api_impl< Bucket, Statistic >::base_api_impl

Definition at line 13 of file base_api_impl.hpp.

Constructor & Destructor Documentation

◆ common_statistics_api_impl()

template<typename Bucket , typename Statistic >
scorum::common_statistics::common_statistics_api_impl< Bucket, Statistic >::common_statistics_api_impl ( scorum::app::application app,
const std::string &  name 
)
inline

Definition at line 19 of file base_api_impl.hpp.

Member Function Documentation

◆ get_lifetime_stats()

template<typename Bucket , typename Statistic >
Statistic scorum::common_statistics::common_statistics_api_impl< Bucket, Statistic >::get_lifetime_stats ( ) const
inline

Definition at line 66 of file base_api_impl.hpp.

◆ get_stats_for_interval()

template<typename Bucket , typename Statistic >
template<typename Plugin >
Statistic scorum::common_statistics::common_statistics_api_impl< Bucket, Statistic >::get_stats_for_interval ( const fc::time_point_sec &  start,
const fc::time_point_sec &  end 
) const
inline

Definition at line 38 of file base_api_impl.hpp.

◆ get_stats_for_time()

template<typename Bucket , typename Statistic >
Statistic scorum::common_statistics::common_statistics_api_impl< Bucket, Statistic >::get_stats_for_time ( const fc::time_point_sec &  open,
uint32_t  interval 
) const
inline

Definition at line 25 of file base_api_impl.hpp.

Member Data Documentation

◆ _app

template<typename Bucket , typename Statistic >
scorum::app::application& scorum::common_statistics::common_statistics_api_impl< Bucket, Statistic >::_app

Definition at line 15 of file base_api_impl.hpp.

◆ _plugin_name

template<typename Bucket , typename Statistic >
const std::string scorum::common_statistics::common_statistics_api_impl< Bucket, Statistic >::_plugin_name

Definition at line 16 of file base_api_impl.hpp.


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