Adding reconciled send_status to usage report

This commit is contained in:
Andrew Melton 2013-10-03 13:14:06 -04:00
parent 27313868ed
commit 9bdde6d385

View File

@ -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'
}