feat(awooop): expose alert noise reduction readback
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Failing after 16s
CD Pipeline / build-and-deploy (push) Has been skipped
CD Pipeline / post-deploy-checks (push) Has been skipped
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Failing after 16s
CD Pipeline / build-and-deploy (push) Has been skipped
CD Pipeline / post-deploy-checks (push) Has been skipped
This commit is contained in:
@@ -4,6 +4,7 @@ import { useCallback, useEffect, useMemo, useState } from "react";
|
||||
import { useLocale, useTranslations } from "next-intl";
|
||||
import {
|
||||
Activity,
|
||||
Bell,
|
||||
Bot,
|
||||
BookOpenCheck,
|
||||
CheckCircle2,
|
||||
@@ -107,6 +108,17 @@ type RuntimeReceiptReadback = {
|
||||
similar_case_source_total?: number | null;
|
||||
} | null;
|
||||
} | null;
|
||||
alert_noise_reduction?: {
|
||||
status?: string | null;
|
||||
missing_required_stage_ids?: string[] | null;
|
||||
rollups?: {
|
||||
stage_count?: number | null;
|
||||
required_stage_present_count?: number | null;
|
||||
required_stage_missing_count?: number | null;
|
||||
suppressed_alert_total?: number | null;
|
||||
controlled_route_total?: number | null;
|
||||
} | null;
|
||||
} | null;
|
||||
work_item_progress?: {
|
||||
rollups?: {
|
||||
work_item_count?: number | null;
|
||||
@@ -240,6 +252,8 @@ export function AutonomousRuntimeReceiptPanel({
|
||||
const decisionMissing = readback?.agent_decision_wiring?.missing_required_stage_ids ?? [];
|
||||
const learningRollups = readback?.learning_loop?.rollups ?? {};
|
||||
const learningMissing = readback?.learning_loop?.missing_required_stage_ids ?? [];
|
||||
const alertNoiseRollups = readback?.alert_noise_reduction?.rollups ?? {};
|
||||
const alertNoiseMissing = readback?.alert_noise_reduction?.missing_required_stage_ids ?? [];
|
||||
const workItemRollups = readback?.work_item_progress?.rollups ?? {};
|
||||
const latestFlow = readback?.latest_flow_closure;
|
||||
const rollups = payload?.rollups ?? {};
|
||||
@@ -343,6 +357,31 @@ export function AutonomousRuntimeReceiptPanel({
|
||||
),
|
||||
}),
|
||||
},
|
||||
{
|
||||
key: "alerts",
|
||||
label: t("metrics.alerts"),
|
||||
value: toNumber(
|
||||
rollups.live_alert_noise_required_present_count
|
||||
?? alertNoiseRollups.required_stage_present_count
|
||||
),
|
||||
recent: toNumber(
|
||||
rollups.live_alert_noise_stage_count
|
||||
?? alertNoiseRollups.stage_count
|
||||
),
|
||||
icon: Bell,
|
||||
caption: t("traceCaption", {
|
||||
count: numberValue(
|
||||
rollups.live_alert_noise_stage_count
|
||||
?? alertNoiseRollups.stage_count
|
||||
?? 0
|
||||
),
|
||||
missing: numberValue(
|
||||
rollups.live_alert_noise_required_missing_count
|
||||
?? alertNoiseRollups.required_stage_missing_count
|
||||
?? alertNoiseMissing.length
|
||||
),
|
||||
}),
|
||||
},
|
||||
{
|
||||
key: "apply",
|
||||
label: t("metrics.apply"),
|
||||
@@ -392,6 +431,10 @@ export function AutonomousRuntimeReceiptPanel({
|
||||
decisionRollups.required_stage_present_count,
|
||||
decisionRollups.stage_count,
|
||||
learningMissing.length,
|
||||
alertNoiseMissing.length,
|
||||
alertNoiseRollups.required_stage_missing_count,
|
||||
alertNoiseRollups.required_stage_present_count,
|
||||
alertNoiseRollups.stage_count,
|
||||
learningRollups.required_stage_missing_count,
|
||||
learningRollups.required_stage_present_count,
|
||||
learningRollups.stage_count,
|
||||
|
||||
Reference in New Issue
Block a user