1 ##############################################################################
2 # Copyright (c) 2017 Rajesh Kudaka.
4 # Author: Rajesh Kudaka (4k.rajesh@gmail.com)
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
11 """ Handler for yardstick command 'report' """
13 from __future__ import print_function
15 from __future__ import absolute_import
17 from yardstick.benchmark.core.report import Report
18 from yardstick.cmd.commands import change_osloobj_to_paras
19 from yardstick.common.utils import cliargs
22 class ReportCommands(object):
25 Set of commands to manage benchmark tasks.
28 @cliargs("task_id", type=str, help=" task id", nargs=1)
29 @cliargs("yaml_name", type=str, help=" Yaml file Name", nargs=1)
30 def do_generate(self, args):
31 """Start a benchmark scenario."""
32 param = change_osloobj_to_paras(args)
33 Report().generate(param)