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

Unified Diff: appengine/swarming/elements/res/imp/botlist/bot-list-demo.html

Issue 2204483002: Add UI to new botlist to show summary (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@bot-summary-api
Patch Set: Add docs Created 4 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/swarming/elements/res/imp/botlist/bot-list-demo.html
diff --git a/appengine/swarming/elements/res/imp/botlist/bot-list-demo.html b/appengine/swarming/elements/res/imp/botlist/bot-list-demo.html
index 4e69d6bbb97eadd14d1dafde1c2ac92506f797a3..d28aae209f41d35ee75504b3730e2130700a311e 100644
--- a/appengine/swarming/elements/res/imp/botlist/bot-list-demo.html
+++ b/appengine/swarming/elements/res/imp/botlist/bot-list-demo.html
@@ -35,6 +35,19 @@
server.respondWith("GET", "/_ah/api/swarming/v1/bots/list", respond);
server.respondWith("GET", "/api/swarming/v1/bots/list", respond);
+
+ var mockFleetSummary = {
+ "count": "2625",
+ "busy": "531",
+ "now": "2016-08-01T17:21:07.239940",
+ "dead": "22",
+ "quarantined": "15",
+ "kind": "swarming#botsItem",
+ "etag": "\"nhThK35uIVdvx1_Mr5DChu_DyBs/aO8fy5IdESDx-fy3If19oDKu0f0\""
+ };
+
+ server.respondWith("GET", "/_ah/api/swarming/v1/bots/count", JSON.stringify(mockFleetSummary));
+ server.respondWith("GET", "/api/swarming/v1/bots/count", JSON.stringify(mockFleetSummary));
</script>
<link rel="import" href="bot-list.html">

Powered by Google App Engine
This is Rietveld 408576698