| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class JobsRatePlugin extends BasePlugin |
||
| 17 | { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * {@inheritdoc} |
||
| 21 | */ |
||
| 22 | public function config(): string |
||
| 23 | { |
||
| 24 | return <<<'CONFIG' |
||
| 25 | graph_title Job Rate |
||
| 26 | graph_vlabel Jobs per ${graph_period} |
||
| 27 | graph_category Beanstalk |
||
| 28 | graph_args --lower-limit 0 |
||
| 29 | graph_scale no |
||
| 30 | queue_jobs.label Jobs |
||
| 31 | queue_jobs.type DERIVE |
||
| 32 | queue_jobs.min 0 |
||
| 33 | |||
| 34 | CONFIG; |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritdoc} |
||
| 39 | */ |
||
| 40 | public function data(): string |
||
| 44 | } |
||
| 45 | } |
||
| 46 |