Skip to content

Commit

Permalink
grafana_annotation_support
Browse files Browse the repository at this point in the history
  • Loading branch information
goru97 committed Dec 1, 2015
1 parent 136ad85 commit d9a717b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contrib/graphite/blueflood.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,12 @@ def getEvents(self, start_time, end_time, tags):
headers = auth.headers()

r = self.make_request(url, payload, headers)
r = r.json()
print r
for event in r:
print(event['when'])
event['when'] = int(event['when']/1000)
return r.json()
return r

class TenantBluefloodReader(object):
__slots__ = ('metric', 'tenant', 'bf_query_endpoint',
Expand Down

0 comments on commit d9a717b

Please sign in to comment.