Merge pull request #214 from ramielrowe/reconciled_status_report
Adding reconciled send_status to usage report
This commit is contained in:
commit
5d6d030c5f
@ -153,6 +153,9 @@ def _audit_for_exists(exists_query):
|
||||
(success, unsent, redirect,
|
||||
client_error, server_error) = _send_status_queries(verified)
|
||||
|
||||
(success_rec, unsent_rec, redirect_rec,
|
||||
client_error_rec, server_error_rec) = _send_status_queries(reconciled)
|
||||
|
||||
report = {
|
||||
'count': exists_query.count(),
|
||||
'verified': verified.count(),
|
||||
@ -166,6 +169,13 @@ def _audit_for_exists(exists_query):
|
||||
'redirect': redirect.count(),
|
||||
'client_error': client_error.count(),
|
||||
'server_error': server_error.count(),
|
||||
},
|
||||
'send_status_rec': {
|
||||
'success': success_rec.count(),
|
||||
'unsent': unsent_rec.count(),
|
||||
'redirect': redirect_rec.count(),
|
||||
'client_error': client_error_rec.count(),
|
||||
'server_error': server_error_rec.count(),
|
||||
}
|
||||
}
|
||||
|
||||
@ -328,7 +338,7 @@ def store_results(start, end, summary, details):
|
||||
'created': dt.dt_to_decimal(datetime.datetime.utcnow()),
|
||||
'period_start': start,
|
||||
'period_end': end,
|
||||
'version': 4,
|
||||
'version': 5,
|
||||
'name': 'nova usage audit'
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user