From 0a13c7b61ca45b30da0d3383304ebbf397eab88a Mon Sep 17 00:00:00 2001 From: mprabhu-nokia <66807480+mprabhu-nokia@users.noreply.github.com> Date: Thu, 12 Nov 2020 14:17:00 -0500 Subject: [PATCH] Thermalctld APIs for recording min and max temp (#131) sonic-platform-base: Changes to introduce APIs for modular chassis for thermalctld HLD: Azure/SONiC#646 Introducing thermal APIs to get min and max temperatures of each sensors - get_minimum_recorded() - get_maximum_recorded() --- sonic_platform_base/thermal_base.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/sonic_platform_base/thermal_base.py b/sonic_platform_base/thermal_base.py index 0388d4f60865..82d4b7ef24e0 100644 --- a/sonic_platform_base/thermal_base.py +++ b/sonic_platform_base/thermal_base.py @@ -92,3 +92,23 @@ def get_low_critical_threshold(self): up to nearest thousandth of one degree Celsius, e.g. 30.125 """ raise NotImplementedError + + def get_minimum_recorded(self): + """ + Retrieves the minimum recorded temperature of thermal + + Returns: + A float number, the minimum recorded temperature of thermal in Celsius + up to nearest thousandth of one degree Celsius, e.g. 30.125 + """ + raise NotImplementedError + + def get_maximum_recorded(self): + """ + Retrieves the maximum recorded temperature of thermal + + Returns: + A float number, the maximum recorded temperature of thermal in Celsius + up to nearest thousandth of one degree Celsius, e.g. 30.125 + """ + raise NotImplementedError