def post(self, app_id):
    encoded_data = self.request.body
    data = json.loads(encoded_data)

    the_time = int(data['timestamp'])
    reversed_time = (2**34 - the_time) * 1000000
    request_info = RequestInfo(
      id = app_id + str(reversed_time), # puts entities time descending.
      app_id = app_id,
      timestamp = datetime.datetime.fromtimestamp(data['timestamp']),
      num_of_requests = data['request_rate'])
    request_info.put()
Test Class SocketUdpNb
dataset/ETHPy150Open AppScale/appscale/AppDashboard/dashboard.py/AppsAsJSONPage.post--crossover with--dataset/ETHPy150Open ioflo/ioflo/ioflo/aio/udp/test/test_udping.py/BasicTestCase.testSocketUdpNb