MCPcopy Create free account
hub / github.com/astercloud/aster / useOverview

Function useOverview

studio/src/hooks/useApi.ts:43–49  ·  view source on GitHub ↗
(period: string = '24h')

Source from the content-addressed store, hash-verified

41
42// Overview
43export function useOverview(period: string = '24h') {
44 return useQuery({
45 queryKey: queryKeys.overview(period),
46 queryFn: () => api.getOverview(period),
47 refetchInterval: 30000, // Refresh every 30 seconds
48 });
49}
50
51// Traces
52export function useTraces(opts: TraceQueryOpts = {}) {

Callers 1

OverviewFunction · 0.90

Calls 1

getOverviewMethod · 0.80

Tested by

no test coverage detected