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

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

Issue 2249803003: Create Tasks.Tags endpoint and Cron job (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « appengine/swarming/server/task_result.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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 items = messages.MessageField(TaskRequest, 2, repeated=True) 295 items = messages.MessageField(TaskRequest, 2, repeated=True)
296 now = message_types.DateTimeField(3) 296 now = message_types.DateTimeField(3)
297 297
298 298
299 class TasksCount(messages.Message): 299 class TasksCount(messages.Message):
300 """Returns the count, as requested.""" 300 """Returns the count, as requested."""
301 count = messages.IntegerField(1) 301 count = messages.IntegerField(1)
302 now = message_types.DateTimeField(2) 302 now = message_types.DateTimeField(2)
303 303
304 304
305 class TasksTags(messages.Message):
306 """Returns all the tags and tag possibilities in the fleet."""
307 tasks_tags = messages.MessageField(StringListPair, 1, repeated=True)
308 # Time at which this summary was calculated.
309 ts = message_types.DateTimeField(2)
310
311
305 class TaskRequestMetadata(messages.Message): 312 class TaskRequestMetadata(messages.Message):
306 """Provides the ID of the requested TaskRequest.""" 313 """Provides the ID of the requested TaskRequest."""
307 request = messages.MessageField(TaskRequest, 1) 314 request = messages.MessageField(TaskRequest, 1)
308 task_id = messages.StringField(2) 315 task_id = messages.StringField(2)
309 # Set to finished task result in case task was deduplicated. 316 # Set to finished task result in case task was deduplicated.
310 task_result = messages.MessageField(TaskResult, 3) 317 task_result = messages.MessageField(TaskResult, 3)
311 318
312 319
313 ### Bots 320 ### Bots
314 321
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 457
451 458
452 class DeletedResponse(messages.Message): 459 class DeletedResponse(messages.Message):
453 """Indicates whether a bot was deleted.""" 460 """Indicates whether a bot was deleted."""
454 deleted = messages.BooleanField(1) 461 deleted = messages.BooleanField(1)
455 462
456 463
457 class TerminateResponse(messages.Message): 464 class TerminateResponse(messages.Message):
458 """Returns the pseudo taskid to wait for the bot to shut down.""" 465 """Returns the pseudo taskid to wait for the bot to shut down."""
459 task_id = messages.StringField(1) 466 task_id = messages.StringField(1)
OLDNEW
« no previous file with comments | « appengine/swarming/server/task_result.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698