Helpers
psengine.playbook_alerts.helpers
¶
save_pba_images
¶
save_pba_images(
playbook_alerts: Union[
PBA_DomainAbuse, list[PBA_DomainAbuse]
],
output_directory: str = DEFAULT_ALERTS_OUTPUT_DIR,
) -> None
Save Domain Abuse images/screenshots to disk as a .png
file.
PARAMETER | DESCRIPTION |
---|---|
playbook_alerts
|
Domain Abuse alert or a list of Domain Abuse alerts.
TYPE:
|
output_directory
|
A directory to save the images to.
TYPE:
|
RAISES | DESCRIPTION |
---|---|
TypeError
|
If alerts are not |
WriteFileError
|
If the image save fails with an |