8000 Merge pull request #180 from kespindler/ks-08-docs · krishnazure/influxdb-python@1414f12 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1414f12

Browse files
committed
Merge pull request influxdata#180 from kespindler/ks-08-docs
improve docs for 0.8
2 parents dee737d + 85f5efd commit 1414f12

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
@@ -272,9 +272,23 @@ def write(self, data):
272272

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

0 commit comments

Comments
 (0)
0