Sign inSign up

beetaone/batcher

By beetaone

Updated almost 2 years ago

Image
0

164

beetaone/batcher repository overview

Batcher

NameBatcher
Versionv1.0.1
DockerHubbeetaone/batcher
authorsJakub Grzelak

Description

Batcher is responsible for collecting data into the batches and passing them later to the next module. Batches could be defined by either a time frequency of data arrival or a file size.

Environment Variables

Module Specific

The following module configurations can be provided in a data service designer section on beetaone platform:

NameEnvironment VariablestypeDescription
File Size Batch TriggerFILE_SIZE_BATCH_TRIGGERfloatSize of a batch in kilobytes (kb)
Frequency Batch TriggerFREQUENCY_BATCH_TRIGGERfloatLength of time interval for collecting data into batches
Frequency Time UnitFREQUENCY_TIME_UNITstringUnit of a time interval (ms - milliseconds, s - seconds, m - minutes, h - hours, d - days)
Set by the beetaone Agent on the edge-node

Other features required for establishing the inter-container communication between modules in a data service are set by beetaone agent.

Environment VariablestypeDescription
MODULE_NAMEstringName of the module
MODULE_TYPEstringType of the module (Input, Processing, Output)
EGRESS_URLSstringHTTP ReST endpoint for the next module
INGRESS_HOSTstringHost to which data will be received
INGRESS_PORTstringPort to which data will be received

Dependencies

bottle
requests

Input

Input to this module is JSON body single object or array of objects:

Example of single object:

{
  temperature: 15,
}

Example of array of objects:

[
  {
    temperature: 13,
  },
  {
    temperature: 5,
  },
  {
    temperature: 7,
  },
];

## Output

Output of this module is JSON body array of objects.

Example:

```json
[
  {
    temperature: 54,
  },
  {
    temperature: 4,
  },
  {
    temperature: 66,
  },
];

Tag summary

Content type

Image

Digest

sha256:aa322154e

Size

49.3 MB

Last updated

almost 2 years ago

docker pull beetaone/batcher:v1.0.1