Skip to content

Commit

Permalink
Add support health monitor system (#15)
Browse files Browse the repository at this point in the history
Signed-off-by: Petro Bratash <petrox.bratash@intel.com>
  • Loading branch information
bratashX authored and Andriy Kokhan committed Dec 17, 2021
1 parent 0be1f4b commit 871d21e
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"services_to_ignore": [],
"devices_to_ignore": [],
"user_defined_checkers": [],
"polling_interval": 60,
"led_color": {
"fault": "amber",
"normal": "green",
"booting": "orange_blink"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"services_to_ignore": [],
"devices_to_ignore": [],
"user_defined_checkers": [],
"polling_interval": 60,
"led_color": {
"fault": "amber",
"normal": "green",
"booting": "orange_blink"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"services_to_ignore": [],
"devices_to_ignore": [],
"user_defined_checkers": [],
"polling_interval": 60,
"led_color": {
"fault": "amber",
"normal": "green",
"booting": "orange_blink"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -212,3 +212,32 @@ def is_replaceable(self):
bool: True if it is replaceable.
"""
return False

def initizalize_system_led(self):
self.system_led = ""
return True

def set_status_led(self, color):
"""
Sets the state of the system LED
Args:
color: A string representing the color with which to set the
system LED
Returns:
bool: True if system LED state is set successfully, False if not
"""
self.system_led = color
return True

def get_status_led(self):
"""
Gets the state of the system LED
Returns:
A string, one of the valid LED color strings which could be vendor
specified.
"""

return self.system_led

0 comments on commit 871d21e

Please sign in to comment.