|
@@ -94,19 +94,25 @@ class RCMonitor(Command): |
|
|
def _prepare_reports(self): |
|
|
def _prepare_reports(self): |
|
|
"""Set up internal tables for storing report information.""" |
|
|
"""Set up internal tables for storing report information.""" |
|
|
routine = 1 |
|
|
routine = 1 |
|
|
|
|
|
alert = 2 |
|
|
urgent = 3 |
|
|
urgent = 3 |
|
|
|
|
|
|
|
|
self._levels = { |
|
|
self._levels = { |
|
|
routine: "routine", |
|
|
routine: "routine", |
|
|
# ... |
|
|
|
|
|
|
|
|
alert: "alert", |
|
|
|
|
|
urgent: "URGENT" |
|
|
} |
|
|
} |
|
|
self._issues = { |
|
|
self._issues = { |
|
|
"random": routine, |
|
|
"random": routine, |
|
|
"random2": urgent, |
|
|
"random2": urgent, |
|
|
# ... |
|
|
# ... |
|
|
|
|
|
"g10": alert |
|
|
} |
|
|
} |
|
|
self._descriptions = { |
|
|
self._descriptions = { |
|
|
|
|
|
"random": "common random test", |
|
|
|
|
|
"random2": "rare random test", |
|
|
# ... |
|
|
# ... |
|
|
|
|
|
"g10": "CSD G10 nomination" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
def _evaluate(self, event): |
|
|
def _evaluate(self, event): |
|
|