本文整理汇总了Python中cfme.intelligence.reports.reports.CannedSavedReport.queue_canned_report方法的典型用法代码示例。如果您正苦于以下问题:Python CannedSavedReport.queue_canned_report方法的具体用法?Python CannedSavedReport.queue_canned_report怎么用?Python CannedSavedReport.queue_canned_report使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cfme.intelligence.reports.reports.CannedSavedReport
的用法示例。
在下文中一共展示了CannedSavedReport.queue_canned_report方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: get_report
# 需要导入模块: from cfme.intelligence.reports.reports import CannedSavedReport [as 别名]
# 或者: from cfme.intelligence.reports.reports.CannedSavedReport import queue_canned_report [as 别名]
def get_report(menu_name, candu=False):
"""Queue a report by menu name , wait for finish and return it"""
path_to_report = ['Configuration Management', 'Containers', menu_name]
try:
run_at, queued_at = CannedSavedReport.queue_canned_report(path_to_report)
except CandidateNotFound:
pytest.skip('Could not find report "{}" in containers.\nTraceback:\n{}'
.format(path_to_report, format_exc()))
return CannedSavedReport(path_to_report, run_at, queued_at, candu=candu)
示例2: report
# 需要导入模块: from cfme.intelligence.reports.reports import CannedSavedReport [as 别名]
# 或者: from cfme.intelligence.reports.reports.CannedSavedReport import queue_canned_report [as 别名]
def report():
path = ["Configuration Management", "Virtual Machines", "Hardware Information for VMs"]
return CannedSavedReport(path, CannedSavedReport.queue_canned_report(path))