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

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

Issue 2212073002: Add endpoint and cron job to aggregate all dimensions and values (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: Address more comments 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
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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 376
377 class BotsCount(messages.Message): 377 class BotsCount(messages.Message):
378 """Returns the count, as requested.""" 378 """Returns the count, as requested."""
379 now = message_types.DateTimeField(1) 379 now = message_types.DateTimeField(1)
380 count = messages.IntegerField(2) 380 count = messages.IntegerField(2)
381 quarantined = messages.IntegerField(3) 381 quarantined = messages.IntegerField(3)
382 dead = messages.IntegerField(4) 382 dead = messages.IntegerField(4)
383 busy = messages.IntegerField(5) 383 busy = messages.IntegerField(5)
384 384
385 385
386 class BotsDimensions(messages.Message):
387 """Returns all the dimensions and dimension possibilities in the fleet."""
388 bots_dimensions = messages.MessageField(StringListPair, 1, repeated=True)
389 # Time at which this summary was calculated.
390 ts = message_types.DateTimeField(2)
391
392
386 class BotEvent(messages.Message): 393 class BotEvent(messages.Message):
387 # Timestamp of this event. 394 # Timestamp of this event.
388 ts = message_types.DateTimeField(1) 395 ts = message_types.DateTimeField(1)
389 # Type of event. 396 # Type of event.
390 event_type = messages.StringField(2) 397 event_type = messages.StringField(2)
391 # Message included in the event. 398 # Message included in the event.
392 message = messages.StringField(3) 399 message = messages.StringField(3)
393 # Bot dimensions at that moment. 400 # Bot dimensions at that moment.
394 dimensions = messages.MessageField(StringListPair, 4, repeated=True) 401 dimensions = messages.MessageField(StringListPair, 4, repeated=True)
395 # Bot state at that moment, encoded as json. 402 # Bot state at that moment, encoded as json.
(...skipping 23 matching lines...) Expand all
419 426
420 427
421 class DeletedResponse(messages.Message): 428 class DeletedResponse(messages.Message):
422 """Indicates whether a bot was deleted.""" 429 """Indicates whether a bot was deleted."""
423 deleted = messages.BooleanField(1) 430 deleted = messages.BooleanField(1)
424 431
425 432
426 class TerminateResponse(messages.Message): 433 class TerminateResponse(messages.Message):
427 """Returns the pseudo taskid to wait for the bot to shut down.""" 434 """Returns the pseudo taskid to wait for the bot to shut down."""
428 task_id = messages.StringField(1) 435 task_id = messages.StringField(1)
OLDNEW
« appengine/swarming/handlers_test.py ('K') | « appengine/swarming/server/bot_management.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698