<commit_before># Quarantine

Version: *2.0*

Author: *<NAME>* - *<EMAIL>*

Updates (v2): *<NAME>* - *<EMAIL>*

## Purpose
This containerized application monitors the /v1/events endpoint in the Halo API,
looking for specific events.  If a targeted event is matched, the tool will
move the workload into the configured quarantine group.

## How it works
Targeted events are listed, one per line, in `/conf/target-events`.  Feel free
to alter the file and rebuild the container, or mount in the config file from a
persistent volume.

When the end of the events stream is reached, this tool continue to query
until more events arrive.  If you do not set the `HALO_EVENTS_START`
environment variable, the tool will start at the beginning of the current day.<commit_msg>Adding link to event types documentation to README.md<commit_after># Quarantine

Version: *2.0*

Author: *<NAME>* - *<EMAIL>*

Updates (v2): *<NAME>* - *<EMAIL>*

## Purpose
This containerized application monitors the /v1/events endpoint in the Halo API,
looking for specific events.  If a targeted event is matched, the tool will
move the workload into the configured quarantine group.

## How it works
Targeted events are listed, one per line, in `/conf/target-events`.  Feel free
to alter the file and rebuild the container, or mount in the config file from a
persistent volume.  Event types produced by Halo can be found here:
https://api-doc.cloudpassage.com/help#event-types

When the end of the events stream is reached, this tool continue to query
until more events arrive.  If you do not set the `HALO_EVENTS_START`
environment variable, the tool will start at the beginning of the current day.
{'fraction_non_alphanumeric': 0.07378524295140972, 'fraction_numerical': 0.004799040191961607, 'mean_word_length': 4.4332247557003255, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1581009', 'n_tokens_mistral': 479, 'n_tokens_neox': 468, 'n_words': 244}