DirectorJob: add job object
This commit is contained in:
parent
bd553e65ec
commit
ee041b5aac
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
namespace Icinga\Module\Director\Objects;
|
||||
|
||||
use Icinga\Module\Director\Data\Db\DbObjectWithSettings;
|
||||
|
||||
class DirectorJob extends DbObjectWithSettings
|
||||
{
|
||||
protected $table = 'director_job';
|
||||
|
||||
protected $keyName = 'id';
|
||||
|
||||
protected $autoincKeyName = 'id';
|
||||
|
||||
protected $defaultProperties = array(
|
||||
'id' => null,
|
||||
'job_name' => null,
|
||||
'job_class' => null,
|
||||
'disabled' => null,
|
||||
'run_interval' => null,
|
||||
'last_attempt_succeeded' => null,
|
||||
'ts_last_attempt' => null,
|
||||
'ts_last_error' => null,
|
||||
'last_error_message' => null,
|
||||
);
|
||||
|
||||
protected $settingsTable = 'director_job_setting';
|
||||
}
|
Loading…
Reference in New Issue