跳转到主要内容
POST
/
rum
/
data
/
query
数据查询
curl --request POST \
  --url 'https://api.flashcat.cloud/rum/data/query?app_key=' \
  --header 'Content-Type: application/json' \
  --data @- <<EOF
"{\n    \"start_time\": 1742440860,\n    \"end_time\": 1743088862,\n    \"queries\": [\n        {\n            \"id\": \"errorCountGraph\",\n            \"sql\": \"select count(*) as `cnt` from `errors` where `issue_id` = \\'M9qGLr7g9RAGbiHqPEDMCY\\' and `application_id` = \\'eWbr4xk3ZRnLabRa6unqwD\\' limit 200\",\n            \"format\": \"time_series\",\n            \"interval\": 86400,\n            \"max_points\": 1226\n        }\n    ]\n}\n\n"
EOF
{
  "error": {
    "code": "<string>",
    "message": "<string>"
  },
  "data": {}
}

授权

app_key
string
query
必填

请求头

Content-Type
string

请求体

application/json
queries
object[]
必填

并行请求列表

start_time
integer
必填

开始时间戳,单位毫秒

end_time
integer
必填

结束时间戳,单位毫秒

响应

200 - application/json
error
object

错误信息,仅当错误时返回

data
object

数据响应,仅当正常时返回,每个请求id作为索引,对应内容为此请求的响应,一个请求失败不影响其他请求的执行。