diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-04-25 13:49:21 +0800 |
---|---|---|
committer | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-04-25 16:58:26 +0800 |
commit | 6463b6635a8094a0ddcf83605cd231ba46104f72 (patch) | |
tree | 4ec7c0381f4447f5462fb2cac556a473b4b3c36e /qtip/util | |
parent | ec63540ec6cd3e6310407826b99cf0b3327bdf02 (diff) |
Add ssl aes metrics in qpi calculation
Change-Id: Id568aa3942849e105ca24892babff2acaec21121
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'qtip/util')
-rw-r--r-- | qtip/util/export_to.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/qtip/util/export_to.py b/qtip/util/export_to.py new file mode 100644 index 00000000..98c39b5f --- /dev/null +++ b/qtip/util/export_to.py @@ -0,0 +1,15 @@ +############################################################################## +# Copyright (c) 2017 ZTE and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +import json + + +def export_to_file(content, filename): + with open(filename, 'w+') as f: + f.write(json.dumps(content, indent=2)) |