Uh oh!
There was an error while loading. Please reload this page.
[P1] sla: no conditional timer primitive — SLA can't pause on waiting_customer; metrics are unfair #1310
Closed as not planned
There was an error while loading. Please reload this page.
现象
平台没有「条件性计时器」原语。所有时间字段都是绝对时刻,无法做「状态切换时暂停 / 恢复」。
最痛的场景是 SLA:
waiting_customer(等客户回复),SLA 计时应暂停in_progress,SLA 继续累计今天的
resolution_due_at是创建时按 SLA 策略加出来的绝对时刻,整段全程跑表。这导致:复现
helpdesk模板:当前 workaround
paused_at/total_paused_minutes字段,写两个 flow 在状态切换时累加 —— 模板侧能写但易错、不能跨模板复用、UI 显示混乱建议范围
M1:声明式 timer 字段
timer:{ name, startsAt: cel, pauseWhen: cel, resumeWhen: cel, dueAfter: duration | cel }accumulated_duration/due_at(动态计算)M2:分级 SLA
sla_policy上能挂多个 timer:first_response_due / resolution_dueM3:暂停审计
M4:通知集成
验收
helpdesk模板:waiting_customer 暂停 SLA,回到 in_progress 恢复关联