feat: enhance the alarm kernel with recovered status notification capability #13492 (#505)

This commit is contained in:
youjie23
2025-11-14 10:19:55 +08:00
committed by GitHub
parent 28c2cbd609
commit 6eaf7fe26d
7 changed files with 18 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ export const Alarm = {
key: id
message
startTime
recoveryTime
scope
name
tags {

View File

@@ -215,6 +215,7 @@ const msg = {
timeRange: "Time Range",
duration: "Duration",
startTime: "Start Time",
recoveryTime: "Recovery Time",
start: "Start",
spans: "Spans",
spanInfo: "Span Info",
@@ -327,6 +328,7 @@ const msg = {
message: "Message",
tooltipsContent: "Tooltip Content",
alarmDetail: "Alarm Detail",
recoveredAt: "Recovered At",
scope: "Scope",
destService: "Destination Service",
destServiceInstance: "Destination Service Instance",

View File

@@ -213,6 +213,7 @@ const msg = {
timeRange: "Rango de Tiempo",
duration: "Duración",
startTime: "Hora Inicio",
recoveryTime: "Tiempo Recuperación",
start: "Incio",
spans: "Lapso",
spanInfo: "Info Lapso",
@@ -324,6 +325,7 @@ const msg = {
message: "Mensaje",
tooltipsContent: "Contenido de Información de Herramienta",
alarmDetail: "Detalle Alarma",
recoveredAt: "Recuperado En",
scope: "Alcance",
destService: "Servicio Destinación",
destServiceInstance: "Instancia Servicio Destinación",

View File

@@ -216,6 +216,7 @@ const msg = {
timeRange: "时间范围",
duration: "持续时间",
startTime: "开始时间",
recoveryTime: "恢复时间",
start: "起始点",
spans: "跨度",
spanInfo: "跨度信息",
@@ -324,6 +325,7 @@ const msg = {
message: "信息",
tooltipsContent: "提示内容",
alarmDetail: "警告详情",
recoveredAt: "恢复于",
scope: "范围",
destService: "终点服务",
destServiceInstance: "终点实例",

View File

@@ -24,6 +24,7 @@ export interface Alarm {
message: string;
key: string;
startTime: string;
recoveryTime: string;
scope: string;
tags: Array<{ key: string; value: string }>;
events: Event[];

View File

@@ -37,6 +37,9 @@ limitations under the License. -->
<div class="grey sm show-xs">
{{ dateFormat(parseInt(i.startTime)) }}
</div>
<div class="grey sm" v-if="i.recoveryTime">
{{ t("recoveredAt") }} {{ dateFormat(parseInt(i.recoveryTime)) }}
</div>
</div>
</div>
<div v-if="!alarmStore.alarms.length" class="tips">{{ t("noData") }}</div>
@@ -53,6 +56,9 @@ limitations under the License. -->
<span v-if="item.label === 'startTime'">
{{ dateFormat(currentDetail[item.label]) }}
</span>
<span v-else-if="item.label === 'recoveryTime'">
{{ currentDetail[item.label] ? dateFormat(currentDetail[item.label]) : "" }}
</span>
<span v-else-if="item.label === 'tags'">
<div v-for="(d, index) in alarmTags" :key="index">{{ d }}</div>
</span>

View File

@@ -40,6 +40,10 @@ export const AlarmDetailCol = [
label: "startTime",
value: "startTime",
},
{
label: "recoveryTime",
value: "recoveryTime",
},
{
label: "tags",
value: "tags",