ソースを参照

RC monitor ready for testing.

pull/10/merge
Ben Kurtovic 8年前
コミット
bc16198c35
1個のファイルの変更7行の追加1行の削除
  1. +7
    -1
      commands/rc_monitor.py

+ 7
- 1
commands/rc_monitor.py ファイルの表示

@@ -94,19 +94,25 @@ class RCMonitor(Command):
def _prepare_reports(self):
"""Set up internal tables for storing report information."""
routine = 1
alert = 2
urgent = 3

self._levels = {
routine: "routine",
# ...
alert: "alert",
urgent: "URGENT"
}
self._issues = {
"random": routine,
"random2": urgent,
# ...
"g10": alert
}
self._descriptions = {
"random": "common random test",
"random2": "rare random test",
# ...
"g10": "CSD G10 nomination"
}

def _evaluate(self, event):


読み込み中…
キャンセル
保存