Skip to content

Commit

Permalink
Thermalctld APIs for recording min and max temp (#131)
Browse files Browse the repository at this point in the history
sonic-platform-base: Changes to introduce APIs for modular chassis for thermalctld

HLD: sonic-net/SONiC#646

Introducing thermal APIs to get min and max temperatures of each sensors
  - get_minimum_recorded()
  - get_maximum_recorded()
  • Loading branch information
mprabhu-nokia authored Nov 12, 2020
1 parent 8813b1d commit 0a13c7b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions sonic_platform_base/thermal_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0a13c7b

Please sign in to comment.