def send_query_with_response_code(self, response_code): """ Send a HTTP query using SenderThread, with server that returns given response code. """ self.run_fake_opentsdb(response_code) reader = tcollector.ReaderThread(1, 10, True) sender = tcollector.SenderThread(reader, False, [("localhost", 4242)], False, {}, http=True, http_api_path="api/put") sender.sendq.append("mymetric 123 12 a=b") sender.send_data() return sender
def mkSenderThread(self, tsds): return tcollector.SenderThread(None, True, tsds, False, {})
def mkSenderThread(self, tsds): return tcollector.SenderThread(None, True, tsds, False, {}, reconnectinterval=5)
def mkSenderThread(self, tsds): return tcollector.SenderThread(None, True, tsds, False, {}, reconnectinterval=5) # pylint: disable=maybe-no-member