From 47b047c7320aada2ceba3c774287462e4cba0089 Mon Sep 17 00:00:00 2001 From: Sukanya Pandey Date: Wed, 23 Dec 2020 13:18:55 +0530 Subject: Add event log details - Add ability to expand and collapse table rows to show event log entry details - Add the following properties to display in the UI, Name, Modified date Change-Id: I3c90ce301878947e402eb87ca135dba0c47e84d5 Signed-off-by: Sandeepa Singh --- src/locales/en-US.json | 2 ++ src/store/modules/Health/EventLogStore.js | 12 +++++++- src/views/Health/EventLogs/EventLogs.vue | 50 +++++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+), 1 deletion(-) diff --git a/src/locales/en-US.json b/src/locales/en-US.json index 6da7c3c5..4536f6ce 100644 --- a/src/locales/en-US.json +++ b/src/locales/en-US.json @@ -254,6 +254,8 @@ "date": "Date", "description": "Description", "id": "ID", + "modifiedDate": "Modified Date", + "name": "Name", "searchLogs": "Search logs", "severity": "Severity", "type": "Type" diff --git a/src/store/modules/Health/EventLogStore.js b/src/store/modules/Health/EventLogStore.js index cdfb358a..eaec7490 100644 --- a/src/store/modules/Health/EventLogStore.js +++ b/src/store/modules/Health/EventLogStore.js @@ -43,13 +43,23 @@ const EventLogStore = { .get('/redfish/v1/Systems/system/LogServices/EventLog/Entries') .then(({ data: { Members = [] } = {} }) => { const eventLogs = Members.map((log) => { - const { Id, Severity, Created, EntryType, Message } = log; + const { + Id, + Severity, + Created, + EntryType, + Message, + Name, + Modified, + } = log; return { id: Id, severity: Severity, date: new Date(Created), type: EntryType, description: Message, + name: Name, + modifiedDate: new Date(Modified), uri: log['@odata.id'], }; }); diff --git a/src/views/Health/EventLogs/EventLogs.vue b/src/views/Health/EventLogs/EventLogs.vue index a01f3237..69545a57 100644 --- a/src/views/Health/EventLogs/EventLogs.vue +++ b/src/views/Health/EventLogs/EventLogs.vue @@ -85,6 +85,44 @@ + + + + +