1 | <?php |
||
26 | class CentrifugoCollector extends DataCollector |
||
27 | { |
||
28 | /** @var CommandHistoryLogger */ |
||
29 | private $commandHistoryLogger; |
||
30 | |||
31 | /** |
||
32 | * @param CommandHistoryLogger $commandHistoryLogger |
||
33 | */ |
||
34 | public function __construct(CommandHistoryLogger $commandHistoryLogger) |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | public function collect(Request $request, Response $response, \Throwable $exception = null): void |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function getName(): string |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | public function reset(): void |
||
76 | |||
77 | /** |
||
78 | * @return int |
||
79 | */ |
||
80 | public function getCommandsCount(): int |
||
84 | |||
85 | /** |
||
86 | * @return int |
||
87 | */ |
||
88 | public function getSuccessfulCommandsCount(): int |
||
92 | |||
93 | /** |
||
94 | * @return int |
||
95 | */ |
||
96 | public function getFailedCommandsCount(): int |
||
100 | |||
101 | /** |
||
102 | * @return int |
||
103 | */ |
||
104 | public function getRequestsCount(): int |
||
108 | |||
109 | /** |
||
110 | * @return CommandInterface[] |
||
111 | */ |
||
112 | public function getCommandHistory(): array |
||
116 | } |
||
117 |