Notifier runner.
convert_to_timestamp
(violations)[source]¶Convert violation created_at_datetime to timestamp string.
Parameters: | violations (dict) – List of violations as dict with created_at_datetime. |
---|---|
Returns: |
|
Return type: | list |
find_notifiers
(notifier_name)[source]¶Get the first class in the given sub module
Parameters: | notifier_name (str) – Name of the notifier. |
---|---|
Returns: | The class in the sub module |
Return type: | class |
run
(inventory_index_id, scanner_index_id, progress_queue, service_config=None)[source]¶Run the notifier.
Entry point when the notifier is run as a library.
Parameters: |
|
---|---|
Returns: | Status code. |
Return type: | int |