Skip to main content
POST
列出自动化运行历史

限制说明

使用说明

  • 仅当调用者可管理规则时才可查看运行历史:个人规则仅限创建者;团队规则限账户管理员或规则所属团队成员。

授权

app_key
string
query
必填

App key issued from the Flashduty console. Required on every public API call. Keep it secret — it grants the same access as the owning account.

请求体

application/json
rule_id
string
必填

目标规则 ID,取自 POST /safari/automation/rule/list 返回的列表。

p
integer
默认值:1

页码,从 1 开始。

limit
integer
默认值:20

每页数量。

status
enum<string>

运行状态过滤:queued 排队中、running 运行中、retrying 重试中、succeeded 成功、partial 部分成功、failed 失败、skipped 已跳过(如规则或触发器失效)、abandoned 已放弃(超过时效未完成被系统终结)、blocked 已阻塞(终态:有产出但某个连接器正等待人工完成授权);省略则不过滤。

可用选项:
queued,
running,
retrying,
succeeded,
partial,
failed,
skipped,
abandoned,
blocked
trigger_kind
enum<string>

触发来源过滤:schedule 定时调度、debug 调试运行、manual 手动触发、http_post HTTP POST 触发、oncall_incident On-call 故障触发;省略则不过滤。

可用选项:
schedule,
debug,
manual,
http_post,
oncall_incident
started_after_ms
integer<int64>

开始时间下界,Unix 毫秒。早于 180 天运行记录保留下限的值会被截断到下限(省略时默认即为该下限)。

必填范围: x >= 0
started_before_ms
integer<int64>

开始时间上界,Unix 毫秒。必须不早于生效后的 started_after_ms;早于保留下限时返回空结果。

必填范围: x >= 0

响应

成功

Standard response envelope used by every Flashduty public API. On success data contains the endpoint-specific payload and error is absent. On failure error is present and data is absent. request_id is always present and is also mirrored in the Flashcat-Request-Id response header.

request_id
string
必填

本次请求的唯一 ID,与 Flashcat-Request-Id 响应头一致。反馈问题时请携带该 ID。

示例:

"01HK8XQE3Z7JM2NTFQ5YJ8P9R4"

error
object

响应结构中的错误 payload,仅在非 2xx 响应时出现。

data
object

端点专属数据负载,具体结构见各操作 200 响应中的 schema。