diff options
author | Vitalii Lysak <v.lysak@dunice.net> | 2022-07-21 20:56:53 +0300 |
---|---|---|
committer | Vitalii Lysak <v.lysak@dunice.net> | 2022-07-21 20:56:53 +0300 |
commit | 7cba13534cda94a1efdbad2ff8dbe68de1fbeaa3 (patch) | |
tree | 6e8b1d480896b695907701648a621c80f98ee2dc /src/store | |
parent | 74f116101b3e4b925264b08611c42c054c0565e8 (diff) | |
download | webui-vue-7cba13534cda94a1efdbad2ff8dbe68de1fbeaa3.tar.xz |
add charts for fans and processors
Diffstat (limited to 'src/store')
-rw-r--r-- | src/store/modules/HardwareStatus/MemoryStore.js | 12 | ||||
-rw-r--r-- | src/store/modules/_sila/HardwareStatus/FanStore.js | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/src/store/modules/HardwareStatus/MemoryStore.js b/src/store/modules/HardwareStatus/MemoryStore.js index fd8f0a91..9d79ad10 100644 --- a/src/store/modules/HardwareStatus/MemoryStore.js +++ b/src/store/modules/HardwareStatus/MemoryStore.js @@ -52,8 +52,20 @@ const MemoryStore = { }; }); }, + + setMemoryDynamic: (state, data) => { + state.dimms = data; + }, }, actions: { + async getMemoryDynamic({ commit }) { + return await api + .get('/redfish/v1/TelemetryService/MetricReports/hour_data&dimm_temp') + .then(({ data: { MetricValues = [] } }) => + commit('setMemoryDynamic', MetricValues) + ) + .catch((error) => console.log(error)); + }, async getDimms({ commit }) { return await api .get('/redfish/v1/Systems/system/Memory') diff --git a/src/store/modules/_sila/HardwareStatus/FanStore.js b/src/store/modules/_sila/HardwareStatus/FanStore.js index 1399710b..a7647f3d 100644 --- a/src/store/modules/_sila/HardwareStatus/FanStore.js +++ b/src/store/modules/_sila/HardwareStatus/FanStore.js @@ -39,8 +39,20 @@ const FanStore = { }; }); }, + + setFansDynamic: (state, data) => { + state.fans = data; + }, }, actions: { + async getFansDynamic({ commit }) { + return await api + .get('/redfish/v1/TelemetryService/MetricReports/hour_data&fans') + .then(({ data: { MetricValues = [] } }) => + commit('setFansDynamic', MetricValues) + ) + .catch((error) => console.log(error)); + }, async getFanInfo({ commit }) { return await api .get('/redfish/v1/Chassis/chassis/Thermal') |