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

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: Address nits 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
« no previous file with comments | « appengine/swarming/handlers_endpoints_test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/swarming/swarming_rpcs.py
diff --git a/appengine/swarming/swarming_rpcs.py b/appengine/swarming/swarming_rpcs.py
index 7bca1a0074aacfb61e91f64c5c41e4769e14463c..9f3c667e6e1863676273d594f02abe9f07d722ed 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."""
+ now = message_types.DateTimeField(1)
+ count = messages.IntegerField(2)
+ 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)
« no previous file with comments | « appengine/swarming/handlers_endpoints_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698