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

Side by Side Diff: appengine_apps/trooper_o_matic/lib/cqstats-util.html

Issue 774323002: Moved trooper_o_matic to appengine/ (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 6 years 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!--
2 Copyright (c) 2014 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file.
5 -->
6
7 <link rel="import" href="../lib/sugar.html">
8
9 <script>
10 var cqStatsUtil = cqStatsUtil || {};
11
12 (function() {
13 var cqLogHost = 'https://chromium-cq-status.appspot.com';
14
15 cqStatsUtil.loadStats = function(project, intervalMinutes, names, count) {
16 var url = '{1}/stats/query?{2}'.assign(cqLogHost, Object.toQueryString({
17 project: project,
18 interval_minutes: intervalMinutes,
19 names: names.join(','),
20 count: count,
21 }));
22 return net.json({url: url}).then(function(json) {
23 return json.results.reverse();
24 });
25 };
26
27 cqStatsUtil.loadStatItems = function(statName, cqStatsKey) {
28 var url = '{1}/stats/highest/{2}/{3}'.assign(cqLogHost, statName, cqStatsKey);
29 return net.json({url: url, cache: true});
30 };
31
32 cqStatsUtil.namedStat = function(name, cqStats) {
33 return cqStats.stats.find(function(stat) {
34 return stat.name === name;
35 });
36 };
37 })();
38 </script>
OLDNEW
« no previous file with comments | « appengine_apps/trooper_o_matic/karma.conf.js ('k') | appengine_apps/trooper_o_matic/lib/dygraph.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698