You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `WriteApi <https://github.com/influxdata/influxdb-client-python/blob/master/influxdb_client/client/write_api.py>`_ supports synchronous, asynchronous and batching writes into InfluxDB 2.0.
152
152
The data should be passed as a `InfluxDB Line Protocol <https://docs.influxdata.com/influxdb/v1.6/write_protocols/line_protocol_tutorial/>`_\ , `Data Point <https://github.com/influxdata/influxdb-client-python/blob/master/influxdb_client/client/write/point.py>`_ or Observable stream.
153
153
154
-
*The default instance of ``WriteApi`` use batching.*
154
+
*The default instance of WriteApi use batching.*
155
+
156
+
The data could be written as
157
+
""""""""""""""""""""""""""""
158
+
159
+
1. ``string`` that is formatted as a InfluxDB's line protocol
160
+
2. `Data Point <https://github.com/influxdata/influxdb-client-python/blob/master/influxdb_client/client/write/point.py#L16>`__ structure
161
+
3. Dictionary style mapping with keys: ``measurement``, ``tags``, ``fields`` and ``time``
162
+
4. List of above items
163
+
5. A ``batching`` type of write also supports an ``Observable`` that produce one of an above item
164
+
155
165
156
166
Batching
157
167
""""""""
@@ -201,6 +211,16 @@ The batching is configurable by ``write_options``\ :
0 commit comments