From ead7d2343a623f9cfd2b2151a4180a0836b2fcae Mon Sep 17 00:00:00 2001 From: Kurt Spindler Date: Mon, 4 May 2015 22:19:24 -0700 Subject: [PATCH 1/2] improve docs for 0.8 --- influxdb/influxdb08/client.py | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/influxdb/influxdb08/client.py b/influxdb/influxdb08/client.py index a9acf624..5eb0e03f 100644 --- a/influxdb/influxdb08/client.py +++ b/influxdb/influxdb08/client.py @@ -273,9 +273,23 @@ def write(self, data): def write_points(self, data, time_precision='s', *args, **kwargs): """ - Write to multiple time series names. - - :param data: A list of dicts. + Write to multiple time series names. An example data blob is: + + data = [ + { + "points": [ + [ + 12 + ] + ], + "name": "cpu_load_short", + "columns": [ + "value" + ] + } + ] + + :param data: A list of dicts in InfluxDB 0.8.x data format. :param time_precision: [Optional, default 's'] Either 's', 'm', 'ms' or 'u'. :param batch_size: [Optional] Value to write the points in batches From 85f5efd90f4ad485ffbaf0b1db37c1a5d9fc7d5a Mon Sep 17 00:00:00 2001 From: Kurt Spindler Date: Sun, 24 May 2015 20:52:55 -0700 Subject: [PATCH 2/2] fix flake8 --- influxdb/influxdb08/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/influxdb/influxdb08/client.py b/influxdb/influxdb08/client.py index 5eb0e03f..115fa5dd 100644 --- a/influxdb/influxdb08/client.py +++ b/influxdb/influxdb08/client.py @@ -281,8 +281,8 @@ def write_points(self, data, time_precision='s', *args, **kwargs): [ 12 ] - ], - "name": "cpu_load_short", + ], + "name": "cpu_load_short", "columns": [ "value" ] pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy