Skip to main content
Version: 1.3

SystemStatusOptions

Properties

currentHistorySecs

Type: number = 5

Defines max age of snapshots used in the SystemStatus.getCurrentStatus() measurement.


maxMemoryOverloadedRatio

Type: number = 0.2

Sets the maximum ratio of overloaded snapshots in a memory sample. If the sample exceeds this ratio, the system will be overloaded.


maxEventLoopOverloadedRatio

Type: number = 0.6

Sets the maximum ratio of overloaded snapshots in an event loop sample. If the sample exceeds this ratio, the system will be overloaded.


maxCpuOverloadedRatio

Type: number = 0.4

Sets the maximum ratio of overloaded snapshots in a CPU sample. If the sample exceeds this ratio, the system will be overloaded.


maxClientOverloadedRatio

Type: number = 0.3

Sets the maximum ratio of overloaded snapshots in a Client sample. If the sample exceeds this ratio, the system will be overloaded.


snapshotter

Type: Snapshotter

The Snapshotter instance to be queried for SystemStatus.