blob: ddd07e9d5737965353644b03db45b324bcc222dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
##############################################################################
# Copyright (c) 2016 ZTE Corp 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
##############################################################################
class FormulaName(object):
"""formula names"""
ARITHMETIC_MEAN = 'arithmetic mean'
WEIGHTED_ARITHMETIC_MEAN = 'weighted arithmetic mean'
GEOMETRIC_MEAN = 'geometric mean'
WEIGHTED_GEOMETRIC_MEAN = 'weighted geometric mean'
class PkgName(object):
"""QTIP package names"""
COLLECTOR = 'collector'
DRIVER = 'driver'
REPORTER = 'reporter'
RUNNER = 'runner'
SPEC = 'spec'
class BaseProp(object):
"""property names"""
# list
NAME = 'name'
CONTENT = 'content'
ABSPATH = 'abspath'
# content
DESCRIPTION = 'description'
class SpecProp(BaseProp):
# spec
SECTIONS = 'sections'
WEIGHT = 'weight'
FORMULA = 'formula'
METRICS = 'metrics'
WORKLOADS = 'workloads'
class PlanProp(BaseProp):
# plan
INFO = 'info'
FACILITY = 'facility'
ENGINEER = 'engineer'
CONFIG = 'config'
DRIVER = 'driver'
COLLECTOR = 'collector'
REPORTER = 'reporter'
QPIS = 'QPIs'
class CollectorProp(BaseProp):
LOGS = 'logs'
FILENAME = 'filename'
GREP = 'grep'
REGEX = 'regex'
CAPTURE = 'capture'
class ReporterBaseProp(BaseProp):
TRANSFORMER = 'transformer'
|