Start process resource watch
process_resource_watch_startContinuously sample one PID and optionally lower its priority or terminate it when CPU or memory thresholds are exceeded.
Instructions
Continuously sample one PID and optionally lower priority or terminate it when CPU/memory thresholds are exceeded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | ||
| action | No | none | |
| deviceId | No | ||
| priority | No | BelowNormal | |
| deviceName | No | ||
| intervalMs | No | ||
| maxSamples | No | ||
| maxCpuPercent | No | ||
| maxMemoryBytes | No |