Describes, the procedure to write new rest custom collector.
-
Create package for a custom collector, for example: rest_collector
-
Inside the collector package, develop python code by implementing BachColletor.
-
Create or update the required configuration files. Refer the section Configurations
Example: To create a REST Collector:
from collectors.batch_collector import BatchCollector class RestCollector(BatchCollector)
See, sample code for REST custom collector in example directory.