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 a66a3756599ae473641707f774bc4e9678c1ecbd..00d61eac81adb6cfe654e965e7222ccb295306f9 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"