From 50d6a0a6ada2c2f5c7053be56c8bae1e0eb02734 Mon Sep 17 00:00:00 2001 From: dave Date: Wed, 3 Oct 2018 22:32:51 -0700 Subject: [PATCH] Version bump for influx based backend --- pymonitor/__init__.py | 14 ++------------ requirements.txt | 2 +- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/pymonitor/__init__.py b/pymonitor/__init__.py index 1cd4a30..18e801d 100644 --- a/pymonitor/__init__.py +++ b/pymonitor/__init__.py @@ -1,8 +1,9 @@ -__version__ = "0.3.0" +__version__ = "0.4.0" from itertools import chain import logging from pymonitor.builtins import sysinfo + class Backend(object): """ Base class for data storage backends @@ -27,7 +28,6 @@ class Backend(object): """ raise NotImplementedError() - def add_data(self, metric): """ Accept a Metric() object and send it off to the backend @@ -47,16 +47,6 @@ class Metric(object): self.values = values self.tags = tags or {} - # def as_dict(self): - # """ - # Represent the metric as a basic dictionary. Tags are added - # """ - # # TODO return the classic elasticsearch format - - # import pdb - # pdb.set_trace() - # pass - def __repr__(self): fields = [] for k, v in chain(self.values.items(), self.tags.items()): diff --git a/requirements.txt b/requirements.txt index 5915802..6d358e5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -certifi==2018.8.13 +certifi==2018.8.24 chardet==3.0.4 elasticsearch==6.3.1 idna==2.7