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

Update 38-schemaless-opentsdb-telnet.md

上级 b5a16c36
......@@ -52,7 +52,13 @@ You can use any client that supports the http protocol to access the RESTful int
```
### Insert Example
- curl --request POST http://127.0.0.1:6041/opentsdb/v1/put/telnet/test --user "root:taosdata" --data-binary "sys.if.bytes.out 1479496100 1.3E0 host=web01 interface=eth0"
### Query Example with SQL
- select * from `sys.if.bytes.out` where host="web01" and interface="eth0"
```bash
curl --request POST "$TDENGINE_CLOUD_URL/opentsdb/v1/put/telnet/<db_name>?token=$TDENGINE_CLOUD_TOKEN" --data-binary "sys 1479496100 1.3E0 host=web01 interface=eth0"
```
## Query Example with SQL
`sys` is the super table name.
you can filter data by tag, like:`where host="web01"`.
```bash
curl -L -d "select * from <db_name>.sys where host=\"web01\"" $TDENGINE_CLOUD_URL/rest/sql/test?token=$TDENGINE_CLOUD_TOKEN
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册