Skip to content

Debug module displaying all data passing through it.

License

Notifications You must be signed in to change notification settings

weeve-modules/spy

Repository files navigation

Spy

Name Spy
Version v1.0.1
DockerHub weevenetwork/spy
Authors Jakub Grzelak

Description

Debugging module displaying all data passing through it in the logs. This module shows only 3 logs:

  • all data passing through it (with info severity level)
  • confirmation that data was output to the next module Data send.
  • any errors occurred during processing

Environment Variables

Module Specific

This module does not have any module specific configuration.

Set by the weeve Agent on the edge-node

Other features required for establishing the inter-container communication between modules in a data service are set by weeve 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

Dependencies

bottle
requests

Input

Input to this module is:

  • JSON body single object, example:
{
    "label-1": 12,
    "label-2": "speed"
}
  • array of JSON body objects, example:
[
    {
        "label-1": 12,
        "label-2": "speed"
    },
    {
        "label-1": 15,
        "label-2": "volume"
    }
]

Output

Output of this module is exactly the same as the input:

  • JSON body single object, example:
{
    "label-1": 12,
    "label-2": "speed"
}
  • array of JSON body objects, example:
[
    {
        "label-1": 12,
        "label-2": "speed"
    },
    {
        "label-1": 15,
        "label-2": "volume"
    }
]