History: Implement getMetaData()

This commit is contained in:
Johannes Meyer 2020-11-02 16:07:58 +01:00
parent b735f0632c
commit c23362a6cd

View file

@ -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';