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