Describes, how to test custom rest based collectors

Please follow the below steps to test the existing sample rest based examples.

  1. Copy examples/rest_custom_collector directory to base directory collector-sdk.

  2. copy files under examples/rest_custom_collector/configuration and put the same in base directory collector-sdk.

  3. Delete configuration directory from base_directory/rest_custom_collector

  4. Modify the configuration files config.json, metadata.json and build_config.json as per your requirement.

  5. Later, package can be created and uploaded using build.sh command.

To test the REST custom collector, use command:

python3 app.py --directory <directory name where the collector is created> --test --configfile config.json --configschema config_input_schema.json

You can check the output, which will be published to kafka further, in output.json under base directory. And also the logs are written to logs/logs.txt.