| name | Comparison Filter |
| version | v1.0.1 |
| GitHub | comparison-filter |
| DockerHub | beetaone/comparison-filter |
| authors | Jakub Grzelak, Paul Gaiduk |
This module is responsible for filtering the data based on an algebraic comparisons : <, >, <=, >=, ==, !=.
The following module configurations can be provided in a data service designer section on beetaone platform:
| Environment Variables | type | Description |
|---|---|---|
| INPUT_LABEL | string | The input label on which anomaly is detected |
| CONDITION | string | Condition for filtering data |
| COMPARE_VALUE | string | The value to compare with |
| MODULE_NAME | string | Name of the module |
| MODULE_TYPE | string | Type of the module (Input, Processing, Output) |
| LOG_LEVEL | string | Allowed log levels: DEBUG, INFO, WARNING, ERROR, CRITICAL. Refer to logging package documentation. |
| INGRESS_HOST | string | Host to which data will be received |
| INGRESS_PORT | string | Port to which data will be received |
| EGRESS_URLS | string | HTTP ReST endpoint for the next module |
To test module navigate to test directory. In test/assets edit both .json file to provide input for the module and expected output. During a test, data received from the listeners are compared against expected output data. You can run tests with make run_test.
The following are module dependencies:
The following are developer dependencies:
Input to this module is JSON body single object:
Example of single object:
{
temperature: 15
}
Output of this module is JSON body the same as input data if chosen comparison condition is satisfied:
{
temperature: 15
}
Content type
Image
Digest
sha256:5fe3fd76f…
Size
49.1 MB
Last updated
almost 2 years ago
docker pull beetaone/comparison-filter:v1.0.1