We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 914dd59 commit ae71b29Copy full SHA for ae71b29
examples/buckets_management.py
@@ -4,4 +4,21 @@
4
with InfluxDBClient(url='http://localhost:8086', token='my-token', org='my-org') as client:
5
write_api = client.write_api(write_options=SYNCHRONOUS)
6
7
- write_api.write(bucket='my-bucket', record='h2o_feet,location=coyote_creek water_level=1.0 1')
+ record = [
8
+ {
9
+ "measurement": "cpu_load_short",
10
+ "tags": {
11
+ "host": "server01",
12
+ "region": "us-west"
13
+ },
14
+ "time": "2009-11-10T23:00:00Z",
15
+ "fields": {
16
+ "Float_value": 0.64,
17
+ "Int_value": 3,
18
+ "String_value": "Text",
19
+ "Bool_value": True
20
+ }
21
22
+ ]
23
+
24
+ write_api.write(bucket='my-bucket', record=record)
0 commit comments