| 参数名称 | 类型 | 示例值 | 必须 | 描述 |
|---|---|---|---|---|
| content-type | String | application/x-www-form-urlencoded | 否 |
| 参数名称 | 类型 | 示例值 | 必须 | 描述 |
|---|---|---|---|---|
| fields | String | * | 否 | 需要返回的字段,意义和sql语句一样 |
| table | String | mytest2 | 是 | 从哪张表查询,在influxdb中表概念对应measurement |
| where | String | "code"=? and "name"=? | 否 | 例如"code"=? and "name"=? |
| where_param | String | ["12345","aaaaa"] | 否 | 例如["12345","aaaaa"] |
| order_by_time | String | desc | 否 | 根据时间排序,枚举值 desc 或 asc |
| limit | Number | 20 | 否 | 返回多少条记录。最高100条。 |
| offset | Number | 0 | 否 | 偏移量,可用于分页查询。 |
| epoch | String | - | 否 | 返回的时间格式,可选值为 空串,ns,u,µ,ms,s,m,h。如果空串则返回rfc3339_date_time_string格式(例:2020-04-20T13:52:12.79223644Z) |
| database | String | mydatabase | 是 | 使用本数据源中的哪一个库。如果传入本参数,将优先使用本库(而不是数据源中设定的库)。 |
| ds_id | String | - | 是 | 数据源 |
showapi_res_body 系统封装,业务数据均位于该对象内;系统级字段见。