class HttpReporter(Reporter): def __init__(self, api_key=None, api_host=None): self.dog = DogHttpApi(api_key=api_key, api_host=api_host) def flush(self, metrics): self.dog.metrics(metrics)
def dog(self): if not self._dog: self._dog = DogHttpApi(self.config['apikey'], self.config['appkey'], swallow=True, json_responses=True) return self._dog
def __init__(self, api_key=None, api_host=None): self.dog = DogHttpApi(api_key=api_key, api_host=api_host)