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

Update 35-schemaless-opentsdb-json.md

上级 dc73cec4
......@@ -55,8 +55,8 @@ You can use any client that supports the http protocol to access the RESTful int
curl --request POST "$TDENGINE_CLOUD_URL/opentsdb/v1/put/json/<db_name>?token=$TDENGINE_CLOUD_TOKEN" --data-binary "{\"metric\":\"meter_current\",\"timestamp\":1646846400,\"value\":10.3,\"tags\":{\"groupid\":2,\"location\":\"Beijing\",\"id\":\"d1001\"}}"
```
## Query Example with SQL
`meter_current` is the super table name.
you can filter data by tag, like:`where groupid=2`.
- `meter_current` is the super table name.
- you can filter data by tag, like:`where groupid=2`.
```bash
curl -L -d "select * from <db_name>.meter_current where groupid=2" $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.
先完成此消息的编辑!
想要评论请 注册