Created
November 28, 2015 01:09
-
-
Save ryandotclair/8c9616bac6094e0bf9bc to your computer and use it in GitHub Desktop.
Block 2 of code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Grab Total MB Sent for a given SG | |
for item in result: | |
srdfa_total += item['SRDFA_MBSent'] | |
print("Writing to file: {0}, {1}, {2}, {3}".format( | |
timestamp, symmetrix_id, storage_group_id, srdfa_total)) | |
with open('SRDFA_Reporter.csv', 'a') as csvfile: | |
writer = csv.writer(csvfile, delimiter=',', | |
quotechar=',', quoting=csv.QUOTE_MINIMAL) | |
writer.writerow([timestamp, symmetrix_id, | |
storage_group_id, str(srdfa_total)]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment