#!/usr/bin/env python

import json
import math
import os
import sys
import random

def main():
    meter = sys.argv[1]

    #with open('response-mock.json') as response:
      #res_json = json.load(response)

    #res_json[0]['counter_volume'] = random.uniform(0, 100)
    #print res_json[0]['counter_volume']

    if meter == 'cpu':
      print '39450000000.0'
    elif meter == 'cpu_util':
      print random.uniform(0, 100)
    elif meter == 'disk.ephemeral.size':
      print '0.0'
    elif meter == 'disk.root.size':
      print '10.0'
    elif meter == 'memory':
      print '2048.0'
    elif meter == 'vcpus':
      print '1.0'
    elif meter == 'network.incoming.bytes':
      print '14038.0'
    elif meter == 'network.outgoing.bytes':
      print '11990.0'
    else:
      print "Error: unknown meter!"

if __name__ == "__main__":
    main()