diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2016-10-11 15:41:45 +0800 |
---|---|---|
committer | SerenaFeng <feng.xiaowei@zte.com.cn> | 2016-10-11 20:00:23 +0800 |
commit | 74eebf0e52388e2f5db598cdc0313e3e2bcc2974 (patch) | |
tree | 255259dcfe770eb8e74eeea71a62c8f8008d4b76 /dashboard/dashboard/mongo2elastic/format.py | |
parent | df4fb1e1f45c381ce038da887c3ca611b19629f7 (diff) |
visualize qpi using kibana_dashboard
JIRA: QTIP-122
Change-Id: Ice29c0a841e911b23959c91322331c5a66281be5
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'dashboard/dashboard/mongo2elastic/format.py')
-rw-r--r-- | dashboard/dashboard/mongo2elastic/format.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dashboard/dashboard/mongo2elastic/format.py b/dashboard/dashboard/mongo2elastic/format.py index ef485ba..0bbde17 100644 --- a/dashboard/dashboard/mongo2elastic/format.py +++ b/dashboard/dashboard/mongo2elastic/format.py @@ -184,3 +184,21 @@ def format_vims(testcase): } } return True + + +def format_qpi(testcase): + """ + Look for these and leave any of those: + details.index + + If none are present, then return False + """ + details = testcase['details'] + if 'index' not in details: + return False + + for key, value in details.items(): + if key != 'index': + del details[key] + + return True |