aboutsummaryrefslogtreecommitdiffstats
path: root/qtip/base/constant.py
diff options
context:
space:
mode:
authorzhihui wu <wu.zhihui1@zte.com.cn>2017-01-25 01:41:31 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-01-25 01:41:31 +0000
commitf5c23e82e2f59af3ed59a8ad46c119f141cefe7b (patch)
tree4ce4dc99d3ac91cf905a1524e7f12ddb5f557c01 /qtip/base/constant.py
parent3a08c5442a70dec7f628b7e9b11a9a9384767918 (diff)
parentb659a9296223b7f63a89bedbc0dad281117de936 (diff)
Merge "Formalize constants for property names"
Diffstat (limited to 'qtip/base/constant.py')
-rw-r--r--qtip/base/constant.py29
1 files changed, 26 insertions, 3 deletions
diff --git a/qtip/base/constant.py b/qtip/base/constant.py
index 76481b47..58cc0cc1 100644
--- a/qtip/base/constant.py
+++ b/qtip/base/constant.py
@@ -25,26 +25,49 @@ class PkgName(object):
SPEC = 'spec'
-class PropName(object):
+class BaseProp(object):
"""property names"""
# list
NAME = 'name'
CONTENT = 'content'
ABSPATH = 'abspath'
+
# content
- name = 'name'
DESCRIPTION = 'description'
+
+
+class SpecProp(BaseProp):
# spec
SECTIONS = 'sections'
WEIGHT = 'weight'
FORMULA = 'formula'
METRICS = 'metrics'
WORKLOADS = 'workloads'
+
+
+class PlanProp(BaseProp):
# plan
- CONFIG = 'config'
+ INFO = 'info'
+
FACILITY = 'facility'
ENGINEER = 'engineer'
+
+ CONFIG = 'config'
+
DRIVER = 'driver'
COLLECTOR = 'collector'
REPORTER = 'reporter'
+
QPIS = 'QPIs'
+
+
+class CollectorProp(BaseProp):
+ LOGS = 'logs'
+ FILENAME = 'filename'
+ PATTERNS = 'patterns'
+ MATCH = 'match'
+ CAPTURE = 'capture'
+
+
+class ReporterBaseProp(BaseProp):
+ TRANSFORMER = 'transformer'