1 | <?php |
||
13 | abstract class AbstractInfluxDbEvent extends Event |
||
14 | { |
||
15 | const NAME = 'influxdb.points_collected'; |
||
16 | |||
17 | /** @var Point[] */ |
||
18 | protected $points; |
||
19 | |||
20 | /** @var string */ |
||
21 | private $collectionPrecision; |
||
22 | /** |
||
23 | * @var bool |
||
24 | */ |
||
25 | private $deferred; |
||
26 | |||
27 | /** |
||
28 | * AbstractInfluxDbEvent constructor. |
||
29 | * |
||
30 | * @param Point[] $collection |
||
31 | * @param string $collectionPrecision |
||
32 | * @param bool $deferred |
||
33 | */ |
||
34 | public function __construct(array $collection, string $collectionPrecision, bool $deferred = false) |
||
40 | |||
41 | /** |
||
42 | * @return string |
||
43 | */ |
||
44 | public function getCollectionPrecision(): string |
||
48 | |||
49 | /** |
||
50 | * @return Point[] |
||
51 | */ |
||
52 | public function getPoints(): array |
||
56 | |||
57 | /** |
||
58 | * @return bool |
||
59 | */ |
||
60 | public function isWriteDeferred(): bool |
||
64 | } |
||
65 |