Download the PHP package harout-itology/laravel-aws-timestream without Composer
On this page you can find all versions of the php package harout-itology/laravel-aws-timestream. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download harout-itology/laravel-aws-timestream
More information about harout-itology/laravel-aws-timestream
Files in harout-itology/laravel-aws-timestream
Package laravel-aws-timestream
Short Description Library to interact with AWS Timestream service via API
License MIT
Homepage https://github.com/harout-itology/laravel-aws-timestream
Informations about the package laravel-aws-timestream
Laravel AWS Timestream
AWS Timestream is a fast, scalable, and serverless time series database service. This package is an opinionated implementation to query timestream and ingest data into timestream.
It provides a query builder class which has common timeseries sql function. This was inspired by Laravel Eloquent ORM.
See supported query functions HaroutItology\AwsTimestream\Contract\QueryBuilderContract
It also provide a payload builder class to format your data correctly to ingest into timestream.
See HaroutItology\AwsTimestream\Contract\PayloadBuilderContract
Install
Configuration
-
Publish config
- Open
timestream.php
config file and setup your databse name and tables - Setup you AWS Timestream keys and permissions with the following enviroment variable
Basic Usage
Query Timestream
Using TimestreamBuilder::query()
will give autocomplete of all available functions
-
Using
TimestreamBuilder
to build query to be passed ontoTimestreamReaderDto
which generate am object that can be consumed byTimestreamService
query function - Use
TimestreamReaderDto
to injectfrom
query with defaultdatabase
name and on demandtable
name. NB. No need to add->from()
query on your query builder.
Timestream Ingestion
We need to build our payload that Timestream will accept for ingestion.
-
Use
TimestreamBuilder
to build ingestion payload - Ingestion data in batch using Common Attributes to reduce ingestion cost with Timestream