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

Unified Diff: appengine/swarming/swarming_rpcs.py

Issue 2198063002: Add bots.count endpoint (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: Add dead, quarantined, busy Created 4 years, 5 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/swarming_rpcs.py
diff --git a/appengine/swarming/swarming_rpcs.py b/appengine/swarming/swarming_rpcs.py
index 7bca1a0074aacfb61e91f64c5c41e4769e14463c..f303b80250ef85a797dd4e656356a1250718dcaf 100644
--- a/appengine/swarming/swarming_rpcs.py
+++ b/appengine/swarming/swarming_rpcs.py
@@ -374,6 +374,15 @@ class BotList(messages.Message):
death_timeout = messages.IntegerField(4)
+class BotsCount(messages.Message):
+ """Returns the count, as requested."""
+ count = messages.IntegerField(1)
+ now = message_types.DateTimeField(2)
M-A Ruel 2016/08/01 18:27:19 make it the first, otherwise it's kind of odd orde
kjlubick 2016/08/01 19:15:20 Done.
+ quarantined = messages.IntegerField(3)
+ dead = messages.IntegerField(4)
+ busy = messages.IntegerField(5)
+
+
class BotEvent(messages.Message):
# Timestamp of this event.
ts = message_types.DateTimeField(1)
« appengine/swarming/handlers_endpoints.py ('K') | « appengine/swarming/handlers_endpoints_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698