@@ -36,25 +36,29 @@ def cli(env):
3636 table .add_row (['email_information' , table_information ])
3737 table .add_row (['email_overview' , overview_table ])
3838 for statistic in statistics :
39- table .add_row (['statistics' , _build_statistics_table (statistic )])
39+ table .add_row (['statistics' , build_statistics_table (statistic )])
4040
4141 env .fout (table )
4242
4343
4444def _build_overview_table (email_overview ):
45- table = formatting .Table (['credit_Allowed' , 'credits_Remain' , 'package' , 'reputation' , 'requests' ])
45+ table = formatting .Table (
46+ ['credit_allowed' , 'credits_remain' , 'credits_overage' , 'credits_used' ,
47+ 'package' , 'reputation' , 'requests' ])
4648 table .align ['name' ] = 'r'
4749 table .align ['value' ] = 'l'
4850
4951 table .add_row ([email_overview .get ('creditsAllowed' ), email_overview .get ('creditsRemain' ),
52+ email_overview .get ('creditsOverage' ), email_overview .get ('creditsUsed' ),
5053 email_overview .get ('package' ), email_overview .get ('reputation' ),
5154 email_overview .get ('requests' )])
5255
5356 return table
5457
5558
56- def _build_statistics_table (statistics ):
57- table = formatting .Table (['delivered' , 'requests' , 'bounces' , 'opens' , 'clicks' , 'spamReports' ])
59+ def build_statistics_table (statistics ):
60+ """statistics records of Email Delivery account"""
61+ table = formatting .Table (['delivered' , 'requests' , 'bounces' , 'opens' , 'clicks' , 'spam_reports' ])
5862 table .align ['name' ] = 'r'
5963 table .align ['value' ] = 'l'
6064
0 commit comments