导出 Issue 列表
curl --request POST \
--url 'https://api.flashcat.cloud/rum/issue/export?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"application_ids": [
"eWbr4xk3ZRnLabRa6unqwD"
],
"console_origin": "https://console.flashcat.cloud",
"end_time": 1775961914595,
"export_fields": [
"issue_id",
"error_type",
"error_message",
"status",
"error_count",
"session_count",
"last_seen_at"
],
"orderby": "updated_at",
"start_time": 1772611200000,
"statuses": [
"for_review"
],
"time_zone": "Asia/Shanghai"
}
'import requests
url = "https://api.flashcat.cloud/rum/issue/export?app_key="
payload = {
"application_ids": ["eWbr4xk3ZRnLabRa6unqwD"],
"console_origin": "https://console.flashcat.cloud",
"end_time": 1775961914595,
"export_fields": ["issue_id", "error_type", "error_message", "status", "error_count", "session_count", "last_seen_at"],
"orderby": "updated_at",
"start_time": 1772611200000,
"statuses": ["for_review"],
"time_zone": "Asia/Shanghai"
}
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({
application_ids: ['eWbr4xk3ZRnLabRa6unqwD'],
console_origin: 'https://console.flashcat.cloud',
end_time: 1775961914595,
export_fields: [
'issue_id',
'error_type',
'error_message',
'status',
'error_count',
'session_count',
'last_seen_at'
],
orderby: 'updated_at',
start_time: 1772611200000,
statuses: ['for_review'],
time_zone: 'Asia/Shanghai'
})
};
fetch('https://api.flashcat.cloud/rum/issue/export?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/export?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([
'application_ids' => [
'eWbr4xk3ZRnLabRa6unqwD'
],
'console_origin' => 'https://console.flashcat.cloud',
'end_time' => 1775961914595,
'export_fields' => [
'issue_id',
'error_type',
'error_message',
'status',
'error_count',
'session_count',
'last_seen_at'
],
'orderby' => 'updated_at',
'start_time' => 1772611200000,
'statuses' => [
'for_review'
],
'time_zone' => 'Asia/Shanghai'
]),
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/export?app_key="
payload := strings.NewReader("{\n \"application_ids\": [\n \"eWbr4xk3ZRnLabRa6unqwD\"\n ],\n \"console_origin\": \"https://console.flashcat.cloud\",\n \"end_time\": 1775961914595,\n \"export_fields\": [\n \"issue_id\",\n \"error_type\",\n \"error_message\",\n \"status\",\n \"error_count\",\n \"session_count\",\n \"last_seen_at\"\n ],\n \"orderby\": \"updated_at\",\n \"start_time\": 1772611200000,\n \"statuses\": [\n \"for_review\"\n ],\n \"time_zone\": \"Asia/Shanghai\"\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/export?app_key=")
.header("Content-Type", "application/json")
.body("{\n \"application_ids\": [\n \"eWbr4xk3ZRnLabRa6unqwD\"\n ],\n \"console_origin\": \"https://console.flashcat.cloud\",\n \"end_time\": 1775961914595,\n \"export_fields\": [\n \"issue_id\",\n \"error_type\",\n \"error_message\",\n \"status\",\n \"error_count\",\n \"session_count\",\n \"last_seen_at\"\n ],\n \"orderby\": \"updated_at\",\n \"start_time\": 1772611200000,\n \"statuses\": [\n \"for_review\"\n ],\n \"time_zone\": \"Asia/Shanghai\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashcat.cloud/rum/issue/export?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 \"application_ids\": [\n \"eWbr4xk3ZRnLabRa6unqwD\"\n ],\n \"console_origin\": \"https://console.flashcat.cloud\",\n \"end_time\": 1775961914595,\n \"export_fields\": [\n \"issue_id\",\n \"error_type\",\n \"error_message\",\n \"status\",\n \"error_count\",\n \"session_count\",\n \"last_seen_at\"\n ],\n \"orderby\": \"updated_at\",\n \"start_time\": 1772611200000,\n \"statuses\": [\n \"for_review\"\n ],\n \"time_zone\": \"Asia/Shanghai\"\n}"
response = http.request(request)
puts response.read_bodyIssue ID,Error type,Error message,Status,Error count,Affected sessions,Last seen (Asia/Shanghai)
NHEacQHi2DhXqobr9qPQz9,Error,Script error.,for_review,752,381,2026-04-12 10:43:59
H8kZSmxiE7EgdyD4fCyyNa,Error,"API ERROR: We encountered an internal error | POST /api/access/logout",for_review,3,1,2026-04-03 12:41:24{
"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": "AccessDenied",
"message": "Access Denied."
},
"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."
},
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4"
}RUM 问题跟踪
导出 Issue 列表
按 POST /rum/issue/list 的过滤条件导出 Issue,生成最多 100 行的 CSV 文件。
POST
/
rum
/
issue
/
export
导出 Issue 列表
curl --request POST \
--url 'https://api.flashcat.cloud/rum/issue/export?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"application_ids": [
"eWbr4xk3ZRnLabRa6unqwD"
],
"console_origin": "https://console.flashcat.cloud",
"end_time": 1775961914595,
"export_fields": [
"issue_id",
"error_type",
"error_message",
"status",
"error_count",
"session_count",
"last_seen_at"
],
"orderby": "updated_at",
"start_time": 1772611200000,
"statuses": [
"for_review"
],
"time_zone": "Asia/Shanghai"
}
'import requests
url = "https://api.flashcat.cloud/rum/issue/export?app_key="
payload = {
"application_ids": ["eWbr4xk3ZRnLabRa6unqwD"],
"console_origin": "https://console.flashcat.cloud",
"end_time": 1775961914595,
"export_fields": ["issue_id", "error_type", "error_message", "status", "error_count", "session_count", "last_seen_at"],
"orderby": "updated_at",
"start_time": 1772611200000,
"statuses": ["for_review"],
"time_zone": "Asia/Shanghai"
}
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({
application_ids: ['eWbr4xk3ZRnLabRa6unqwD'],
console_origin: 'https://console.flashcat.cloud',
end_time: 1775961914595,
export_fields: [
'issue_id',
'error_type',
'error_message',
'status',
'error_count',
'session_count',
'last_seen_at'
],
orderby: 'updated_at',
start_time: 1772611200000,
statuses: ['for_review'],
time_zone: 'Asia/Shanghai'
})
};
fetch('https://api.flashcat.cloud/rum/issue/export?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/export?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([
'application_ids' => [
'eWbr4xk3ZRnLabRa6unqwD'
],
'console_origin' => 'https://console.flashcat.cloud',
'end_time' => 1775961914595,
'export_fields' => [
'issue_id',
'error_type',
'error_message',
'status',
'error_count',
'session_count',
'last_seen_at'
],
'orderby' => 'updated_at',
'start_time' => 1772611200000,
'statuses' => [
'for_review'
],
'time_zone' => 'Asia/Shanghai'
]),
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/export?app_key="
payload := strings.NewReader("{\n \"application_ids\": [\n \"eWbr4xk3ZRnLabRa6unqwD\"\n ],\n \"console_origin\": \"https://console.flashcat.cloud\",\n \"end_time\": 1775961914595,\n \"export_fields\": [\n \"issue_id\",\n \"error_type\",\n \"error_message\",\n \"status\",\n \"error_count\",\n \"session_count\",\n \"last_seen_at\"\n ],\n \"orderby\": \"updated_at\",\n \"start_time\": 1772611200000,\n \"statuses\": [\n \"for_review\"\n ],\n \"time_zone\": \"Asia/Shanghai\"\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/export?app_key=")
.header("Content-Type", "application/json")
.body("{\n \"application_ids\": [\n \"eWbr4xk3ZRnLabRa6unqwD\"\n ],\n \"console_origin\": \"https://console.flashcat.cloud\",\n \"end_time\": 1775961914595,\n \"export_fields\": [\n \"issue_id\",\n \"error_type\",\n \"error_message\",\n \"status\",\n \"error_count\",\n \"session_count\",\n \"last_seen_at\"\n ],\n \"orderby\": \"updated_at\",\n \"start_time\": 1772611200000,\n \"statuses\": [\n \"for_review\"\n ],\n \"time_zone\": \"Asia/Shanghai\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashcat.cloud/rum/issue/export?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 \"application_ids\": [\n \"eWbr4xk3ZRnLabRa6unqwD\"\n ],\n \"console_origin\": \"https://console.flashcat.cloud\",\n \"end_time\": 1775961914595,\n \"export_fields\": [\n \"issue_id\",\n \"error_type\",\n \"error_message\",\n \"status\",\n \"error_count\",\n \"session_count\",\n \"last_seen_at\"\n ],\n \"orderby\": \"updated_at\",\n \"start_time\": 1772611200000,\n \"statuses\": [\n \"for_review\"\n ],\n \"time_zone\": \"Asia/Shanghai\"\n}"
response = http.request(request)
puts response.read_bodyIssue ID,Error type,Error message,Status,Error count,Affected sessions,Last seen (Asia/Shanghai)
NHEacQHi2DhXqobr9qPQz9,Error,Script error.,for_review,752,381,2026-04-12 10:43:59
H8kZSmxiE7EgdyD4fCyyNa,Error,"API ERROR: We encountered an internal error | POST /api/access/logout",for_review,3,1,2026-04-03 12:41:24{
"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": "AccessDenied",
"message": "Access Denied."
},
"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."
},
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4"
}限制说明
| 项目 | 说明 |
|---|---|
| 速率限制 | 每个账户 200 次/天;100 次/分钟;10 次/秒 |
| 权限要求 | 无 —— 持有有效的 app_key 即可调用 |
使用说明
- 成功时响应体是
text/csv附件,文件名为rum-issues-<yyyyMMdd-HHmmss>.csv(按time_zone取时间),不使用 JSON 信封;参数校验失败等错误仍返回 JSON 错误信封。 X-Export-Total为匹配的 Issue 总数;匹配数超过 100 时X-Export-Truncated为true,文件只包含按orderby排序后的前 100 条。p和limit会被忽略。- 过滤条件与
POST /rum/issue/list完全一致,同样会排除调用方无权访问的私有应用。 export_fields按输出顺序列出列;未知键会被拒绝,重复键会被去掉,传空数组或不传时导出除sample_first_*外的全部列。sample_*列取该 Issue 在[start_time, end_time]内最近的一条错误事件,sample_first_*列取最早的一条;时间窗内没有事件时这些列为空。- 表头默认英文,请求语言为中文时(
Accept-Language请求头,或locale/lang查询参数)输出中文表头。时间列按time_zone渲染为yyyy-MM-dd HH:mm:ss,表头附带时区,时间未设置时为空。 - 以
=、+、-、@、制表符或回车开头的单元格会加上前缀',防止表格软件把它当作公式执行。 - 每次调用都会记录到账户审计日志,包含调用者成员 ID、请求负载与最终错误(如有)。请勿在请求字段中放置敏感信息。
授权
请求体
application/json
导出 RUM 异常追踪 Issue 的过滤参数。
要导出的 CSV 列,按出现顺序排列。未知键会被参数校验拒绝,重复键会被去掉。传空数组或不传时导出下表中除 sample_first_* 外的全部列。
| 值 | 列内容 |
|---|---|
issue_id | Issue ID |
issue_url | Issue 详情页的控制台链接(基于 console_origin 拼接) |
application_name | 所属应用名称 |
service | 服务名 |
error_type | 错误类型 |
error_message | 错误信息 |
status | 处理状态 |
severity | 严重性 |
is_crash | 是否导致崩溃 |
error_count | 错误发生次数 |
session_count | 受影响会话数 |
first_seen_at | 首次出现时间(按 time_zone 渲染) |
first_seen_version | 首次出现时的应用版本 |
last_seen_at | 最近出现时间(按 time_zone 渲染) |
last_seen_version | 最近出现时的应用版本 |
versions | 涉及的所有版本 |
suspected_cause | 疑似根因分类 |
resolved_at | 解决时间(按 time_zone 渲染);未解决时为空 |
sample_time | 时间窗内最近一条错误事件的事件发生时间(按 time_zone 渲染) |
sample_version | 时间窗内最近一条错误事件的应用版本 |
sample_view | 时间窗内最近一条错误事件的页面名称,名称为空时为页面 URL |
sample_session_id | 时间窗内最近一条错误事件的会话 ID |
sample_device | 时间窗内最近一条错误事件的设备品牌与型号 |
sample_os | 时间窗内最近一条错误事件的操作系统名称与版本 |
sample_browser | 时间窗内最近一条错误事件的浏览器名称与版本 |
sample_stack | 时间窗内最近一条错误事件的错误堆栈,最多保留前 20 行 |
sample_first_time | 时间窗内最早一条错误事件的事件发生时间(按 time_zone 渲染) |
sample_first_version | 时间窗内最早一条错误事件的应用版本 |
sample_first_view | 时间窗内最早一条错误事件的页面名称,名称为空时为页面 URL |
sample_first_session_id | 时间窗内最早一条错误事件的会话 ID |
sample_first_device | 时间窗内最早一条错误事件的设备品牌与型号 |
sample_first_os | 时间窗内最早一条错误事件的操作系统名称与版本 |
sample_first_browser | 时间窗内最早一条错误事件的浏览器名称与版本 |
sample_first_stack | 时间窗内最早一条错误事件的错误堆栈,最多保留前 20 行 |
可用选项:
issue_id, issue_url, application_name, service, error_type, error_message, status, severity, is_crash, error_count, session_count, first_seen_at, first_seen_version, last_seen_at, last_seen_version, versions, suspected_cause, resolved_at, sample_time, sample_version, sample_view, sample_session_id, sample_device, sample_os, sample_browser, sample_stack, sample_first_time, sample_first_version, sample_first_view, sample_first_session_id, sample_first_device, sample_first_os, sample_first_browser, sample_first_stack 按疑似根因分类过滤。
| 值 | 含义 |
|---|---|
api.failed_request | API/接口请求失败(如 HTTP 4xx/5xx 响应) |
network.error | 网络连接错误(断网、请求中断等) |
code.exception | 代码异常(Syntax/Reference/Range 等运行时异常) |
code.invalid_object_access | 非法对象访问(如对 undefined/null 读取属性) |
code.invalid_argument | 非法参数(向函数传入了无效参数) |
unknown | 无法判定的未知原因 |
可用选项:
api.failed_request, network.error, code.exception, code.invalid_object_access, code.invalid_argument, unknown 响应
成功。CSV 附件,非 JSON 信封。
CSV 文件内容。表头行按导出列的先后顺序排列;单元格取值已做电子表格公式注入防护。
此页面对您有帮助吗?