diff options
Diffstat (limited to 'src/store/modules/_sila/HardwareStatus/MotherboardStore.js')
-rw-r--r-- | src/store/modules/_sila/HardwareStatus/MotherboardStore.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/store/modules/_sila/HardwareStatus/MotherboardStore.js b/src/store/modules/_sila/HardwareStatus/MotherboardStore.js index 93d655f9..71b71065 100644 --- a/src/store/modules/_sila/HardwareStatus/MotherboardStore.js +++ b/src/store/modules/_sila/HardwareStatus/MotherboardStore.js @@ -14,6 +14,16 @@ const MotherboardStore = { }, }, actions: { + async getMotherboardDynamicHour({ commit }) { + return await api + .get( + '/redfish/v1/TelemetryService/MetricReports/hour_data&id=other_temp&period=last_hour' + ) + .then(({ data: { MetricValues = [] } }) => + commit('setMotherboardDynamic', MetricValues) + ) + .catch((error) => console.log(error)); + }, async getMotherboardDynamic({ commit }) { return await api .get('/redfish/v1/TelemetryService/MetricReports/hour_data&other_temp') |