forked from openbmc/webui-vue
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move sensors to use sensor collection schema (#7)
Before to get all the Sensors 3 of a chassis, 3 calls were made: /redfish/v1/Chassis/{chassis}/Power /redfish/v1/Chassis/{chassis}/Thermal /redfish/v1/Chassis/{chassis}/Sensors With this change: https://gerrit.openbmc-project.xyz/c/openbmc/bmcweb/+/40169 All that is needed is a call to /redfish/v1/Chassis/{chassis}/Sensors Note: The threshold property is optional on some sensors, Optional chaining operator (?.) is used to return undefined if a property does not exist. Signed-off-by: Dixsie Wolmers <[email protected]>
- Loading branch information
Showing
2 changed files
with
56 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters