boto - Can I get value of actual write capacity of DynamoDB or DynamoDB2 table -



boto - Can I get value of actual write capacity of DynamoDB or DynamoDB2 table -

suppose access existing dynamodb

import boto conn = boto.connect_dynamodb(...) table = conn.get_table(tablename)

or dynamodb2

import boto boto.dynamodb2.layer1 import dynamodbconnection boto.dynamodb2.table import table conn = dynamodbconnection(...) table = table(tablename, connection=conn)

table. want know how much info written right before accessed it. don't want provisioned write throughput value actual throughput. how can info?

something should work:

import boto.ec2.cloudwatch import datetime end = datetime.datetime.utcnow() start = end - datetime.timedelta(minutes=5) c = boto.ec2.cloudwatch.connect_to_region('us-east-1') info = c.get_metric_statistics(period=60, start_time=start, end_time=end, metric_name='consumedwritecapacityunits', namespace='aws/dynamodb', statistics=['sum'],dimensions={'tablename': 'mytable'})

this should list of info points. should average of sums in list , split number 300, period.

amazon-dynamodb boto throughput

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -