mirror of https://github.com/MISP/MISP
23 lines
918 B
PHP
23 lines
918 B
PHP
<?php
|
|
include_once APP . 'Model/WorkflowModules/WorkflowBaseModule.php';
|
|
|
|
class Module_event_after_save extends WorkflowBaseTriggerModule
|
|
{
|
|
public $id = 'event-after-save';
|
|
public $scope = 'event';
|
|
public $name = 'Event After Save';
|
|
public $description = 'This trigger is called after an Event has been saved in the database';
|
|
public $icon = 'envelope';
|
|
public $inputs = 0;
|
|
public $outputs = 1;
|
|
public $blocking = false;
|
|
public $misp_core_format = true;
|
|
public $trigger_overhead = self::OVERHEAD_HIGH;
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->trigger_overhead_message = __('This trigger is called each time an Event or Attribute have been saved. This means that when a large quantity of Attributes are being saved (e.g. Feed pulling or synchronisation), the workflow will be run for as many time as there are Attributes.');
|
|
}
|
|
}
|