Read the detections on a Vectra Detect Brain and make recommendations for creating Triage Filters.
- Python3
- The URL of a Brain and the corresponding API Token
- The token can be found after logging in to the brain. On the Left, Click on
- My Profile > API Token
- Click on Copy
- The token can be found after logging in to the brain. On the Left, Click on
- Access to the brain for the duration of the script
- Obtain the latest source code from GitHub
-
If you downloaded a zip file, extract the contents
-
Change to the directory where the source is located
-
(Optional recommended step): Setup a Virtual Environment
-
Create the Virtual Environemnt
python3 -m venv .env -
Activate the Virtual Environment (note the prompt change in the second line when this is done properly)
user@mbp19:triage-report $ source .env/bin/activate (.env) user@mbp19:triage-report $
-
-
Install the prerequities
pip3 install -r requirements.txt -
If you created a Virtual Environment in Step 3, you do not need to create a new environment each time, though you do need to ensure it is active via
source .env/bin/activate -
Run the script as in Usage
- Obtain Python3 from Python.org
- Extract the contents of the zip file
- Change to the directory where the source is located
- (Optional recommended step): Setup a Virtual Environment
- Create the Virtual Environment
python3 -m venv env-triage - Activate the Virtual Environment (note the prompt change in the second line when this is done properly)
- Create the Virtual Environment
- Install the prerequisites
pip3 install -r requirements.txt - If you created a Virtual Environment in Step 3, you do not need to create a
new environment each time, though you do need to ensure it is active via
/env-triage/Scripts/activate - Run the script as in Usage
python3 triage_report.py --cognito_url https://brain.vectra.ai --cognito_token xxxxxx