Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thermalctld APIs for recording min and max temp #131

Merged
merged 3 commits into from
Nov 12, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
mprabhu-nokia marked this conversation as resolved.
Show resolved Hide resolved

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