Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lucasnetau/timebucket
Group data into discrete time slices
https://github.com/lucasnetau/timebucket
event-sourcing event-stream time-bucketing
Last synced: 22 days ago
JSON representation
Group data into discrete time slices
- Host: GitHub
- URL: https://github.com/lucasnetau/timebucket
- Owner: lucasnetau
- License: mit
- Created: 2019-05-13T03:49:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-06-22T07:00:38.000Z (over 1 year ago)
- Last Synced: 2024-03-28T21:20:28.438Z (9 months ago)
- Topics: event-sourcing, event-stream, time-bucketing
- Language: PHP
- Homepage:
- Size: 105 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Time Bucket
Not all events and measurements occur at the exact moment, however we may wish to correlate between these events by grouping them into arbitary time slices. TimeBucket allows you to aggregate data into slices of time (eg 5 minutes, by day etc) and then retrieve data via a time ordered queue.
TimeBuckets can be used to estimate the interval between slices of data and identify any time slices that are missing data.
## Requirements
The package is compatible with PHP 8.0+
## Installation
You can add the library as project dependency using [Composer](https://getcomposer.org/):
```sh
composer require edgetelemetrics/timebucket
```## Examples
TBC. See tests/ for now## License
MIT, see [LICENSE file](LICENSE).
### Contributing
Bug reports (and small patches) can be submitted via the [issue tracker](https://github.com/lucasnetau/timebucket/issues). Forking the repository and submitting a Pull Request is preferred for substantial patches.