Change threshold

This commit is contained in:
Nicolas Mowen 2025-01-04 15:45:12 -07:00
parent d578fceac8
commit dfe3392cd2
2 changed files with 7 additions and 2 deletions

View File

@ -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,

View File

@ -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]}
/>