Scorum
metrics.cpp
Go to the documentation of this file.
3 
4 namespace scorum {
5 namespace blockchain_monitoring {
6 
8 {
9  this->blocks += b.blocks;
10  this->bandwidth += b.bandwidth;
11  this->operations += b.operations;
12  this->transactions += b.transactions;
13  this->transfers += b.transfers;
17  this->root_comments += b.root_comments;
20  this->replies += b.replies;
21  this->reply_edits += b.reply_edits;
23  this->new_root_votes += b.new_root_votes;
27  this->payouts += b.payouts;
41 
42  // total
44  this->total_comments += b.root_comments + b.replies;
52 
53  for (auto& item : b.missed_blocks)
54  {
55  this->missed_blocks[item.first] = item.second;
56  }
57 
58  return (*this);
59 }
60 }
61 } // scorum::blockchain_monitoring
Definition: asset.cpp:15
uint32_t replies_deleted
Replies deleted.
Definition: metrics.hpp:47
uint32_t transfers
Account/devpool to account transfers.
Definition: metrics.hpp:28
uint32_t changed_reply_votes
Changed votes on replies.
Definition: metrics.hpp:51
share_type scorumpower_paid_to_authors
Amount of SP paid to authors.
Definition: metrics.hpp:54
uint32_t root_comments_deleted
Root comments deleted.
Definition: metrics.hpp:44
uint32_t reply_edits
Edits to replies.
Definition: metrics.hpp:46
uint32_t root_comment_edits
Edits to root comments.
Definition: metrics.hpp:43
uint32_t vesting_withdrawals_processed
Number of vesting withdrawals.
Definition: metrics.hpp:32
uint32_t transfers_to_scorumpower
Transfers of SCR into SP.
Definition: metrics.hpp:29
uint32_t replies
Replies to comments.
Definition: metrics.hpp:45
uint32_t new_root_votes
New votes on root comments.
Definition: metrics.hpp:48
uint32_t free_accounts_created
Accounts created with fee.
Definition: metrics.hpp:26
uint32_t transactions
Transactions processed.
Definition: metrics.hpp:22
uint32_t new_reply_votes
New votes on replies.
Definition: metrics.hpp:50
uint32_t blocks
Blocks produced.
Definition: metrics.hpp:19
uint32_t bandwidth
Bandwidth in bytes.
Definition: metrics.hpp:20
uint32_t finished_vesting_withdrawals
Processed vesting withdrawals that are now finished.
Definition: metrics.hpp:33
share_type scr_paid_to_curators
Amount of SCR paid to curators.
Definition: metrics.hpp:55
uint32_t paid_accounts_created
Accounts created with fee.
Definition: metrics.hpp:25
share_type scorumpower_withdrawn
Amount of SP withdrawn to SCR.
Definition: metrics.hpp:37
uint32_t operations
Operations evaluated.
Definition: metrics.hpp:21
uint32_t new_vesting_withdrawal_requests
New vesting withdrawal requests.
Definition: metrics.hpp:30
uint32_t root_comments
Top level root comments.
Definition: metrics.hpp:42
share_type scorumpower_transferred
Amount of SP transferred to another account.
Definition: metrics.hpp:38
uint32_t modified_vesting_withdrawal_requests
Changes to vesting withdrawal requests.
Definition: metrics.hpp:31
share_type scorum_transferred
SCR transferred from account to account.
Definition: metrics.hpp:35
share_type scorum_transferred_to_scorumpower
Amount of SCR vested.
Definition: metrics.hpp:36
share_type scorumpower_paid_to_curators
Amount of SP paid to curators.
Definition: metrics.hpp:56
share_type scr_paid_to_authors
Amount of SCR paid to authors.
Definition: metrics.hpp:53
uint32_t changed_root_votes
Changed votes on root comments.
Definition: metrics.hpp:49
uint32_t payouts
Number of comment payouts.
Definition: metrics.hpp:52
fc::shared_map< uint32_t, account_name_type > missed_blocks
map missed block to witness which missed
std::map< uint32_t, std::string > missed_blocks
map missed block to witness which missed
Definition: metrics.hpp:76
statistics & operator+=(const bucket_object &)
Definition: metrics.cpp:7
uint32_t total_comment_edits
Edits to comments.
Definition: metrics.hpp:63
uint32_t total_comments
Total comments.
Definition: metrics.hpp:62
uint32_t total_reply_votes
Total votes on replies.
Definition: metrics.hpp:69
uint32_t total_votes
Total votes on all comments.
Definition: metrics.hpp:65
uint32_t changed_votes
Changed votes on comments.
Definition: metrics.hpp:67
uint32_t total_comments_deleted
Comments deleted.
Definition: metrics.hpp:64
uint32_t total_root_votes
Total votes on root comments.
Definition: metrics.hpp:68
uint32_t new_votes
New votes on comments.
Definition: metrics.hpp:66
uint32_t total_accounts_created
Total accounts created.
Definition: metrics.hpp:61