Merge "Reporting docker deployment improvement"
[releng.git] / utils / test / reporting / reporting / utils / 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     def __init__(self, status, four_days_score='', ten_days_score='',
13                  score_percent=0.0, last_url=''):
14         self.status = status
15         self.four_days_score = four_days_score
16         self.ten_days_score = ten_days_score
17         self.score_percent = score_percent
18         self.last_url = last_url
19
20     def getStatus(self):
21         return self.status
22
23     def getTenDaysScore(self):
24         return self.ten_days_score
25
26     def getFourDaysScore(self):
27         return self.four_days_score
28
29     def getScorePercent(self):
30         return self.score_percent
31
32     def getLastUrl(self):
33         return self.last_url