예제 #1
0
 def find_by_id(id, customers=None):
     return Blackout.from_db(db.get_blackout(id, customers))
예제 #2
0
 def find_by_id(id: str, customers: List[str]=None) -> Optional['Blackout']:
     return Blackout.from_db(db.get_blackout(id, customers))
예제 #3
0
 def get(id, customer=None):
     return Blackout.from_db(db.get_blackout(id, customer))
예제 #4
0
파일: blackout.py 프로젝트: 3IWOH/alerta
 def find_by_id(id, customer=None):
     return Blackout.from_db(db.get_blackout(id, customer))
예제 #5
0
파일: blackout.py 프로젝트: guardian/alerta
 def find_by_id(id: str, customers: List[str]=None) -> Optional['Blackout']:
     return Blackout.from_db(db.get_blackout(id, customers))