Lines Matching refs:alerts
115 alerts = ndb.get_multi(alert_keys)
120 milestone_label = _MilestoneLabel(alerts)
142 for alert_entity in alerts:
144 ndb.put_multi(alerts)
146 comment_body = _AdditionalDetails(bug_id, alerts)
159 def _AdditionalDetails(bug_id, alerts): argument
163 alerts_url = '%s?keys=%s' % (base_url, _UrlsafeKeys(alerts))
166 bot_names = alert.GetBotNamesFromAlerts(alerts)
179 def _UrlsafeKeys(alerts): argument
180 return ','.join(a.key.urlsafe() for a in alerts)
187 alerts = ndb.get_multi(alert_keys)
188 if any(a.internal_only for a in alerts):
193 for test in {a.test for a in alerts}:
203 def _MilestoneLabel(alerts): argument
205 revisions = [a.start_revision for a in alerts if hasattr(a, 'start_revision')]