From dfe3392cd24d56b05f0e8ac9a2acb57ac77a22b0 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sat, 4 Jan 2025 15:45:12 -0700 Subject: [PATCH] Change threshold --- web/src/types/graph.ts | 5 +++++ web/src/views/system/FeatureMetrics.tsx | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/web/src/types/graph.ts b/web/src/types/graph.ts index 6a3eb7663..bfa9dd331 100644 --- a/web/src/types/graph.ts +++ b/web/src/types/graph.ts @@ -18,6 +18,11 @@ export const InferenceThreshold = { error: 100, } as Threshold; +export const EmbeddingThreshold = { + warning: 500, + error: 1000, +} as Threshold; + export const DetectorTempThreshold = { warning: 72, error: 80, diff --git a/web/src/views/system/FeatureMetrics.tsx b/web/src/views/system/FeatureMetrics.tsx index b47c25701..787d2367b 100644 --- a/web/src/views/system/FeatureMetrics.tsx +++ b/web/src/views/system/FeatureMetrics.tsx @@ -2,7 +2,7 @@ import useSWR from "swr"; import { FrigateStats } from "@/types/stats"; import { useEffect, useMemo, useState } from "react"; import { useFrigateStats } from "@/api/ws"; -import { InferenceThreshold } from "@/types/graph"; +import { EmbeddingThreshold } from "@/types/graph"; import { Skeleton } from "@/components/ui/skeleton"; import { ThresholdBarGraph } from "@/components/graph/SystemGraph"; import { cn } from "@/lib/utils"; @@ -105,7 +105,7 @@ export default function FeatureMetrics({ graphId={`${series.name}-inference`} name={series.name} unit="ms" - threshold={InferenceThreshold} + threshold={EmbeddingThreshold} updateTimes={updateTimes} data={[series]} />