mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
Instance: Add new column icingadb_version
This commit is contained in:
parent
0b5a34b4e1
commit
54b3d3ad7a
1 changed files with 9 additions and 1 deletions
|
|
@ -5,6 +5,7 @@
|
|||
namespace Icinga\Module\Icingadb\Model;
|
||||
|
||||
use DateTime;
|
||||
use Icinga\Module\Icingadb\Common\Backend;
|
||||
use Icinga\Module\Icingadb\Model\Behavior\BoolCast;
|
||||
use ipl\Orm\Behavior\Binary;
|
||||
use ipl\Orm\Behavior\MillisecondTimestamp;
|
||||
|
|
@ -26,6 +27,7 @@ use ipl\Orm\Relations;
|
|||
* @property bool $icinga2_performance_data_enabled
|
||||
* @property DateTime $icinga2_start_time
|
||||
* @property string $icinga2_version
|
||||
* @property string $icingadb_version
|
||||
*/
|
||||
class Instance extends Model
|
||||
{
|
||||
|
|
@ -41,7 +43,7 @@ class Instance extends Model
|
|||
|
||||
public function getColumns()
|
||||
{
|
||||
return [
|
||||
$columns = [
|
||||
'environment_id',
|
||||
'endpoint_id',
|
||||
'heartbeat',
|
||||
|
|
@ -55,6 +57,12 @@ class Instance extends Model
|
|||
'icinga2_start_time',
|
||||
'icinga2_version'
|
||||
];
|
||||
|
||||
if (Backend::supportsDependencies()) {
|
||||
$columns[] = 'icingadb_version';
|
||||
}
|
||||
|
||||
return $columns;
|
||||
}
|
||||
|
||||
public function getDefaultSort()
|
||||
|
|
|
|||
Loading…
Reference in a new issue