feat: 优化运维定时报表邮件模板

This commit is contained in:
Jlypx
2026-07-19 11:23:26 +08:00
parent d4b9797ff7
commit 361983cf4d
5 changed files with 768 additions and 63 deletions
@@ -286,6 +286,29 @@ const fallbackPlaceholders = [
"{{report_type}}",
"{{report_start_time}}",
"{{report_end_time}}",
"{{report_summary_display}}",
"{{report_detail_display}}",
"{{report_total_requests}}",
"{{report_success_count}}",
"{{report_sla_error_count}}",
"{{report_business_limited_count}}",
"{{report_sla}}",
"{{report_error_rate}}",
"{{report_upstream_error_rate}}",
"{{report_upstream_error_count_excl_429_529}}",
"{{report_upstream_429_count}}",
"{{report_upstream_529_count}}",
"{{report_latency_p50}}",
"{{report_latency_p99}}",
"{{report_ttft_p50}}",
"{{report_ttft_p99}}",
"{{report_tokens}}",
"{{report_qps_current}}",
"{{report_qps_peak}}",
"{{report_qps_avg}}",
"{{report_tps_current}}",
"{{report_tps_peak}}",
"{{report_tps_avg}}",
"{{report_html}}",
];
@@ -374,7 +397,7 @@ const eventDisplayMeta: Record<string, EventDisplayMeta> = {
},
"ops.scheduled_report": {
label: "运维定时报表",
timing: "运维日报、周报、错误摘要或账号健康报表到达配置的发送时间时发送。",
timing: "运维日报、周报、错误摘要或账号健康报表到达配置的发送时间时发送;日报和周报的完整指标均可在模板中编辑。",
categoryLabel: "运维",
},
};
@@ -437,7 +460,7 @@ const eventDisplayMetaEn: Record<string, EventDisplayMeta> = {
},
"ops.scheduled_report": {
label: "Ops Scheduled Report",
timing: "Sent when a configured daily, weekly, error digest, or account health report reaches its scheduled send time.",
timing: "Sent when a configured daily, weekly, error digest, or account health report reaches its scheduled send time. Every daily and weekly summary metric is editable in this template.",
categoryLabel: "Ops",
},
};
@@ -505,7 +528,9 @@ const selectedEventDescription = computed(() => {
});
const placeholderList = computed(() => {
const combined = [...placeholders.value, ...fallbackPlaceholders];
const combined = placeholders.value.length
? placeholders.value
: fallbackPlaceholders;
return Array.from(
new Set(
combined