Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pup/telemetry.ts>PupTelemetry

Universal process manager built in Deno
Go to Latest
class PupTelemetry
import { PupTelemetry } from "https://deno.land/x/pup@1.0.0-rc.5/telemetry.ts";

Constructors

new
PupTelemetry(intervalSeconds?)

PupTelemetry singleton instance. The new keyword is optional.

Properties

private
aborted: boolean
private
events: EventEmitter
private
intervalSeconds: number
private
optional
ipc: FileIPC
private
optional
timer: number

Methods

private
checkIpc()

The watchdog is guarded by a try/catch block and recursed by a unrefed timer to prevent the watchdog from keeping a process alive.

emit<T>(
targetProcessId: string,
event: string,
eventData?: T,
)
off<T>(event: string, fn: EventHandler<T>)
on<T>(event: string, fn: EventHandler<T>)