-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Hi,
I'm improving your library adding support for gzipped (compressed / batch) write on KairosDB. I've modified the write_metrics_list
to:
def write_metrics_list(conn, metric_list, _gzip=False):
Then I write the following code inside test_writer.py
:
# Test batch write (compressed)
data = [
{
"name": "test1",
"timestamp": 1349109376,
"value": 20,
"tags":{"host":"test"}
},
{
"name": "test2",
"timestamp": 1349109374,
"value": 23,
"tags":{"host":"test"}
}
]
r = c.write_metrics_list(c, data, True)
I run python setup.py build
and python setup.py install
and later python pyKairosDB/tests/test_writer.py
. But when I try to test that I got a issue:
[paladini@starstuff tests]$ python test_writer.py
Traceback (most recent call last):
File "test_writer.py", line 26, in <module>
r = c.write_metrics_list(c, data, True)
AttributeError: 'KairosDBConnection' object has no attribute 'write_metrics_list'
Can you help me with that? After that, I can make a pull request :)
Metadata
Metadata
Assignees
Labels
No labels