mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-18 09:04:28 +03:00
Change threshold
This commit is contained in:
parent
d578fceac8
commit
dfe3392cd2
@ -18,6 +18,11 @@ export const InferenceThreshold = {
|
|||||||
error: 100,
|
error: 100,
|
||||||
} as Threshold;
|
} as Threshold;
|
||||||
|
|
||||||
|
export const EmbeddingThreshold = {
|
||||||
|
warning: 500,
|
||||||
|
error: 1000,
|
||||||
|
} as Threshold;
|
||||||
|
|
||||||
export const DetectorTempThreshold = {
|
export const DetectorTempThreshold = {
|
||||||
warning: 72,
|
warning: 72,
|
||||||
error: 80,
|
error: 80,
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import useSWR from "swr";
|
|||||||
import { FrigateStats } from "@/types/stats";
|
import { FrigateStats } from "@/types/stats";
|
||||||
import { useEffect, useMemo, useState } from "react";
|
import { useEffect, useMemo, useState } from "react";
|
||||||
import { useFrigateStats } from "@/api/ws";
|
import { useFrigateStats } from "@/api/ws";
|
||||||
import { InferenceThreshold } from "@/types/graph";
|
import { EmbeddingThreshold } from "@/types/graph";
|
||||||
import { Skeleton } from "@/components/ui/skeleton";
|
import { Skeleton } from "@/components/ui/skeleton";
|
||||||
import { ThresholdBarGraph } from "@/components/graph/SystemGraph";
|
import { ThresholdBarGraph } from "@/components/graph/SystemGraph";
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
@ -105,7 +105,7 @@ export default function FeatureMetrics({
|
|||||||
graphId={`${series.name}-inference`}
|
graphId={`${series.name}-inference`}
|
||||||
name={series.name}
|
name={series.name}
|
||||||
unit="ms"
|
unit="ms"
|
||||||
threshold={InferenceThreshold}
|
threshold={EmbeddingThreshold}
|
||||||
updateTimes={updateTimes}
|
updateTimes={updateTimes}
|
||||||
data={[series]}
|
data={[series]}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user