| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | |
| 3 | package apache |
| 4 | |
| 5 | type ( |
| 6 | serverStatus struct { |
| 7 | // ExtendedStatus |
| 8 | Total struct { |
| 9 | // Total number of accesses. |
| 10 | Accesses *int64 `stm:"accesses"` |
| 11 | // Total number of byte count served. |
| 12 | // This metric reflects the bytes that should have been served, |
| 13 | // which is not necessarily equal to the bytes actually (successfully) served. |
| 14 | KBytes *int64 `stm:"kBytes"` |
| 15 | } `stm:"total"` |
| 16 | Averages struct { |
| 17 | //Average number of requests per second. |
| 18 | ReqPerSec *float64 `stm:"req_per_sec,100000,1"` |
| 19 | // Average number of bytes served per second. |
| 20 | BytesPerSec *float64 `stm:"bytes_per_sec,100000,1"` |
| 21 | // Average number of bytes per request. |
| 22 | BytesPerReq *float64 `stm:"bytes_per_req,100000,1"` |
| 23 | } `stm:""` |
| 24 | Uptime *int64 `stm:"uptime"` |
| 25 | |
| 26 | Workers struct { |
| 27 | // Total number of busy worker threads/processes. |
| 28 | // A worker is considered “busy” if it is in any of the following states: |
| 29 | // reading, writing, keep-alive, logging, closing, or gracefully finishing. |
| 30 | Busy *int64 `stm:"busy_workers"` |
| 31 | // Total number of idle worker threads/processes. |
| 32 | // An “idle” worker is not in any of the busy states. |
| 33 | Idle *int64 `stm:"idle_workers"` |
| 34 | } `stm:""` |
| 35 | Connections struct { |
| 36 | Total *int64 `stm:"total"` |
| 37 | Async struct { |
| 38 | // Number of async connections in writing state (only applicable to event MPM). |
| 39 | Writing *int64 `stm:"writing"` |
| 40 | // Number of async connections in keep-alive state (only applicable to event MPM). |
| 41 | KeepAlive *int64 `stm:"keep_alive"` |
| 42 | // Number of async connections in closing state (only applicable to event MPM). |
| 43 | Closing *int64 `stm:"closing"` |
| 44 | } `stm:"async"` |
| 45 | } `stm:"conns"` |
| 46 | Scoreboard *scoreboard `stm:"scoreboard"` |
| 47 | } |
| 48 | scoreboard struct { |
| 49 | Waiting int64 `stm:"waiting"` |
| 50 | Starting int64 `stm:"starting"` |
| 51 | Reading int64 `stm:"reading"` |
| 52 | Sending int64 `stm:"sending"` |
| 53 | KeepAlive int64 `stm:"keepalive"` |
| 54 | DNSLookup int64 `stm:"dns_lookup"` |
| 55 | Closing int64 `stm:"closing"` |
| 56 | Logging int64 `stm:"logging"` |
| 57 | Finishing int64 `stm:"finishing"` |
| 58 | IdleCleanup int64 `stm:"idle_cleanup"` |
| 59 | Open int64 `stm:"open"` |
| 60 | } |
| 61 | ) |