Common - Core Algorithm

Watcher.common.core.collect_observables(app_name, context_data)

Collect observables based on app and context data.

Watcher.common.core.generate_ref()

Generate unique ‘sourceRef’ for an alert.

Watcher.common.core.remove_html_tags(text)

Remove HTML tags from a string.

Watcher.common.core.send_app_specific_notifications(app_name, context_data, subscribers)

Send notifications based on app type (Slack, Citadel, TheHive, Email). Collect observables, format content, and send to respective channels.

Watcher.common.core.send_app_specific_notifications_group(app_name, context_data, subscribers)

Send group notifications based on app type (Slack, Citadel, Email).

Watcher.common.core.send_only_thehive_notifications(app_name, context_data, subscribers)

Send notifications only to TheHive based on app type. Collect observables, format the notification content, and send them to respective channels.