Skip to main content
Version: 3.11

SystemStatusOptions

Index

Properties

optionalcurrentHistorySecs

currentHistorySecs?: number = ```ts 5 ```

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

optionalmaxClientOverloadedRatio

maxClientOverloadedRatio?: number = ```ts 0.3 ```

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

optionalmaxCpuOverloadedRatio

maxCpuOverloadedRatio?: number = ```ts 0.4 ```

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

optionalmaxEventLoopOverloadedRatio

maxEventLoopOverloadedRatio?: number = ```ts 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.

optionalmaxMemoryOverloadedRatio

maxMemoryOverloadedRatio?: number = ```ts 0.2 ```

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

optionalsnapshotter

snapshotter?: Snapshotter

The Snapshotter instance to be queried for SystemStatus.