|
1 | | -"""Get lists Email Delivery account Service """ |
| 1 | +"""Lists Email Delivery Service """ |
2 | 2 | # :license: MIT, see LICENSE for more details. |
3 | 3 |
|
4 | 4 | import click |
@@ -36,25 +36,29 @@ def cli(env): |
36 | 36 | table.add_row(['email_information', table_information]) |
37 | 37 | table.add_row(['email_overview', overview_table]) |
38 | 38 | for statistic in statistics: |
39 | | - table.add_row(['statistics', _build_statistics_table(statistic)]) |
| 39 | + table.add_row(['statistics', build_statistics_table(statistic)]) |
40 | 40 |
|
41 | 41 | env.fout(table) |
42 | 42 |
|
43 | 43 |
|
44 | 44 | def _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']) |
46 | 48 | table.align['name'] = 'r' |
47 | 49 | table.align['value'] = 'l' |
48 | 50 |
|
49 | 51 | table.add_row([email_overview.get('creditsAllowed'), email_overview.get('creditsRemain'), |
| 52 | + email_overview.get('creditsOverage'), email_overview.get('creditsUsed'), |
50 | 53 | email_overview.get('package'), email_overview.get('reputation'), |
51 | 54 | email_overview.get('requests')]) |
52 | 55 |
|
53 | 56 | return table |
54 | 57 |
|
55 | 58 |
|
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']) |
58 | 62 | table.align['name'] = 'r' |
59 | 63 | table.align['value'] = 'l' |
60 | 64 |
|
|
0 commit comments