未验证 提交 85ded8f8 编写于 作者: wmmhello's avatar wmmhello 提交者: GitHub

Update 35-schemaless-opentsdb-json.md

上级 848fd557
...@@ -50,3 +50,8 @@ You can use any client that supports the http protocol to access the RESTful int ...@@ -50,3 +50,8 @@ You can use any client that supports the http protocol to access the RESTful int
```text ```text
/opentsdb/v1/put/json/<db>?token=<cloud_token> /opentsdb/v1/put/json/<db>?token=<cloud_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"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册