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

30 lines
721 B
PHP

<?php
namespace Icinga\Module\Director\Objects;
class IcingaEndpoint extends IcingaObject
{
protected $table = 'icinga_endpoint';
protected $supportsImports = true;
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()
{
return $this->renderPropertyAsSeconds('log_duration');
}
}