-
-
Save xNok/1d33a574da02439e441530fd32039b42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func write_event_with_blocking_write(client influxdb2.Client) { | |
// Get blocking write client | |
writeAPI := client.WriteAPIBlocking(org, bucket) | |
// write line protocol | |
writeAPI.WriteRecord(context.Background(), fmt.Sprintf("stat,unit=temperature1 avg=%f,max=%f", 23.5, 45.0)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment