本文整理匯總了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"