diff options
author | Sukanya Pandey <sukapan1@in.ibm.com> | 2020-12-23 10:48:55 +0300 |
---|---|---|
committer | Derick Montague <derick.montague@ibm.com> | 2021-03-23 03:02:54 +0300 |
commit | 47b047c7320aada2ceba3c774287462e4cba0089 (patch) | |
tree | 473f2f5ca8cc86a5398f8237068eecbe62d1d3ba /src/store | |
parent | 492875622b39cb2cf04bbb9248b6ed0c52ced2df (diff) | |
download | webui-vue-47b047c7320aada2ceba3c774287462e4cba0089.tar.xz |
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 <sandeepa.singh@ibm.com>
Diffstat (limited to 'src/store')
-rw-r--r-- | src/store/modules/Health/EventLogStore.js | 12 |
1 files changed, 11 insertions, 1 deletions
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'], }; }); |