From 85ded8f81695143bf2f1fe83da10531f44e9b6be Mon Sep 17 00:00:00 2001 From: WANG MINGMING Date: Thu, 29 Sep 2022 12:00:03 +0800 Subject: [PATCH] Update 35-schemaless-opentsdb-json.md --- docs/en/07-data-in/35-schemaless-opentsdb-json.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/en/07-data-in/35-schemaless-opentsdb-json.md b/docs/en/07-data-in/35-schemaless-opentsdb-json.md index a66a375659..00d61eac81 100644 --- a/docs/en/07-data-in/35-schemaless-opentsdb-json.md +++ b/docs/en/07-data-in/35-schemaless-opentsdb-json.md @@ -50,3 +50,8 @@ You can use any client that supports the http protocol to access the RESTful int ```text /opentsdb/v1/put/json/?token= ``` +### Insert Example +- curl --request POST http://127.0.0.1:6041/opentsdb/v1/put/json/test --user "root:taosdata" --data-binary "{\"metric\":\"meter_current\",\"timestamp\":1646846400,\"value\":10.3,\"tags\":{\"groupid\":2,\"location\":\"Beijing\",\"id\":\"d1001\"}}" + +### Query Example with SQL +- select * from meter_current where groupid=2 and location="Beijing" and id="d1001" -- GitLab