igpapi — Instagram private API Simulator for Node.js (API reference) 4.14.0
    Preparing search index...

    Function makeHealthMetricsChannel

    • The health channel of one process: when it is due and its delivery. When it last attempted an upload is the process's own fact, so a process created per runtime layer keeps its own 240 s rhythm, and a process restored from a checkpoint continues the checkpointed one's (lastAttemptAtMs, continueProcess: a checkpoint carries it, as it carries the process timers). The counters stay counted on the device until the upload is confirmed: a failed or interrupted upload leaves them there.

      Parameters

      Returns {
          continueProcess: (
              facts: { lastAttemptAtMs: number | undefined },
          ) => void;
          deliver: () => Effect<
              TelemetryFlushResult,
              TelemetryDeliveryError,
              MobileDevice
              | MobileTelemetry
              | AnalyticsSend
              | MobileApplication,
          >;
          dueAt: (
              process: { startedAtMs: number },
          ) => Effect<
              { at: number; reason: "interval" }
              | undefined,
              never,
              MobileProcessStart,
          >;
          lastAttemptAtMs: () => number | undefined;
          name: string;
      }