mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
History: Implement getMetaData()
This commit is contained in:
parent
b735f0632c
commit
c23362a6cd
1 changed files with 13 additions and 0 deletions
|
|
@ -47,6 +47,19 @@ class History extends Model
|
|||
];
|
||||
}
|
||||
|
||||
public function getMetaData()
|
||||
{
|
||||
return [
|
||||
'environment_id' => t('History Environment Id'),
|
||||
'endpoint_id' => t('History Endpoint Id'),
|
||||
'object_type' => t('History Object Type'),
|
||||
'host_id' => t('History Host Id'),
|
||||
'service_id' => t('History Service Id'),
|
||||
'event_type' => t('History Event Type'),
|
||||
'event_time' => t('History Event Time')
|
||||
];
|
||||
}
|
||||
|
||||
public function getDefaultSort()
|
||||
{
|
||||
return 'history.event_time desc';
|
||||
|
|
|
|||
Loading…
Reference in a new issue