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

Function usePerformance

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

Source from the content-addressed store, hash-verified

82}
83
84export function usePerformance(period: string = '24h') {
85 return useQuery({
86 queryKey: queryKeys.performance(period),
87 queryFn: () => api.getPerformance(period),
88 refetchInterval: 60000,
89 });
90}
91
92// Events
93export function useRecentEvents(limit: number = 100) {

Callers 1

MetricsFunction · 0.90

Calls 1

getPerformanceMethod · 0.80

Tested by

no test coverage detected