UNPKG

@robotical/appv2-analytics-gatherer

Version:

A tool that gathers data from the Apps and sends it to the Analytics server

13 lines (12 loc) 559 B
import Heartbeat, { HeartbeatProps } from '../models/Heartbeat'; import { HeartbeatTypeEnum } from '../types/types'; type HeartbeatData = Omit<HeartbeatProps, 'id'>; declare class HeartbeatsHub { private static heartbeats; static addHeartbeat({ interval, type, activity, screen, sessionId, }: HeartbeatData): Promise<string | null>; static getActiveHeartbeats(): Heartbeat[]; static stopAllHeartbeatsOfType(type: HeartbeatTypeEnum): void; static stopAll(): void; static stopHeartbeat(id: string): void; } export default HeartbeatsHub;