本文整理汇总了Python中hackathon.RequiredFeature.report_health方法的典型用法代码示例。如果您正苦于以下问题:Python RequiredFeature.report_health方法的具体用法?Python RequiredFeature.report_health怎么用?Python RequiredFeature.report_health使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类hackathon.RequiredFeature
的用法示例。
在下文中一共展示了RequiredFeature.report_health方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: AlaudaDockerHealthCheck
# 需要导入模块: from hackathon import RequiredFeature [as 别名]
# 或者: from hackathon.RequiredFeature import report_health [as 别名]
class AlaudaDockerHealthCheck(HealthCheck):
"""Report status of Alauda service
see more on docker/alauda_docker.py
"""
def __init__(self):
self.alauda_docker = RequiredFeature("alauda_docker")
def report_health(self):
return self.alauda_docker.report_health()
示例2: HostedDockerHealthCheck
# 需要导入模块: from hackathon import RequiredFeature [as 别名]
# 或者: from hackathon.RequiredFeature import report_health [as 别名]
class HostedDockerHealthCheck(HealthCheck):
"""Report status of hostdd docker
see more on docker/hosted_docker.py
"""
def __init__(self):
self.hosted_docker = RequiredFeature("hosted_docker_proxy")
def report_health(self):
return self.hosted_docker.report_health()