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/modules/_sila/HardwareStatus/FanStore.js | |
parent | 74f116101b3e4b925264b08611c42c054c0565e8 (diff) | |
download | webui-vue-7cba13534cda94a1efdbad2ff8dbe68de1fbeaa3.tar.xz |
add charts for fans and processors
Diffstat (limited to 'src/store/modules/_sila/HardwareStatus/FanStore.js')
-rw-r--r-- | src/store/modules/_sila/HardwareStatus/FanStore.js | 12 |
1 files changed, 12 insertions, 0 deletions
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') |