icingaweb2-module-director/library/Director/Objects/IcingaEndpoint.php

30 lines
721 B
PHP
Raw Normal View History

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,
);
protected $relations = array(
'zone' => 'IcingaZone',
);
protected function renderLog_duration()
{
2015-12-03 18:02:57 +01:00
return $this->renderPropertyAsSeconds('log_duration');
}
2015-06-01 17:26:09 +02:00
}