跳转到主要内容
POST
/
rum
/
issue
/
list
查询 Issue 列表
curl --request POST \
  --url 'https://api.flashcat.cloud/rum/issue/list?app_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "start_time": 1772611200000,
  "end_time": 1775961914595,
  "application_ids": [
    "eWbr4xk3ZRnLabRa6unqwD"
  ],
  "statuses": [
    "for_review"
  ],
  "p": 1,
  "limit": 20,
  "orderby": "updated_at"
}
'
import requests

url = "https://api.flashcat.cloud/rum/issue/list?app_key="

payload = {
"start_time": 1772611200000,
"end_time": 1775961914595,
"application_ids": ["eWbr4xk3ZRnLabRa6unqwD"],
"statuses": ["for_review"],
"p": 1,
"limit": 20,
"orderby": "updated_at"
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
start_time: 1772611200000,
end_time: 1775961914595,
application_ids: ['eWbr4xk3ZRnLabRa6unqwD'],
statuses: ['for_review'],
p: 1,
limit: 20,
orderby: 'updated_at'
})
};

fetch('https://api.flashcat.cloud/rum/issue/list?app_key=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.flashcat.cloud/rum/issue/list?app_key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'start_time' => 1772611200000,
'end_time' => 1775961914595,
'application_ids' => [
'eWbr4xk3ZRnLabRa6unqwD'
],
'statuses' => [
'for_review'
],
'p' => 1,
'limit' => 20,
'orderby' => 'updated_at'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.flashcat.cloud/rum/issue/list?app_key="

payload := strings.NewReader("{\n \"start_time\": 1772611200000,\n \"end_time\": 1775961914595,\n \"application_ids\": [\n \"eWbr4xk3ZRnLabRa6unqwD\"\n ],\n \"statuses\": [\n \"for_review\"\n ],\n \"p\": 1,\n \"limit\": 20,\n \"orderby\": \"updated_at\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.flashcat.cloud/rum/issue/list?app_key=")
.header("Content-Type", "application/json")
.body("{\n \"start_time\": 1772611200000,\n \"end_time\": 1775961914595,\n \"application_ids\": [\n \"eWbr4xk3ZRnLabRa6unqwD\"\n ],\n \"statuses\": [\n \"for_review\"\n ],\n \"p\": 1,\n \"limit\": 20,\n \"orderby\": \"updated_at\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.flashcat.cloud/rum/issue/list?app_key=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"start_time\": 1772611200000,\n \"end_time\": 1775961914595,\n \"application_ids\": [\n \"eWbr4xk3ZRnLabRa6unqwD\"\n ],\n \"statuses\": [\n \"for_review\"\n ],\n \"p\": 1,\n \"limit\": 20,\n \"orderby\": \"updated_at\"\n}"

response = http.request(request)
puts response.read_body
{
  "request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
  "data": {
    "items": [
      {
        "team_id": 2477033058131,
        "issue_id": "NHEacQHi2DhXqobr9qPQz9",
        "application_id": "eWbr4xk3ZRnLabRa6unqwD",
        "application_name": "Flashduty DEV",
        "service": "fd-console",
        "status": "for_review",
        "error_count": 752,
        "session_count": 381,
        "is_crash": false,
        "age": 5078684,
        "resolved_at": 0,
        "resolved_by": 0,
        "created_at": 1770883154944,
        "updated_at": 1775961914595,
        "first_seen": {
          "timestamp": 1770883154944,
          "version": "1.0.0"
        },
        "last_seen": {
          "timestamp": 1775961839090,
          "version": "1.0.0"
        },
        "error": {
          "message": "Script error.",
          "type": "Error"
        },
        "suspected_cause": {
          "source": "auto",
          "value": "code.exception",
          "reason": "错误信息 'Script error.' 通常表示 JavaScript 中的未处理异常。",
          "person_id": 0
        },
        "versions": [
          "1.0.0"
        ],
        "severity": "Info"
      },
      {
        "team_id": 2477033058131,
        "issue_id": "H8kZSmxiE7EgdyD4fCyyNa",
        "application_id": "eWbr4xk3ZRnLabRa6unqwD",
        "application_name": "Flashduty DEV",
        "service": "fd-console",
        "status": "for_review",
        "error_count": 3,
        "session_count": 1,
        "is_crash": false,
        "age": 48,
        "resolved_at": 0,
        "resolved_by": 0,
        "created_at": 1775189479566,
        "updated_at": 1775191284163,
        "first_seen": {
          "timestamp": 1775189479566,
          "version": "1.0.0"
        },
        "last_seen": {
          "timestamp": 1775189527762,
          "version": "1.0.0"
        },
        "error": {
          "message": "API ERROR: We encountered an internal error | POST /api/access/logout",
          "type": "Error"
        },
        "suspected_cause": {
          "source": "auto",
          "value": "api.failed_request",
          "reason": "错误信息表明 POST /api/access/logout 请求时服务端发生内部错误。",
          "person_id": 0
        },
        "versions": [
          "1.0.0"
        ],
        "severity": "Info"
      }
    ],
    "has_next_page": true,
    "total": 111
  }
}
{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InvalidParameter",
"message": "The specified parameter is not valid."
}
}
{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "Unauthorized",
"message": "You are unauthorized."
}
}
{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "RequestTooFrequently",
"message": "Request too frequently."
}
}
{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"error": {
"code": "InternalError",
"message": "We encountered an internal error, and it has been reported. Please try again later."
}
}

限制说明

项目说明
速率限制每个账户 1,000 次/分钟50 次/秒
权限要求无 —— 持有有效的 app_key 即可调用

使用说明

  • start_timeend_time 为毫秒时间戳,最大范围 183 天。
  • statuses 按状态过滤,可选值:for_reviewreviewedignoredresolved
  • orderby 支持:created_atupdated_atsession_counterror_count
  • 使用 dqlsql 进行高级过滤,两者不可同时使用。

授权

app_key
string
query
必填

在 Flashduty 控制台 账户 → APP Key 中签发的 app_key。调用任何公开 API 时都必须携带。它等同于所属账户的身份凭证,请妥善保管。

请求体

application/json

查询 Issue 列表的过滤参数。

start_time
integer<int64>
必填

时间范围起始,毫秒时间戳。

end_time
integer<int64>
必填

时间范围结束,毫秒时间戳,最大范围 183 天。

application_ids
string[]

按应用 ID 过滤。

dql
string

DQL 高级过滤查询,不能与 sql 同时使用。

sql
string

SQL 式高级过滤查询,不能与 dql 同时使用。

statuses
enum<string>[]

按状态过滤。

可用选项:
for_review,
reviewed,
ignored,
resolved
suspected_causes
string[]

按疑似原因过滤。

team_ids
integer<int64>[]

按团队 ID 过滤。

p
integer

页码,默认 1。

limit
integer

每页条数,范围 1–100,默认 20。

orderby
enum<string>
可用选项:
created_at,
updated_at,
session_count,
error_count
asc
boolean
error_required
boolean

true 时仅返回有关联错误事件的 Issue。

by_intersection
boolean

响应

成功

成功响应结构。2xx 响应中 request_id 标识本次调用(同时出现在 Flashcat-Request-Id 响应头中),data 为接口业务 payload。失败响应使用不同结构,参见 ErrorResponse

request_id
string
必填

本次请求的唯一 ID,也会在 Flashcat-Request-Id 响应头中返回。反馈问题时请一并附上。

示例:

"01HK8XQE3Z7JM2NTFQ5YJ8P9R4"

data
object
必填

每个接口自己的业务 payload,详见各接口的 200 响应 schema。