2015-06-01 17:26:09 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Icinga\Module\Director\Objects;
|
|
|
|
|
|
|
|
class IcingaEndpoint extends IcingaObject
|
|
|
|
{
|
|
|
|
protected $table = 'icinga_endpoint';
|
|
|
|
|
2015-06-29 11:11:56 +02:00
|
|
|
protected $supportsImports = true;
|
|
|
|
|
2015-06-01 17:26:09 +02:00
|
|
|
protected $defaultProperties = array(
|
|
|
|
'id' => null,
|
|
|
|
'zone_id' => null,
|
|
|
|
'object_name' => null,
|
|
|
|
'address' => null,
|
|
|
|
'port' => null,
|
|
|
|
'log_duration' => null,
|
|
|
|
'object_type' => null,
|
|
|
|
);
|
2015-12-03 16:50:44 +01:00
|
|
|
|
|
|
|
protected $relations = array(
|
|
|
|
'zone' => 'IcingaZone',
|
|
|
|
);
|
2015-12-03 17:56:27 +01:00
|
|
|
|
|
|
|
protected function renderLog_duration()
|
|
|
|
{
|
2015-12-03 18:02:57 +01:00
|
|
|
return $this->renderPropertyAsSeconds('log_duration');
|
2015-12-03 17:56:27 +01:00
|
|
|
}
|
2015-06-01 17:26:09 +02:00
|
|
|
}
|