| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | |
| 3 | package puppet |
| 4 | |
| 5 | type statusServiceResponse struct { |
| 6 | StatusService *struct { |
| 7 | Status struct { |
| 8 | Experimental struct { |
| 9 | JVMMetrics *struct { |
| 10 | CPUUsage float64 `json:"cpu-usage" stm:"cpu_usage,1000,1"` |
| 11 | GCCPUUsage float64 `json:"gc-cpu-usage" stm:"gc_cpu_usage,1000,1"` |
| 12 | HeapMemory struct { |
| 13 | Committed int64 `json:"committed" stm:"committed"` |
| 14 | Init int64 `json:"init" stm:"init"` |
| 15 | Max int64 `json:"max" stm:"max"` |
| 16 | Used int64 `json:"used" stm:"used"` |
| 17 | } `json:"heap-memory" stm:"jvm_heap"` |
| 18 | FileDescriptors struct { |
| 19 | Used int `json:"used" stm:"used"` |
| 20 | Max int `json:"max" stm:"max"` |
| 21 | } `json:"file-descriptors" stm:"fd"` |
| 22 | NonHeapMemory struct { |
| 23 | Committed int64 `json:"committed" stm:"committed"` |
| 24 | Init int64 `json:"init" stm:"init"` |
| 25 | Max int64 `json:"max" stm:"max"` |
| 26 | Used int64 `json:"used" stm:"used"` |
| 27 | } `json:"non-heap-memory" stm:"jvm_nonheap"` |
| 28 | } `json:"jvm-metrics" stm:""` |
| 29 | } `json:"experimental" stm:""` |
| 30 | } `json:"status" stm:""` |
| 31 | } `json:"status-service" stm:""` |
| 32 | } |