Scorum
metrics.cpp
Go to the documentation of this file.
3 
4 namespace scorum {
5 namespace account_statistics {
6 
8 {
10 
11  // bandwidth
12  this->market_bandwidth += stat.market_bandwidth;
14  this->total_ops += stat.total_ops;
15  this->market_ops += stat.market_ops;
16  this->forum_ops += stat.forum_ops;
17 
18  // money
19  this->transfers_from += stat.transfers_from;
20  this->transfers_to += stat.transfers_to;
22 
23  this->scorum_sent += stat.scorum_sent;
24  this->scorum_received += stat.scorum_received;
27 
32 
37 
38  // comments
39  this->root_comments += stat.root_comments;
42  this->replies += stat.replies;
43  this->reply_edits += stat.reply_edits;
44  this->replies_deleted += stat.replies_deleted;
45  this->new_root_votes += stat.new_root_votes;
47  this->new_reply_votes += stat.new_reply_votes;
49 
53 
57 
58  return (*this);
59 }
60 
63 {
64  for (auto& item : bucket.account_statistic)
65  {
66  statistic_map[item.first] += item.second;
67  }
68 
69  return (*this);
70 }
71 }
72 } // scorum::account_statistics
Definition: asset.cpp:15
uint32_t finished_vesting_withdrawals
Processed vesting withdrawals that are now finished.
Definition: metrics.hpp:41
uint32_t curation_reward_payouts
Number of curation reward payouts.
Definition: metrics.hpp:64
uint32_t new_reply_votes
New votes on replies.
Definition: metrics.hpp:57
asset author_rewards_total_scorum_value
SCR value of author rewards.
Definition: metrics.hpp:62
uint32_t root_comment_edits
Edits to root comments.
Definition: metrics.hpp:50
uint32_t author_reward_payouts
Number of author reward payouts.
Definition: metrics.hpp:60
uint32_t root_comments_deleted
Root comments deleted.
Definition: metrics.hpp:51
uint32_t replies
Replies to comments.
Definition: metrics.hpp:52
uint32_t vesting_withdrawals_processed
Vesting withdrawals processed for this account.
Definition: metrics.hpp:40
uint32_t market_bandwidth
Charged bandwidth for market transactions.
Definition: metrics.hpp:21
uint32_t reply_edits
Edits to replies.
Definition: metrics.hpp:53
asset scorum_transferred_to_scorumpower
SCR vested by the account.
Definition: metrics.hpp:35
uint32_t transfers_from
Account to account transfers from this account.
Definition: metrics.hpp:28
asset scorumpower_withdrawn
SP withdrawn from the account.
Definition: metrics.hpp:43
uint32_t changed_reply_votes
Changed votes for replies.
Definition: metrics.hpp:58
uint32_t new_root_votes
New votes on root comments.
Definition: metrics.hpp:55
asset scorum_received_from_withdrawls
SCR received from this account's vesting withdrawals.
Definition: metrics.hpp:44
uint32_t root_comments
Top level root comments.
Definition: metrics.hpp:49
asset scorumpower_received_by_transfers
New SP by scorumpower transfers.
Definition: metrics.hpp:36
asset scorumpower_received_from_routes
SP received from another account's vesting withdrawals.
Definition: metrics.hpp:46
uint32_t forum_ops
Forum operations.
Definition: metrics.hpp:25
uint32_t transfers_to
Account to account transfers to this account.
Definition: metrics.hpp:29
asset author_rewards_scorumpower
SP paid for author rewards.
Definition: metrics.hpp:61
asset scorum_received_from_routes
SCR received from another account's vesting withdrawals.
Definition: metrics.hpp:45
asset curation_rewards_scorum_value
SCR value of curation rewards.
Definition: metrics.hpp:66
asset scorum_received
SCR received by this account.
Definition: metrics.hpp:34
uint32_t market_ops
Market operations.
Definition: metrics.hpp:24
uint32_t changed_root_votes
Changed votes for root comments.
Definition: metrics.hpp:56
uint32_t new_vesting_withdrawal_requests
New vesting withdrawal requests.
Definition: metrics.hpp:38
uint32_t replies_deleted
Replies deleted.
Definition: metrics.hpp:54
uint32_t non_market_bandwidth
Charged bandwidth for non-market transactions.
Definition: metrics.hpp:22
uint32_t total_ops
Ops this account was an authority on.
Definition: metrics.hpp:23
asset curation_rewards_scorumpower
SP paid for curation rewards.
Definition: metrics.hpp:65
uint32_t modified_vesting_withdrawal_requests
Changes to vesting withdraw requests.
Definition: metrics.hpp:39
asset scorum_sent
counts as a transfer from A to B followed by a scorumpower deposit by B.
Definition: metrics.hpp:33
uint32_t signed_transactions
Transactions this account signed.
Definition: metrics.hpp:18
account_statistic & operator+=(const account_metric &)
Definition: metrics.cpp:7
fc::shared_map< account_name_type, account_metric > account_statistic
Definition: objects.hpp:42
std::map< account_name_type, account_statistic > statistic_map
Definition: metrics.hpp:77
statistics & operator+=(const bucket_object &)
Definition: metrics.cpp:62