summaryrefslogtreecommitdiff
path: root/src/store/modules/HardwareStatus/MemoryStore.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/store/modules/HardwareStatus/MemoryStore.js')
-rw-r--r--src/store/modules/HardwareStatus/MemoryStore.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/store/modules/HardwareStatus/MemoryStore.js b/src/store/modules/HardwareStatus/MemoryStore.js
index 9d79ad10..2c8fc044 100644
--- a/src/store/modules/HardwareStatus/MemoryStore.js
+++ b/src/store/modules/HardwareStatus/MemoryStore.js
@@ -58,6 +58,16 @@ const MemoryStore = {
},
},
actions: {
+ async getMemoryDynamicHour({ commit }) {
+ return await api
+ .get(
+ '/redfish/v1/TelemetryService/MetricReports/hour_data&id=dimm_temp&period=last_hour'
+ )
+ .then(({ data: { MetricValues = [] } }) =>
+ commit('setMemoryDynamic', MetricValues)
+ )
+ .catch((error) => console.log(error));
+ },
async getMemoryDynamic({ commit }) {
return await api
.get('/redfish/v1/TelemetryService/MetricReports/hour_data&dimm_temp')