Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(324)

Unified Diff: appengine/sheriff_o_matic/internal_alerts.py

Issue 1260293009: make version of ts_mon compatible with appengine (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: set correct metric and target fields Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: appengine/sheriff_o_matic/internal_alerts.py
diff --git a/appengine/sheriff_o_matic/internal_alerts.py b/appengine/sheriff_o_matic/internal_alerts.py
index 3caeeade973f99cb723f4913960d6bdb8697545d..e011a55f2076586a24f97795371837be9d04bc9d 100644
--- a/appengine/sheriff_o_matic/internal_alerts.py
+++ b/appengine/sheriff_o_matic/internal_alerts.py
@@ -4,6 +4,7 @@
import datetime
import alerts
+import utils
import webapp2
from google.appengine.api import users
@@ -19,6 +20,7 @@ class InternalAlertsHandler(alerts.AlertsHandler):
def get(self):
# Require users to be logged to see builder alerts from private/internal
# trees.
+ utils.increment_monarch('internal-alerts')
user = users.get_current_user()
if not user:
ret = {}

Powered by Google App Engine
This is Rietveld 408576698