Skip to content
On this page

Directus Cloud

Everything you need to start building. Provisioned in 90 seconds. Starting at $15/month.

Get Started

This is an auto-generated document to support extension builders understand the internal packages they can utilize. To find our written guides, tutorials, and API/SDK reference, check out our main docs .

Directus / @directus/pressure / PressureMonitor

Class: PressureMonitor ​

Constructors ​

new PressureMonitor(options) ​

new PressureMonitor(options): PressureMonitor

Parameters ​

• options: PressureMonitorOptions= {}

Returns ​

PressureMonitor

Source ​

monitor.ts:25

Properties ​

eventLoopDelay ​

private eventLoopDelay: number = 0

Source ​

monitor.ts:19


eventLoopUtilization ​

private eventLoopUtilization: number = 0

Source ​

monitor.ts:20


histogram ​

private histogram: IntervalHistogram

Source ​

monitor.ts:22


memoryHeapUsed ​

private memoryHeapUsed: number = 0

Source ​

monitor.ts:17


memoryRss ​

private memoryRss: number = 0

Source ​

monitor.ts:18


options ​

private options: Required<PressureMonitorOptions>

Source ​

monitor.ts:21


timeout ​

private timeout: Timeout

Source ​

monitor.ts:23

Accessors ​

overloaded ​

get overloaded(): boolean

Returns ​

boolean

Source ​

monitor.ts:43

Methods ​

updateEventLoopUsage() ​

private updateEventLoopUsage(): void

Returns ​

void

Source ​

monitor.ts:75


updateMemoryUsage() ​

private updateMemoryUsage(): void

Returns ​

void

Source ​

monitor.ts:69


updateUsage() ​

private updateUsage(): void

Returns ​

void

Source ​

monitor.ts:63