| OLD | NEW |
| (Empty) | |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 from google.appengine.ext import ndb |
| 6 |
| 7 |
| 8 class BaseTryJobData(ndb.Model): |
| 9 """Represents a tryjob's metadata.""" |
| 10 # When the try job completed. |
| 11 end_time = ndb.DateTimeProperty(indexed=True) |
| 12 |
| 13 # Error message and reason, if any. |
| 14 error = ndb.JsonProperty(indexed=False) |
| 15 |
| 16 # Error code if anything went wrong with the try job. |
| 17 error_code = ndb.IntegerProperty(indexed=True) |
| 18 |
| 19 # The last buildbucket build response received. |
| 20 last_buildbucket_response = ndb.JsonProperty(indexed=False, compressed=True) |
| 21 |
| 22 # When the try job was created. |
| 23 request_time = ndb.DateTimeProperty(indexed=True) |
| 24 |
| 25 # When the try job began executing. |
| 26 start_time = ndb.DateTimeProperty(indexed=True) |
| 27 |
| 28 # The url to the try job build page. |
| 29 try_job_url = ndb.StringProperty(indexed=False) |
| 30 |
| 31 # An ndb key to the try job entity this data is associated with. |
| 32 try_job_key = ndb.KeyProperty(indexed=False) |
| OLD | NEW |