Download the PHP package alexvergara/laravel-aws-timestream without Composer
On this page you can find all versions of the php package alexvergara/laravel-aws-timestream. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alexvergara/laravel-aws-timestream
More information about alexvergara/laravel-aws-timestream
Files in alexvergara/laravel-aws-timestream
Package laravel-aws-timestream
Short Description Fork from Norbybaru - Library to interact with AWS Timestream service via API - Downgrade for Laravel6 + PHP7 - Fixes for AWS Config
License MIT
Homepage https://github.com/norbybaru/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 AlexVergara\AwsTimestream\Contract\QueryBuilderContract
It also provide a payload builder class to format your data correctly to ingest into timestream.
See AlexVergara\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