Skip to content

Commit

Permalink
Rename Filter to Tag
Browse files Browse the repository at this point in the history
  • Loading branch information
juan cañete committed Jul 2, 2017
1 parent 52de289 commit 34ab689
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/komlogd/api/protocol/model/types.py
Expand Up @@ -79,13 +79,13 @@ def __deepcopy__(self, memo):
uri = self.uri.split('._anomaly')[0]
return type(self)(Metric(deepcopy(uri, memo)))

class Filter(Datapoint):
class Tag(Datapoint):

def __init__(self, metric, key, value):
super().__init__(uri='.'.join((metric.uri,'_filters',key,value)))
super().__init__(uri='.'.join((metric.uri,'_tags',key,value)))

def __deepcopy__(self, memo):
uri,rest = self.uri.split('._filters.')[0:2]
uri,rest = self.uri.split('._tags.')[0:2]
key,value = rest.split('.')[0:2]
return type(self)(metric=Metric(deepcopy(uri, memo)),key=key, value=value)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -2,7 +2,7 @@
import unittest
from setuptools import setup, find_packages

version = '0.7.0'
version = '0.7.1'
if not sys.version_info[0] == 3 and not sys.version_info[1] >= 5:
sys.exit("Sorry, Python 3.5 or greater required.")

Expand Down

0 comments on commit 34ab689

Please sign in to comment.