From 0f3ad6f2db26fb91190e47c89f77fb59b7601b84 Mon Sep 17 00:00:00 2001 From: Yujun Zhang Date: Thu, 9 Feb 2017 10:12:39 +0800 Subject: 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 --- qtip/collector/base.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'qtip/collector/base.py') 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' -- cgit 1.2.3-korg