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 1925343002: swarming: IsolatedOperation -> OperationStats (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: update comment Created 4 years, 7 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_scheduler_test.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 by the Apache v2.0 license that can be 2 # Use of this source code is governed by the Apache v2.0 license that can be
3 # found in the LICENSE file. 3 # 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 # support. 167 # support.
168 end = messages.FloatField(3) 168 end = messages.FloatField(3)
169 start = messages.FloatField(4) 169 start = messages.FloatField(4)
170 state = messages.EnumField(TaskState, 5, default='ALL') 170 state = messages.EnumField(TaskState, 5, default='ALL')
171 tags = messages.StringField(6, repeated=True) 171 tags = messages.StringField(6, repeated=True)
172 172
173 173
174 ### Task-Related Responses 174 ### Task-Related Responses
175 175
176 176
177 class IsolatedOperation(messages.Message): 177 class OperationStats(messages.Message):
178 duration = messages.FloatField(1) 178 duration = messages.FloatField(1)
179 initial_number_items = messages.IntegerField(2) 179 initial_number_items = messages.IntegerField(2)
180 initial_size = messages.IntegerField(3) 180 initial_size = messages.IntegerField(3)
181 # These buffers are compressed as deflate'd delta-encoded varints. They are 181 # These buffers are compressed as deflate'd delta-encoded varints. They are
182 # all the items for an isolated operation, which can scale in the 100k range. 182 # all the items for an isolated operation, which can scale in the 100k range.
183 # So can be large! See //client/utils/large.py for the code to handle these. 183 # So can be large! See //client/utils/large.py for the code to handle these.
184 items_cold = messages.BytesField(4) 184 items_cold = messages.BytesField(4)
185 items_hot = messages.BytesField(5) 185 items_hot = messages.BytesField(5)
186 186
187 187
188 class PerformanceStats(messages.Message): 188 class PerformanceStats(messages.Message):
189 bot_overhead = messages.FloatField(1) 189 bot_overhead = messages.FloatField(1)
190 isolated_download = messages.MessageField(IsolatedOperation, 2) 190 isolated_download = messages.MessageField(OperationStats, 2)
191 isolated_upload = messages.MessageField(IsolatedOperation, 3) 191 isolated_upload = messages.MessageField(OperationStats, 3)
192 192
193 193
194 class CancelResponse(messages.Message): 194 class CancelResponse(messages.Message):
195 """Result of a request to cancel a task.""" 195 """Result of a request to cancel a task."""
196 ok = messages.BooleanField(1) 196 ok = messages.BooleanField(1)
197 was_running = messages.BooleanField(2) 197 was_running = messages.BooleanField(2)
198 198
199 199
200 class TaskOutput(messages.Message): 200 class TaskOutput(messages.Message):
201 """A task's output as a string.""" 201 """A task's output as a string."""
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 379
380 380
381 class DeletedResponse(messages.Message): 381 class DeletedResponse(messages.Message):
382 """Indicates whether a bot was deleted.""" 382 """Indicates whether a bot was deleted."""
383 deleted = messages.BooleanField(1) 383 deleted = messages.BooleanField(1)
384 384
385 385
386 class TerminateResponse(messages.Message): 386 class TerminateResponse(messages.Message):
387 """Returns the pseudo taskid to wait for the bot to shut down.""" 387 """Returns the pseudo taskid to wait for the bot to shut down."""
388 task_id = messages.StringField(1) 388 task_id = messages.StringField(1)
OLDNEW
« no previous file with comments | « appengine/swarming/server/task_scheduler_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698