本文整理汇总了Python中generator_introspect_utils.VerificationGenerator.get_collector_connection_status方法的典型用法代码示例。如果您正苦于以下问题:Python VerificationGenerator.get_collector_connection_status方法的具体用法?Python VerificationGenerator.get_collector_connection_status怎么用?Python VerificationGenerator.get_collector_connection_status使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类generator_introspect_utils.VerificationGenerator
的用法示例。
在下文中一共展示了VerificationGenerator.get_collector_connection_status方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: verify_on_setup
# 需要导入模块: from generator_introspect_utils import VerificationGenerator [as 别名]
# 或者: from generator_introspect_utils.VerificationGenerator import get_collector_connection_status [as 别名]
def verify_on_setup(self):
try:
vg = VerificationGenerator("127.0.0.1", self._http_port)
conn_status = vg.get_collector_connection_status()
except:
return False
else:
return conn_status["status"] == "Established"
示例2: verify_on_setup
# 需要导入模块: from generator_introspect_utils import VerificationGenerator [as 别名]
# 或者: from generator_introspect_utils.VerificationGenerator import get_collector_connection_status [as 别名]
def verify_on_setup(self):
try:
vg = VerificationGenerator('127.0.0.1', self._http_port, \
self._sandesh_config)
conn_status = vg.get_collector_connection_status()
except:
return False
else:
return conn_status['status'] == "Established"