github.com/netdata/go.d.plugin@v0.58.1/modules/phpdaemon/metrics.go (about) 1 // SPDX-License-Identifier: GPL-3.0-or-later 2 3 package phpdaemon 4 5 // https://github.com/kakserpom/phpdaemon/blob/master/PHPDaemon/Core/Daemon.php 6 // see getStateOfWorkers() 7 8 // WorkerState represents phpdaemon worker state. 9 type WorkerState struct { 10 // Alive is sum of Idle, Busy and Reloading 11 Alive int64 `stm:"alive"` 12 Shutdown int64 `stm:"shutdown"` 13 14 // Idle that the worker is not in the middle of execution valuable callback (e.g. request) at this moment of time. 15 // It does not mean that worker not have any pending operations. 16 // Idle is sum of Preinit, Init and Initialized. 17 Idle int64 `stm:"idle"` 18 // Busy means that the worker is in the middle of execution valuable callback. 19 Busy int64 `stm:"busy"` 20 Reloading int64 `stm:"reloading"` 21 22 Preinit int64 `stm:"preinit"` 23 // Init means that worker is starting right now. 24 Init int64 `stm:"init"` 25 // Initialized means that the worker is in Idle state. 26 Initialized int64 `stm:"initialized"` 27 } 28 29 // FullStatus FullStatus. 30 type FullStatus struct { 31 WorkerState `stm:""` 32 Uptime *int64 `stm:"uptime"` 33 }