Add gauge metrics for Functest reporting dashboard
[releng.git] / utils / test / reporting / functest / scenarioResult.py
1 #!/usr/bin/python
2 #
3 # This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9
10
11 class ScenarioResult(object):
12
13     def __init__(self, status, score=0, score_percent=0):
14         self.status = status
15         self.score = score
16         self.score_percent = score_percent
17
18     def getStatus(self):
19         return self.status
20
21     def getScore(self):
22         return self.score
23
24     def getScorePercent(self):
25         return self.score_percent