UNPKG

@adventurelabs/scout-core

Version:

Core utilities and helpers for Adventure Labs Scout applications

10 lines (9 loc) 637 B
import { IWebResponseCompatible } from "../types/requests"; import { IHeartbeat } from "../types/db"; export declare function server_get_last_heartbeat_by_device(device_id: number): Promise<IWebResponseCompatible<IHeartbeat | null>>; export declare function server_get_heartbeats_by_device(device_id: number, limit?: number): Promise<IWebResponseCompatible<IHeartbeat[]>>; export declare function server_check_device_online_status(device_id: number, offline_threshold_minutes?: number): Promise<IWebResponseCompatible<{ is_online: boolean; last_heartbeat: IHeartbeat | null; minutes_since_last_heartbeat: number | null; }>>;