| Name | Fields Selector |
| Version | v1.0.1 |
| DockerHub | beetaone/fields-selector |
| authors | Jakub Grzelak |
This module allows to select data fields (labels) to keep or remove from received data.
The following module configurations can be provided in a data service designer section on beetaone platform:
| Name | Environment Variables | type | Description |
|---|---|---|---|
| Action | ACTION | string | Action to apply on the data fields: keep or remove. |
| Fields | FIELDS | string | List of comma (,) separated data fields (labels) names to apply action on. |
Other features required for establishing the inter-container communication between modules in a data service are set by beetaone agent.
| Environment Variables | type | Description |
|---|---|---|
| MODULE_NAME | string | Name of the module |
| MODULE_TYPE | string | Type of the module (Input, Processing, Output) |
| EGRESS_URLS | string | HTTP ReST endpoints for the next module |
| INGRESS_HOST | string | Host to which data will be received |
| INGRESS_PORT | string | Port to which data will be received |
bottle
requests
Input to this module is:
{
"name": "Ram",
"email": "[email protected]",
"age": 23
}
[
{
"name": "Ram",
"email": "[email protected]",
"age": 23
},
{
"name": "Shyam",
"email": "[email protected]",
"age": 28
},
{
"name": "John",
"email": "[email protected]",
"age": 33
},
{
"name": "Bob",
"email": "[email protected]",
"age": 41
}
]
If the module settings are ACTION = keep and FIELDS = name, email then output of this module is
{
"name": "Ram",
"email": "[email protected]",
}
[
{
"name": "Ram",
"email": "[email protected]"
},
{
"name": "Shyam",
"email": "[email protected]"
},
{
"name": "John",
"email": "[email protected]"
},
{
"name": "Bob",
"email": "[email protected]"
}
]
Content type
Image
Digest
sha256:146b327fe…
Size
49.1 MB
Last updated
almost 2 years ago
docker pull beetaone/fields-selector:v1.0.1