Skip to content

Instantly share code, notes, and snippets.

View pushpendra-tripathi's full-sized avatar
🎯
Focussing

Pushpendra Tripathi pushpendra-tripathi

🎯
Focussing
View GitHub Profile
@pushpendra-tripathi
pushpendra-tripathi / .py
Created November 1, 2021 11:44
string_or_bytes_that_is_formatted_as_a_Influxdb_line_protocol
"""
Write Line Protocol formatted as string
"""
_write_client.write("my-bucket", "my-org", "h2o_feet,location=coyote_creek water_level=1.0 1")
_write_client.write("my-bucket", "my-org", ["h2o_feet,location=coyote_creek water_level=2.0 2",
"h2o_feet,location=coyote_creek water_level=3.0 3"])
"""
Write Line Protocol formatted as byte array
"""