34 lines
584 B
PHP
34 lines
584 B
PHP
|
<?php
|
||
|
/* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
|
||
|
|
||
|
namespace Icinga\Module\Monitoring\DataView;
|
||
|
|
||
|
/**
|
||
|
* View representation for instances
|
||
|
*/
|
||
|
class Instance extends DataView
|
||
|
{
|
||
|
/**
|
||
|
* {@inheritdoc}
|
||
|
*/
|
||
|
public function getColumns()
|
||
|
{
|
||
|
return array(
|
||
|
'instance_id',
|
||
|
'instance_name'
|
||
|
);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* {@inheritdoc}
|
||
|
*/
|
||
|
public function getSortRules()
|
||
|
{
|
||
|
return array(
|
||
|
'instance_name' => array(
|
||
|
'order' => self::SORT_ASC
|
||
|
)
|
||
|
);
|
||
|
}
|
||
|
}
|