summaryrefslogtreecommitdiffstats
path: root/qtip/collector/base.py
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2017-02-09 10:12:39 +0800
committerYujun Zhang <zhang.yujunz@zte.com.cn>2017-02-15 06:54:40 +0800
commit0f3ad6f2db26fb91190e47c89f77fb59b7601b84 (patch)
tree8b855519dfb53d0abdd96a6eb93f3463df35817b /qtip/collector/base.py
parent6add7fcac82f9b807e71fe84d16c673682d82327 (diff)
Refactoring collector initialization in plan loader
- move ClassProps to module - collectors should be array in plan definition Change-Id: I37d85dbc977c91aa1bb81de45b5e1c41660e6d1f Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'qtip/collector/base.py')
-rw-r--r--qtip/collector/base.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/qtip/collector/base.py b/qtip/collector/base.py
index 2a25455c..e7f9756f 100644
--- a/qtip/collector/base.py
+++ b/qtip/collector/base.py
@@ -8,7 +8,20 @@
##############################################################################
+from qtip.base.constant import BaseProp
+
+
class BaseCollector(object):
"""performance metrics collector"""
def __init__(self, config):
self._config = config
+
+
+class CollectorProp(BaseProp):
+ TYPE = 'type'
+ LOGS = 'logs'
+ FILENAME = 'filename'
+ GREP = 'grep'
+ REGEX = 'regex'
+ CAPTURE = 'capture'
+ PATHS = 'path'