def _post(self, data):
    http = urllib3.PoolManager()
    resp = http.request('POST', 'http://localhost:{}/'.format(self.server_port), headers={'Content-Type': 'application/json'}, body=json.dumps(data))
    if (resp.status != 200):
        raise Exception('Monitor Requests server error: {}.'.format(resp.status))
def _post(self, data):
    http = urllib3.PoolManager()
    resp = http.request('POST', 'http://localhost:{}/'.format(self.server_port), headers={'Content-Type': 'application/json'}, body=json.dumps(data))
    if (resp.status != 200):
        raise Exception('Monitor Requests server error: {}.'.format(resp.status))