| 1 | <?php |
||
| 10 | class CpuAverageGauge implements GaugeInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Report every 60 seconds |
||
| 14 | * Load average is calculated every 1 minute |
||
| 15 | * |
||
| 16 | * @return int |
||
| 17 | */ |
||
| 18 | public function getSamplingPeriod() |
||
| 22 | |||
| 23 | /** |
||
| 24 | * {@inheritdoc} |
||
| 25 | */ |
||
| 26 | 1 | public function getValue() |
|
| 37 | |||
| 38 | /** |
||
| 39 | * Return CPU load average |
||
| 40 | * |
||
| 41 | * @return array |
||
| 42 | */ |
||
| 43 | protected function getLoadAverage() |
||
| 47 | } |
||
| 48 |