Skip to content

Commit 0a13c7b

Browse files
Thermalctld APIs for recording min and max temp (#131)
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()
1 parent 8813b1d commit 0a13c7b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

sonic_platform_base/thermal_base.py

+20
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,23 @@ def get_low_critical_threshold(self):
9292
up to nearest thousandth of one degree Celsius, e.g. 30.125
9393
"""
9494
raise NotImplementedError
95+
96+
def get_minimum_recorded(self):
97+
"""
98+
Retrieves the minimum recorded temperature of thermal
99+
100+
Returns:
101+
A float number, the minimum recorded temperature of thermal in Celsius
102+
up to nearest thousandth of one degree Celsius, e.g. 30.125
103+
"""
104+
raise NotImplementedError
105+
106+
def get_maximum_recorded(self):
107+
"""
108+
Retrieves the maximum recorded temperature of thermal
109+
110+
Returns:
111+
A float number, the maximum recorded temperature of thermal in Celsius
112+
up to nearest thousandth of one degree Celsius, e.g. 30.125
113+
"""
114+
raise NotImplementedError

0 commit comments

Comments
 (0)