Derives usage analytics from an existing DeviceInfo response. This is a pure function that performs client-side calculations without API calls.
Use this when you already have a DeviceInfo object (e.g., from a previous deviceInfo() call) to avoid making an additional API request.
The device info response object.
Optional
Service threshold in hours.
const info = await api.deviceInfo(token, mac);const analytics = deriveUsageAnalytics(info); Copy
const info = await api.deviceInfo(token, mac);const analytics = deriveUsageAnalytics(info);
Derives usage analytics from an existing DeviceInfo response. This is a pure function that performs client-side calculations without API calls.
Use this when you already have a DeviceInfo object (e.g., from a previous deviceInfo() call) to avoid making an additional API request.