Skip to content

Commit ead7d23

Browse files
author
Kurt Spindler
committed
improve docs for 0.8
1 parent ab2e66c commit ead7d23

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

influxdb/influxdb08/client.py

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,23 @@ def write(self, data):
273273

274274
def write_points(self, data, time_precision='s', *args, **kwargs):
275275
"""
276-
Write to multiple time series names.
277-
278-
:param data: A list of dicts.
276+
Write to multiple time series names. An example data blob is:
277+
278+
data = [
279+
{
280+
"points": [
281+
[
282+
12
283+
]
284+
],
285+
"name": "cpu_load_short",
286+
"columns": [
287+
"value"
288+
]
289+
}
290+
]
291+
292+
:param data: A list of dicts in InfluxDB 0.8.x data format.
279293
:param time_precision: [Optional, default 's'] Either 's', 'm', 'ms'
280294
or 'u'.
281295
:param batch_size: [Optional] Value to write the points in batches

0 commit comments

Comments
 (0)