From c23362a6cdddca49aae42ff468f0bae912a4297b Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 2 Nov 2020 16:07:58 +0100 Subject: [PATCH] History: Implement `getMetaData()` --- library/Icingadb/Model/History.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/library/Icingadb/Model/History.php b/library/Icingadb/Model/History.php index 57725ffd..12d990fb 100644 --- a/library/Icingadb/Model/History.php +++ b/library/Icingadb/Model/History.php @@ -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';