Пример #1
0
 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
Пример #2
0
 def mkSenderThread(self, tsds):
     return tcollector.SenderThread(None, True, tsds, False, {})
Пример #3
0
 def mkSenderThread(self, tsds):
     return tcollector.SenderThread(None,
                                    True,
                                    tsds,
                                    False, {},
                                    reconnectinterval=5)
Пример #4
0
 def mkSenderThread(self, tsds):
     return tcollector.SenderThread(None,
                                    True,
                                    tsds,
                                    False, {},
                                    reconnectinterval=5)  # pylint: disable=maybe-no-member