Sign inSign up

beetaone/fields-renamer

By beetaone

Updated almost 2 years ago

Image
0

135

beetaone/fields-renamer repository overview

Fields Renamer

NameFields Renamer
Versionv1.0.1
DockerHubbeetaone/fields-renamer
AuthorsJakub Grzelak

Description

Rename fields (labels) in your data. List of comma (,) separated pairs of fields to rename in format old_name=new_name. For example, to rename fields temp to temperature and V to volume the list should look like temp=temperature, V=volume.

Environment Variables

Module Specific

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

NameEnvironment VariablestypeDescription
Rename FieldsRENAME_FIELDSstringList of comma (,) separated pairs of fields to rename in format old_name=new_name.
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 endpoints 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, example:
{
    "temp": 12,
    "V": 3
}
  • array of JSON body objects, example:
[
    {
        "temp": 12,
        "V": 3
    },
    {
        "temp": 21,
        "V": 4
    }
]

Output

If Rename Fields is set to temp=temperature, V=volume Output of this module is:

  • JSON body single object, example:
{
    "temperature": 12,
    "volume": 3
}
  • array of JSON body objects, example:
[
    {
        "temperature": 12,
        "volume": 3
    },
    {
        "temperature": 21,
        "volume": 4
    }
]

Tag summary

Content type

Image

Digest

sha256:d980ebd5c

Size

49.1 MB

Last updated

almost 2 years ago

docker pull beetaone/fields-renamer:v1.0.1