查询 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."
}
}RUM 问题跟踪
查询 Issue 列表
返回符合过滤条件的 RUM 异常追踪 Issue 分页列表。
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_time和end_time为毫秒时间戳,最大范围 183 天。statuses按状态过滤,可选值:for_review、reviewed、ignored、resolved。orderby支持:created_at、updated_at、session_count、error_count。- 使用
dql或sql进行高级过滤,两者不可同时使用。
授权
在 Flashduty 控制台 账户 → APP Key 中签发的 app_key。调用任何公开 API 时都必须携带。它等同于所属账户的身份凭证,请妥善保管。
请求体
application/json
查询 Issue 列表的过滤参数。
时间范围起始,毫秒时间戳。
时间范围结束,毫秒时间戳,最大范围 183 天。
按应用 ID 过滤。
DQL 高级过滤查询,不能与 sql 同时使用。
SQL 式高级过滤查询,不能与 dql 同时使用。
按状态过滤。
可用选项:
for_review, reviewed, ignored, resolved 按疑似原因过滤。
按团队 ID 过滤。
页码,默认 1。
每页条数,范围 1–100,默认 20。
可用选项:
created_at, updated_at, session_count, error_count 为 true 时仅返回有关联错误事件的 Issue。
此页面对您有帮助吗?
⌘I