diff options
Diffstat (limited to 'src/store/modules')
-rw-r--r-- | src/store/modules/_sila/HardwareStatus/FanStore.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/store/modules/_sila/HardwareStatus/FanStore.js b/src/store/modules/_sila/HardwareStatus/FanStore.js index a7647f3d..c7b30099 100644 --- a/src/store/modules/_sila/HardwareStatus/FanStore.js +++ b/src/store/modules/_sila/HardwareStatus/FanStore.js @@ -47,7 +47,17 @@ const FanStore = { actions: { async getFansDynamic({ commit }) { return await api - .get('/redfish/v1/TelemetryService/MetricReports/hour_data&fans') + .get('/redfish/v1/TelemetryService/MetricReports/hour_data&id=fans') + .then(({ data: { MetricValues = [] } }) => + commit('setFansDynamic', MetricValues) + ) + .catch((error) => console.log(error)); + }, + async getFansDynamicHour({ commit }) { + return await api + .get( + '/redfish/v1/TelemetryService/MetricReports/hour_data&id=fans&period=last_hour' + ) .then(({ data: { MetricValues = [] } }) => commit('setFansDynamic', MetricValues) ) |