原始数据-账户维度
开发中POST
/insight/incident/raw/account最后修改时间: 7 小时前
请求参数
Body 参数application/json
start_time
integer
开始时间
秒时间戳,故障的触发时间需大于此时间
end_time
integer
结束时间
秒时间戳,故障的触发时间需小于等于此时间。最大时间跨度6个月,若aggregate_unit聚合粒度为day,则最大时间跨度31天。
team_ids
array[integer]
团队ID列表
channel_ids
array[integer]
协作空间ID列表
severities
array[string]
严重程度
枚举值:
InfoWarningCritical
p
integer
页码
从1开始
>= 0
默认值:
1
limit
integer
分页条数
>= 0<= 100
默认值:
20
asc
boolean
是否升序
orderby
enum<string>
排序字段
枚举值:
created_at
示例
{
"start_time": 0,
"end_time": 0,
"team_ids": [
0
],
"channel_ids": [
0
],
"severities": [
"Info"
],
"time_zone": "Asia/Shanghai",
"p": 1,
"limit": 20,
"asc": true,
"orderby": "created_at"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
error
object (DutyError)
可选
code
enum<string>
错误码
枚举值:
InvalidParameterInvalidContentTypeUnauthorizedAccessDeniedMethodNotAllowedRequestTooFrequentlyRequestVerifyRequiredDangerousOperationRequestLockedRouteNotFoundBalanceNotEnoughUndonedOrderExistResourceNotFoundInternalErrorReferenceExist
message
string
错误描述
data
object
可选
items
array [object {19}]
故障列表
total
integer
必需
示例
{
"error": {
"code": "string",
"message": "string"
},
{
"request_id": "9574c29dea946afcfb79142f1d74a023",
"data": {
"p": 1,
"limit": 10,
"total": 8125,
"items": [
{
"incident_id": "6765023b4c7966bea2725a02",
"account_id": 2451002751131,
"team_id": 4145287735131,
"channel_id": 3521074710131,
"severity": "Critical",
"created_at": 1734672953,
"is_acked": true,
"is_assigned": true,
"is_reassigned": false,
"escalated_by": "",
"closed_by": "manually",
"seconds_to_first_acknowledge": 1898,
"seconds_to_close": 1914,
"seconds_to_engage": 16
},
{
"incident_id": "6764d15321f378f89c4ec628",
"account_id": 2451002751131,
"team_id": 2477033058131,
"channel_id": 2564960487131,
"severity": "Critical",
"created_at": 1734660433,
"is_acked": true,
"is_assigned": true,
"is_reassigned": false,
"escalated_by": "",
"closed_by": "manually",
"seconds_to_first_acknowledge": 14,
"seconds_to_close": 14,
"seconds_to_engage": 0
},
{
"incident_id": "6764d15121f378f89c4ec620",
"account_id": 2451002751131,
"team_id": 2477033058131,
"channel_id": 2564960487131,
"severity": "Critical",
"created_at": 1734660431,
"is_acked": true,
"is_assigned": true,
"is_reassigned": false,
"escalated_by": "",
"closed_by": "manually",
"seconds_to_first_acknowledge": 16,
"seconds_to_close": 16,
"seconds_to_engage": 0
},
{
"incident_id": "6764d14f21f378f89c4ec618",
"account_id": 2451002751131,
"team_id": 2477033058131,
"channel_id": 2564960487131,
"severity": "Critical",
"created_at": 1734660429,
"is_acked": true,
"is_assigned": true,
"is_reassigned": false,
"escalated_by": "",
"closed_by": "manually",
"seconds_to_first_acknowledge": 18,
"seconds_to_close": 18,
"seconds_to_engage": 0
},
{
"incident_id": "6764d14d21f378f89c4ec610",
"account_id": 2451002751131,
"team_id": 2477033058131,
"channel_id": 2564960487131,
"severity": "Critical",
"created_at": 1734660427,
"is_acked": true,
"is_assigned": true,
"is_reassigned": false,
"escalated_by": "",
"closed_by": "manually",
"seconds_to_first_acknowledge": 20,
"seconds_to_close": 20,
"seconds_to_engage": 0
},
{
"incident_id": "6764d14b21f378f89c4ec608",
"account_id": 2451002751131,
"team_id": 2477033058131,
"channel_id": 2564960487131,
"severity": "Critical",
"created_at": 1734660425,
"is_acked": true,
"is_assigned": true,
"is_reassigned": false,
"escalated_by": "",
"closed_by": "manually",
"seconds_to_first_acknowledge": 22,
"seconds_to_close": 22,
"seconds_to_engage": 0
},
{
"incident_id": "6764d14921f378f89c4ec600",
"account_id": 2451002751131,
"team_id": 2477033058131,
"channel_id": 2564960487131,
"severity": "Critical",
"created_at": 1734660423,
"is_acked": true,
"is_assigned": true,
"is_reassigned": false,
"escalated_by": "",
"closed_by": "manually",
"seconds_to_first_acknowledge": 24,
"seconds_to_close": 24,
"seconds_to_engage": 0
},
{
"incident_id": "6764d14721f378f89c4ec5f8",
"account_id": 2451002751131,
"team_id": 2477033058131,
"channel_id": 2564960487131,
"severity": "Critical",
"created_at": 1734660421,
"is_acked": true,
"is_assigned": true,
"is_reassigned": false,
"escalated_by": "",
"closed_by": "manually",
"seconds_to_first_acknowledge": 26,
"seconds_to_close": 26,
"seconds_to_engage": 0
},
{
"incident_id": "6764d14521f378f89c4ec5f0",
"account_id": 2451002751131,
"team_id": 2477033058131,
"channel_id": 2564960487131,
"severity": "Critical",
"created_at": 1734660419,
"is_acked": true,
"is_assigned": true,
"is_reassigned": false,
"escalated_by": "",
"closed_by": "manually",
"seconds_to_first_acknowledge": 28,
"seconds_to_close": 28,
"seconds_to_engage": 0
},
{
"incident_id": "6764d14321f378f89c4ec5e8",
"account_id": 2451002751131,
"team_id": 2477033058131,
"channel_id": 2564960487131,
"severity": "Critical",
"created_at": 1734660416,
"is_acked": true,
"is_assigned": true,
"is_reassigned": false,
"escalated_by": "",
"closed_by": "manually",
"seconds_to_first_acknowledge": 31,
"seconds_to_close": 31,
"seconds_to_engage": 0
}
]
}
}
}
最后修改时间: 7 小时前