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

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

Issue 2402543002: Create a BotEvent when a bot is leased from Machine Provider (Closed)
Patch Set: Fix tests Created 4 years, 2 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/server/lease_management.py ('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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 authenticated_as = messages.StringField(4) 446 authenticated_as = messages.StringField(4)
447 first_seen_ts = message_types.DateTimeField(5) 447 first_seen_ts = message_types.DateTimeField(5)
448 is_dead = messages.BooleanField(6) 448 is_dead = messages.BooleanField(6)
449 last_seen_ts = message_types.DateTimeField(7) 449 last_seen_ts = message_types.DateTimeField(7)
450 quarantined = messages.BooleanField(8) 450 quarantined = messages.BooleanField(8)
451 task_id = messages.StringField(9) 451 task_id = messages.StringField(9)
452 task_name = messages.StringField(10) 452 task_name = messages.StringField(10)
453 version = messages.StringField(11) 453 version = messages.StringField(11)
454 # Encoded as json since it's an arbitrary dict. 454 # Encoded as json since it's an arbitrary dict.
455 state = messages.StringField(12) 455 state = messages.StringField(12)
456 lease_id = messages.StringField(13)
457 lease_expiration_ts = message_types.DateTimeField(14)
456 458
457 459
458 class BotList(messages.Message): 460 class BotList(messages.Message):
459 """Wraps a list of BotInfo.""" 461 """Wraps a list of BotInfo."""
460 cursor = messages.StringField(1) 462 cursor = messages.StringField(1)
461 items = messages.MessageField(BotInfo, 2, repeated=True) 463 items = messages.MessageField(BotInfo, 2, repeated=True)
462 now = message_types.DateTimeField(3) 464 now = message_types.DateTimeField(3)
463 death_timeout = messages.IntegerField(4) 465 death_timeout = messages.IntegerField(4)
464 466
465 467
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 517
516 518
517 class DeletedResponse(messages.Message): 519 class DeletedResponse(messages.Message):
518 """Indicates whether a bot was deleted.""" 520 """Indicates whether a bot was deleted."""
519 deleted = messages.BooleanField(1) 521 deleted = messages.BooleanField(1)
520 522
521 523
522 class TerminateResponse(messages.Message): 524 class TerminateResponse(messages.Message):
523 """Returns the pseudo taskid to wait for the bot to shut down.""" 525 """Returns the pseudo taskid to wait for the bot to shut down."""
524 task_id = messages.StringField(1) 526 task_id = messages.StringField(1)
OLDNEW
« no previous file with comments | « appengine/swarming/server/lease_management.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698