Dominevo
ReferenceHTTP API

networkQuality

The networkQuality router: 3 methods of the network-quality capability, with tier, scope, input and output.

Capability network-quality · scope system · mode singleton · source packages/types/src/capabilities/network-quality.cap.ts:47.

Every method is called at /trpc/networkQuality.<method> — queries with GET, mutations with POST. See How to call and Authorization.

MethodKindTierToken scopeViewer
getDeviceStatsqueryprotectedviewno
getAllStatsqueryprotectedviewno
reportClientStatsmutationprotectedcreateyes

networkQuality.getDeviceStats

  • Kind: query — GET /trpc/networkQuality.getDeviceStats
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability network-quality, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=networkQuality.getDeviceStats on your hub

Input

{ deviceId: number }

Output

DeviceNetworkStatsSchema | null

Shapes: DeviceNetworkStatsSchema

networkQuality.getAllStats

  • Kind: query — GET /trpc/networkQuality.getAllStats
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability network-quality, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=networkQuality.getAllStats on your hub

Input

void

Output

DeviceNetworkStatsSchema[]

Shapes: DeviceNetworkStatsSchema

networkQuality.reportClientStats

  • Kind: mutation — POST /trpc/networkQuality.reportClientStats
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability network-quality, or category system
  • Viewer: yes
  • Try it: open /system/api-explorer?method=networkQuality.reportClientStats on your hub

Input

{ deviceId: number; rttMs: number; jitterMs: number; estimatedBandwidthKbps: number; packetLossPercent: number; downlinkMbps?: number; downlinkAgeMs?: number }

Output

void