Version bump for influx based backend

This commit is contained in:
dave 2018-10-03 22:32:51 -07:00
parent fcd36d8b40
commit 50d6a0a6ad
2 changed files with 3 additions and 13 deletions

View File

@ -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()):

View File

@ -1,4 +1,4 @@
certifi==2018.8.13
certifi==2018.8.24
chardet==3.0.4
elasticsearch==6.3.1
idna==2.7