Allow specifying a timestamp when creating a sample

Change-Id: Ic2947725edb5bf50ba9bfff14d4c0713e9aed3aa
This commit is contained in:
Nejc Saje
2013-11-21 18:05:51 +00:00
parent 8bf894f9d9
commit e27ba76758

View File

@@ -101,6 +101,8 @@ def do_sample_list(cc, args):
help='The sample volume')
@utils.arg('--resource-metadata', metavar='<RESOURCE_METADATA>',
help='resource metadata')
@utils.arg('--timestamp', metavar='<TIMESTAMP>',
help='the sample timestamp')
def do_sample_create(cc, args={}):
'''Create a sample.'''
arg_to_field_mapping = {'meter_name': 'counter_name',