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

Side by Side Diff: appengine/swarming/swarming_rpcs.py

Issue 2220373003: Allow botlist API call to respond to quarantined: and is_dead: (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: Change BotsRequest to have quarantined and is_dead 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 unified diff | Download patch
« no previous file with comments | « appengine/swarming/index.yaml ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The LUCI Authors. All rights reserved. 1 # Copyright 2015 The LUCI Authors. All rights reserved.
2 # Use of this source code is governed under the Apache License, Version 2.0 2 # Use of this source code is governed under the Apache License, Version 2.0
3 # that can be found in the LICENSE file. 3 # that can be found in the LICENSE file.
4 4
5 """This module defines ProtoRPC types for the Swarming Server handlers.""" 5 """This module defines ProtoRPC types for the Swarming Server handlers."""
6 6
7 from protorpc import message_types 7 from protorpc import message_types
8 from protorpc import messages 8 from protorpc import messages
9 9
10 10
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 ### Bot-Related Requests 301 ### Bot-Related Requests
302 302
303 303
304 class BotsRequest(messages.Message): 304 class BotsRequest(messages.Message):
305 """Information needed to request bot data.""" 305 """Information needed to request bot data."""
306 limit = messages.IntegerField(1, default=200) 306 limit = messages.IntegerField(1, default=200)
307 cursor = messages.StringField(2) 307 cursor = messages.StringField(2)
308 # Must be a list of 'key:value' strings to filter the returned list of bots 308 # Must be a list of 'key:value' strings to filter the returned list of bots
309 # on. 309 # on.
310 dimensions = messages.StringField(3, repeated=True) 310 dimensions = messages.StringField(3, repeated=True)
311 quarantined = messages.StringField(4, default='none')
M-A Ruel 2016/08/08 20:28:00 I was more thinking about tree-state-bool. Since t
kjlubick 2016/08/09 13:27:55 Done.
312 is_dead = messages.StringField(5, default='none')
311 313
312 314
313 class BotEventsRequest(messages.Message): 315 class BotEventsRequest(messages.Message):
314 """Request to get events for a bot.""" 316 """Request to get events for a bot."""
315 limit = messages.IntegerField(1, default=200) 317 limit = messages.IntegerField(1, default=200)
316 cursor = messages.StringField(2) 318 cursor = messages.StringField(2)
317 # These should be DateTimeField but endpoints + protorpc have trouble encoding 319 # These should be DateTimeField but endpoints + protorpc have trouble encoding
318 # this message in a GET request, this is due to DateTimeField's special 320 # this message in a GET request, this is due to DateTimeField's special
319 # encoding in protorpc-1.0/protorpc/message_types.py that is bypassed when 321 # encoding in protorpc-1.0/protorpc/message_types.py that is bypassed when
320 # using endpoints-1.0/endpoints/protojson.py to add GET query parameter 322 # using endpoints-1.0/endpoints/protojson.py to add GET query parameter
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 428
427 429
428 class DeletedResponse(messages.Message): 430 class DeletedResponse(messages.Message):
429 """Indicates whether a bot was deleted.""" 431 """Indicates whether a bot was deleted."""
430 deleted = messages.BooleanField(1) 432 deleted = messages.BooleanField(1)
431 433
432 434
433 class TerminateResponse(messages.Message): 435 class TerminateResponse(messages.Message):
434 """Returns the pseudo taskid to wait for the bot to shut down.""" 436 """Returns the pseudo taskid to wait for the bot to shut down."""
435 task_id = messages.StringField(1) 437 task_id = messages.StringField(1)
OLDNEW
« no previous file with comments | « appengine/swarming/index.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698