MCPcopy Create free account
hub / github.com/ZingerLittleBee/ServerBee / useNetworkServerSummary

Function useNetworkServerSummary

apps/web/src/hooks/use-network-api.ts:37–43  ·  view source on GitHub ↗
(serverId: string)

Source from the content-addressed store, hash-verified

35 })
36}
37
38export function useNetworkServerSummary(serverId: string) {
39 return useQuery<NetworkServerSummary>({
40 queryKey: ['servers', serverId, 'network-probes', 'summary'],
41 queryFn: () => api.get(`/api/servers/${serverId}/network-probes/summary`),
42 enabled: serverId.length > 0
43 })
44}
45
46export function useNetworkRecords(serverId: string, hours: number, options?: { targetId?: string; enabled?: boolean }) {

Callers 3

NetworkQualityWidgetFunction · 0.90
NetworkLatencyWidgetFunction · 0.90
NetworkDetailPageFunction · 0.90

Calls 1

getMethod · 0.45

Tested by

no test coverage detected