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

Unified Diff: appengine_apps/trooper_o_matic/model/cq-graph.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine_apps/trooper_o_matic/makefile ('k') | appengine_apps/trooper_o_matic/model/cq-graph-item.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine_apps/trooper_o_matic/model/cq-graph.html
diff --git a/appengine_apps/trooper_o_matic/model/cq-graph.html b/appengine_apps/trooper_o_matic/model/cq-graph.html
deleted file mode 100644
index f022c96aab535515ed8c8fd5cf9cff924eb3d554..0000000000000000000000000000000000000000
--- a/appengine_apps/trooper_o_matic/model/cq-graph.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!--
-Copyright 2014 The Chromium Authors. All rights reserved.
-Use of this source code is governed by a BSD-style license that can be
-found in the LICENSE file.
--->
-
-<script>
-function CQGraph(heading, unit, itemUnit, data, alerts, itemAlertThreshold) {
- this.heading = heading;
- this.unit = unit;
- this.itemUnit = itemUnit;
- this.data = data;
- this.alerts = alerts || {};
- this.itemAlertThreshold =
- itemAlertThreshold !== undefined ? itemAlertThreshold : Infinity;
-}
-
-CQGraph.prototype.breachedItems = function(col, threshold) {
- return this.data.get().then(function(data) {
- var colIndex = data.cols.indexOf(col);
- var items = [];
- data.rows.forEach(function(row, i) {
- if (row[colIndex] >= threshold) {
- items.push({
- timestamp: row[0],
- value: row[colIndex],
- index: i,
- });
- }
- });
- return items;
- });
-};
-</script>
« no previous file with comments | « appengine_apps/trooper_o_matic/makefile ('k') | appengine_apps/trooper_o_matic/model/cq-graph-item.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698