查询预设严重性规则历史列表
curl --request POST \
--url 'https://api.flashcat.cloud/rum/issue/preset-severity/rules/history/list?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"application_id": "WoyQQ3BohkdtPivubEvE8o",
"p": 0,
"limit": 20
}
'import requests
url = "https://api.flashcat.cloud/rum/issue/preset-severity/rules/history/list?app_key="
payload = {
"application_id": "WoyQQ3BohkdtPivubEvE8o",
"p": 0,
"limit": 20
}
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_id: 'WoyQQ3BohkdtPivubEvE8o', p: 0, limit: 20})
};
fetch('https://api.flashcat.cloud/rum/issue/preset-severity/rules/history/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/preset-severity/rules/history/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([
'application_id' => 'WoyQQ3BohkdtPivubEvE8o',
'p' => 0,
'limit' => 20
]),
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/preset-severity/rules/history/list?app_key="
payload := strings.NewReader("{\n \"application_id\": \"WoyQQ3BohkdtPivubEvE8o\",\n \"p\": 0,\n \"limit\": 20\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/preset-severity/rules/history/list?app_key=")
.header("Content-Type", "application/json")
.body("{\n \"application_id\": \"WoyQQ3BohkdtPivubEvE8o\",\n \"p\": 0,\n \"limit\": 20\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashcat.cloud/rum/issue/preset-severity/rules/history/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 \"application_id\": \"WoyQQ3BohkdtPivubEvE8o\",\n \"p\": 0,\n \"limit\": 20\n}"
response = http.request(request)
puts response.read_body{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"data": {
"total": 3,
"has_next_page": false,
"items": [
{
"rules": [
{
"account_id": 3790925372131,
"application_id": "WoyQQ3BohkdtPivubEvE8o",
"rule_id": "n8mZQ2VbXk4wPRs6DfC9Ay",
"rule_name": "已知浏览器插件噪声错误",
"description": "将已知浏览器插件错误降级为 Info",
"filters": [
[
{
"key": "error.error_message",
"oper": "IN",
"vals": [
"/^ResizeObserver loop.*|.*chrome-extension:\\/\\/.*/"
]
}
]
],
"severity": "Info",
"priority": 1,
"status": "enabled",
"created_by": 3790925372131,
"updated_by": 3790925372131,
"id": 4820,
"deleted_at": 0,
"created_at": 1785744052160,
"updated_at": 1785744052160
},
{
"account_id": 3790925372131,
"application_id": "WoyQQ3BohkdtPivubEvE8o",
"rule_id": "TAHUYnQmXKzgMS4TFVUKvz",
"rule_name": "生产环境崩溃升级",
"description": "将生产环境的崩溃错误升级为 Critical 严重级别",
"filters": [
[
{
"key": "error.env",
"oper": "IN",
"vals": [
"production"
]
},
{
"key": "error.is_crash",
"oper": "IN",
"vals": [
"true"
]
}
]
],
"severity": "Critical",
"priority": 2,
"status": "enabled",
"created_by": 3790925372131,
"updated_by": 3790925372131,
"id": 4821,
"deleted_at": 0,
"created_at": 1785830452160,
"updated_at": 1785830452160
}
],
"version": 3,
"updated_by": 2476444212131,
"updated_by_name": "Alice Chen",
"updated_at": 1785916852160
},
{
"rules": [
{
"account_id": 3790925372131,
"application_id": "WoyQQ3BohkdtPivubEvE8o",
"rule_id": "n8mZQ2VbXk4wPRs6DfC9Ay",
"rule_name": "已知浏览器插件噪声错误",
"description": "将已知浏览器插件错误降级为 Info",
"filters": [
[
{
"key": "error.error_message",
"oper": "IN",
"vals": [
"/^ResizeObserver loop.*|.*chrome-extension:\\/\\/.*/"
]
}
]
],
"severity": "Info",
"priority": 1,
"status": "enabled",
"created_by": 3790925372131,
"updated_by": 3790925372131,
"id": 4820,
"deleted_at": 0,
"created_at": 1785744052160,
"updated_at": 1785744052160
}
],
"version": 2,
"updated_by": 3790925372131,
"updated_by_name": "Bob Zhang",
"updated_at": 1785830452160
},
{
"rules": [],
"version": 1,
"updated_by": 3790925372131,
"updated_by_name": "Bob Zhang",
"updated_at": 1785744052160
}
]
}
}{
"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."
}
}Issue 预设严重性规则
查询预设严重性规则历史列表
返回指定 RUM 应用下预设严重性规则的变更历史列表。
POST
/
rum
/
issue
/
preset-severity
/
rules
/
history
/
list
查询预设严重性规则历史列表
curl --request POST \
--url 'https://api.flashcat.cloud/rum/issue/preset-severity/rules/history/list?app_key=' \
--header 'Content-Type: application/json' \
--data '
{
"application_id": "WoyQQ3BohkdtPivubEvE8o",
"p": 0,
"limit": 20
}
'import requests
url = "https://api.flashcat.cloud/rum/issue/preset-severity/rules/history/list?app_key="
payload = {
"application_id": "WoyQQ3BohkdtPivubEvE8o",
"p": 0,
"limit": 20
}
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_id: 'WoyQQ3BohkdtPivubEvE8o', p: 0, limit: 20})
};
fetch('https://api.flashcat.cloud/rum/issue/preset-severity/rules/history/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/preset-severity/rules/history/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([
'application_id' => 'WoyQQ3BohkdtPivubEvE8o',
'p' => 0,
'limit' => 20
]),
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/preset-severity/rules/history/list?app_key="
payload := strings.NewReader("{\n \"application_id\": \"WoyQQ3BohkdtPivubEvE8o\",\n \"p\": 0,\n \"limit\": 20\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/preset-severity/rules/history/list?app_key=")
.header("Content-Type", "application/json")
.body("{\n \"application_id\": \"WoyQQ3BohkdtPivubEvE8o\",\n \"p\": 0,\n \"limit\": 20\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flashcat.cloud/rum/issue/preset-severity/rules/history/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 \"application_id\": \"WoyQQ3BohkdtPivubEvE8o\",\n \"p\": 0,\n \"limit\": 20\n}"
response = http.request(request)
puts response.read_body{
"request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4",
"data": {
"total": 3,
"has_next_page": false,
"items": [
{
"rules": [
{
"account_id": 3790925372131,
"application_id": "WoyQQ3BohkdtPivubEvE8o",
"rule_id": "n8mZQ2VbXk4wPRs6DfC9Ay",
"rule_name": "已知浏览器插件噪声错误",
"description": "将已知浏览器插件错误降级为 Info",
"filters": [
[
{
"key": "error.error_message",
"oper": "IN",
"vals": [
"/^ResizeObserver loop.*|.*chrome-extension:\\/\\/.*/"
]
}
]
],
"severity": "Info",
"priority": 1,
"status": "enabled",
"created_by": 3790925372131,
"updated_by": 3790925372131,
"id": 4820,
"deleted_at": 0,
"created_at": 1785744052160,
"updated_at": 1785744052160
},
{
"account_id": 3790925372131,
"application_id": "WoyQQ3BohkdtPivubEvE8o",
"rule_id": "TAHUYnQmXKzgMS4TFVUKvz",
"rule_name": "生产环境崩溃升级",
"description": "将生产环境的崩溃错误升级为 Critical 严重级别",
"filters": [
[
{
"key": "error.env",
"oper": "IN",
"vals": [
"production"
]
},
{
"key": "error.is_crash",
"oper": "IN",
"vals": [
"true"
]
}
]
],
"severity": "Critical",
"priority": 2,
"status": "enabled",
"created_by": 3790925372131,
"updated_by": 3790925372131,
"id": 4821,
"deleted_at": 0,
"created_at": 1785830452160,
"updated_at": 1785830452160
}
],
"version": 3,
"updated_by": 2476444212131,
"updated_by_name": "Alice Chen",
"updated_at": 1785916852160
},
{
"rules": [
{
"account_id": 3790925372131,
"application_id": "WoyQQ3BohkdtPivubEvE8o",
"rule_id": "n8mZQ2VbXk4wPRs6DfC9Ay",
"rule_name": "已知浏览器插件噪声错误",
"description": "将已知浏览器插件错误降级为 Info",
"filters": [
[
{
"key": "error.error_message",
"oper": "IN",
"vals": [
"/^ResizeObserver loop.*|.*chrome-extension:\\/\\/.*/"
]
}
]
],
"severity": "Info",
"priority": 1,
"status": "enabled",
"created_by": 3790925372131,
"updated_by": 3790925372131,
"id": 4820,
"deleted_at": 0,
"created_at": 1785744052160,
"updated_at": 1785744052160
}
],
"version": 2,
"updated_by": 3790925372131,
"updated_by_name": "Bob Zhang",
"updated_at": 1785830452160
},
{
"rules": [],
"version": 1,
"updated_by": 3790925372131,
"updated_by_name": "Bob Zhang",
"updated_at": 1785744052160
}
]
}
}{
"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 即可调用 |
使用说明
- 每条记录是该应用下所有规则在触发本次变更之前那一刻的整体快照,而非增量差异。每次真正产生变更的 create/update/enable/disable/delete/reorder/revert 调用前都会写入一条新快照(若
update请求未携带任何可改字段,会直接返回成功且不写快照),因此version=1通常是首次创建规则之前捕获到的空规则集。 rules中的每一项都是完整的内部行结构(包含account_id、created_by、id、deleted_at),比rules/list返回的结构更宽。limit默认 20,超过 100 会被静默截断为 100,而不会报错。orderby仅支持updated_at或version,传入其他值(含缺省)会回退为updated_at,不会报错。- 结果默认按降序排列,传入
asc=true可改为升序。
授权
在 Flashduty 控制台 账户 → APP Key 中签发的 app_key。调用任何公开 API 时都必须携带。它等同于所属账户的身份凭证,请妥善保管。
请求体
application/json
查询预设严重性规则变更历史的过滤参数。
RUM 应用 ID,可通过 POST /rum/application/list 获取。
页码,从 0 开始。
必填范围:
x >= 0分页大小。小于等于 0 时默认取 20,超过 100 时会被截断为 100。
必填范围:
x <= 100排序字段。传入其他值(含缺省)会回退为 updated_at。
可用选项:
updated_at, version 为 true 时按升序排列;默认按降序排列。
此页面对您有帮助吗?
⌘I