Home
last modified time | relevance | path

Searched refs:ndb (Results 1 – 25 of 92) sorted by relevance

1234

/external/chromium-trace/catapult/perf_insights/perf_insights/
Dtrace_info.py5 from google.appengine.ext import ndb
8 class TraceInfo(ndb.Model):
9 config = ndb.StringProperty(indexed=True)
10 date = ndb.DateTimeProperty(auto_now_add=True, indexed=True)
11 network_type = ndb.StringProperty(indexed=True, default=None)
12 prod = ndb.StringProperty(indexed=True)
13 remote_addr = ndb.StringProperty(indexed=True)
14 tags = ndb.StringProperty(indexed=True, repeated=True)
15 user_agent = ndb.StringProperty(indexed=True, default=None)
16 ver = ndb.StringProperty(indexed=True)
[all …]
Dcloud_config.py8 from google.appengine.ext import ndb
32 class CloudConfig(ndb.Model):
33 control_bucket_path = ndb.StringProperty(default=_DEFAULT_CONTROL_BUCKET_PATH)
35 default_corpus = ndb.StringProperty(
38 urlfetch_service_id = ndb.StringProperty(default='')
39 gce_project_name = ndb.StringProperty(
41 gce_source_disk_image = ndb.StringProperty(default=_DEFAULT_SOURCE_DISK_IMAGE)
42 gce_zone = ndb.StringProperty(default=_GCE_DEFAULT_ZONE)
43 gce_machine_type = ndb.StringProperty(default=_GCE_DEFAULT_MACHINE_TYPE)
44 trace_upload_bucket = ndb.StringProperty(
[all …]
/external/chromium-trace/catapult/perf_insights/perf_insights/endpoints/cloud_mapper/
Djob_info.py5 from google.appengine.ext import ndb
8 class JobInfo(ndb.Model):
9 date = ndb.DateTimeProperty(auto_now_add=True, indexed=True)
10 status = ndb.StringProperty(indexed=True)
11 remote_addr = ndb.StringProperty(indexed=True)
13 mapper = ndb.TextProperty()
14 reducer = ndb.TextProperty()
15 mapper_function = ndb.StringProperty(indexed=True)
16 reducer_function = ndb.StringProperty(indexed=True)
17 query = ndb.StringProperty(indexed=True)
[all …]
Dgce_creation_info.py5 from google.appengine.ext import ndb
8 class GCECreationInfo(ndb.Model):
9 source_disk_image = ndb.StringProperty(indexed=True)
10 machine_type = ndb.StringProperty(indexed=True)
11 zone = ndb.StringProperty(indexed=True)
/external/chromium-trace/catapult/dashboard/dashboard/models/
Dgraph_data.py60 from google.appengine.ext import ndb
97 internal_only = ndb.BooleanProperty(default=False, indexed=True)
117 internal_only = ndb.BooleanProperty(default=False, indexed=True)
121 sheriff = ndb.KeyProperty(kind=sheriff_module.Sheriff, indexed=True)
125 overridden_anomaly_config = ndb.KeyProperty(
130 improvement_direction = ndb.IntegerProperty(
141 units = ndb.StringProperty(indexed=False)
144 last_alerted_revision = ndb.IntegerProperty(indexed=False)
147 has_rows = ndb.BooleanProperty(default=False, indexed=True)
151 stoppage_alert = ndb.KeyProperty(
[all …]
Dtry_job.py16 from google.appengine.ext import ndb
25 bot = ndb.StringProperty()
26 config = ndb.TextProperty()
27 bug_id = ndb.IntegerProperty()
28 email = ndb.StringProperty()
29 rietveld_issue_id = ndb.IntegerProperty()
30 rietveld_patchset_id = ndb.IntegerProperty()
31 master_name = ndb.StringProperty(default='ChromiumPerf', indexed=False)
32 buildbucket_job_id = ndb.StringProperty()
33 use_buildbucket = ndb.BooleanProperty(default=False, indexed=True)
[all …]
Danomaly.py9 from google.appengine.ext import ndb
29 segment_size_before = ndb.IntegerProperty(indexed=False)
30 segment_size_after = ndb.IntegerProperty(indexed=False)
33 median_before_anomaly = ndb.FloatProperty(indexed=False)
34 median_after_anomaly = ndb.FloatProperty(indexed=False)
37 std_dev_before_anomaly = ndb.FloatProperty(indexed=False)
41 window_end_revision = ndb.IntegerProperty(indexed=False)
46 t_statistic = ndb.FloatProperty(indexed=False)
47 degrees_of_freedom = ndb.FloatProperty(indexed=False)
48 p_value = ndb.FloatProperty(indexed=False)
[all …]
Dstoppage_alert.py9 from google.appengine.ext import ndb
31 mail_sent = ndb.BooleanProperty(indexed=True, default=False)
34 recovered = ndb.BooleanProperty(indexed=True, default=False)
40 @ndb.ComputedProperty
44 @ndb.ComputedProperty
48 @ndb.ComputedProperty
51 return ndb.Key('Row', self.revision, parent=test_container)
53 @ndb.ComputedProperty
57 @ndb.ComputedProperty
61 @ndb.ComputedProperty
[all …]
Dalert.py7 from google.appengine.ext import ndb
17 internal_only = ndb.BooleanProperty(indexed=True, default=False)
20 timestamp = ndb.DateTimeProperty(indexed=True, auto_now_add=True)
24 bug_id = ndb.IntegerProperty(indexed=True)
27 sheriff = ndb.KeyProperty(kind=sheriff_module.Sheriff, indexed=True)
30 test = ndb.KeyProperty(indexed=True)
34 start_revision = ndb.IntegerProperty(indexed=True)
35 end_revision = ndb.IntegerProperty(indexed=True)
41 group = ndb.KeyProperty(indexed=True)
Dsheriff.py10 from google.appengine.ext import ndb
60 url = ndb.StringProperty(validator=_UrlValidator, indexed=False)
61 email = ndb.StringProperty(validator=_EmailValidator, indexed=False)
63 internal_only = ndb.BooleanProperty(indexed=True)
64 summarize = ndb.BooleanProperty(indexed=True, default=False)
69 patterns = ndb.StringProperty(repeated=True, indexed=False)
76 stoppage_alert_delay = ndb.IntegerProperty(default=-1, indexed=True)
Dbug_data.py9 from google.appengine.ext import ndb
21 class Bug(ndb.Model):
26 status = ndb.StringProperty(
37 latest_bisect_status = ndb.StringProperty(
47 timestamp = ndb.DateTimeProperty(indexed=True, auto_now_add=True)
54 bug = ndb.Key('Bug', int(bug_id)).get()
Dalert_group.py9 from google.appengine.ext import ndb
18 class AlertGroup(ndb.Model):
22 bug_id = ndb.IntegerProperty(indexed=True)
25 start_revision = ndb.IntegerProperty(indexed=True)
28 end_revision = ndb.IntegerProperty(indexed=False)
31 test_suites = ndb.StringProperty(repeated=True, indexed=False)
34 alert_kind = ndb.StringProperty(indexed=False)
Danomaly_config.py9 from google.appengine.ext import ndb
23 class AnomalyConfig(ndb.Model):
30 config = ndb.JsonProperty(required=True, indexed=False)
36 patterns = ndb.StringProperty(repeated=True, indexed=False)
/external/chromium-trace/catapult/dashboard/dashboard/
Dlayered_cache.py38 from google.appengine.ext import ndb
55 class CachedPickledString(ndb.Model):
56 value = ndb.BlobProperty()
57 expire_time = ndb.DateTimeProperty()
90 to_get.append(ndb.Key('CachedPickledString',
92 to_get.append(ndb.Key('CachedPickledString',
94 ndb.get_multi_async(to_get)
100 entity = ndb.Key('CachedPickledString', namespaced_key).get(
101 read_policy=ndb.EVENTUAL_CONSISTENCY)
110 entity = ndb.Key('CachedPickledString', namespaced_key).get(
[all …]
Dstored_object.py29 from google.appengine.ext import ndb
66 entity = ndb.Key(MultipartEntity, key).get()
76 ndb.Key(MultipartEntity, key).delete()
80 class MultipartEntity(ndb.Model):
84 size = ndb.IntegerProperty(default=0, indexed=False)
94 part_keys = [ndb.Key(MultipartEntity, string_id, PartEntity, i + 1)
96 part_entities = ndb.get_multi(part_keys)
104 ndb.delete_multi(part_keys)
119 ndb.put_multi(part_list + [self])
128 class PartEntity(ndb.Model):
[all …]
Dquick_logger.py27 from google.appengine.ext import ndb
62 ndb.Key('QuickLog', namespaced_key).delete()
68 key = ndb.Key('QuickLog', namespaced_key)
80 class QuickLog(ndb.Model):
84 namespace = ndb.StringProperty(indexed=True)
87 timestamp = ndb.DateTimeProperty(indexed=True, auto_now_add=True)
90 size = ndb.IntegerProperty(default=0)
107 log_part_keys = [ndb.Key('QuickLog', string_id, 'QuickLogPart', i + 1)
109 log_parts = ndb.get_multi(log_part_keys)
142 ndb.put_multi(log_parts + [self])
[all …]
Ddatastore_hooks_test.py7 from google.appengine.ext import ndb
53 internal_bot = ndb.Key(*internal_key).get()
56 internal_test = ndb.Key(*(external_key + internal_test_key)).get()
59 internal_test = ndb.Key(*(internal_key + internal_test_key)).get()
62 internal_sub_test = ndb.Key(*(
66 internal_sub_test = ndb.Key(*(
72 external_key = ndb.Key(
125 tests = graph_data.Test.query(ancestor=ndb.Key(
138 rows = graph_data.Row.query(ndb.OR(
187 m = ndb.Key('Master', 'ChromiumPerf').get()
[all …]
Dlayered_cache_test.py12 from google.appengine.ext import ndb
37 ndb.Key('CachedPickledString', 'internal_only__str').get().value))
39 ndb.Key('CachedPickledString', 'externally_visible__str').get())
47 ndb.Key('CachedPickledString', 'internal_only__dict').get().value))
49 ndb.Key('CachedPickledString', 'externally_visible__dict').get())
60 ndb.Key('CachedPickledString',
64 ndb.Key('CachedPickledString', 'internal_only__str').get())
69 ndb.Key('CachedPickledString',
73 ndb.Key('CachedPickledString', 'internal_only__dict').get())
90 key_internal = ndb.Key('CachedPickledString', 'internal_only__str1')
[all …]
Dput_entities_task.py16 from google.appengine.ext import ndb
28 keys = [ndb.Key(urlsafe=k) for k in urlsafe_keys]
29 entities = ndb.get_multi(keys)
30 ndb.put_multi(entities)
Dstats.py20 from google.appengine.ext import ndb
38 class StatContainer(ndb.Model):
41 stat_type = ndb.StringProperty()
43 summary = ndb.JsonProperty()
45 num_stats = ndb.IntegerProperty()
47 timestamp = ndb.DateTimeProperty(auto_now_add=True, indexed=True)
50 class IndividualStat(ndb.Model):
54 details = ndb.JsonProperty()
76 container = ndb.Key(urlsafe=key).get()
106 master = ndb.Key('Master', 'ChromiumPerf')
[all …]
Dedit_anomalies.py10 from google.appengine.ext import ndb
52 keys = [ndb.Key(urlsafe=k) for k in urlsafe_keys.split(',')]
53 alert_entities = ndb.get_multi(keys)
82 ndb.put_multi(alert_entities)
98 ndb.put_multi(anomaly_entities)
/external/chromium-trace/catapult/perf_insights/third_party/cloudstorage/
Drest_api.py30 from google.appengine.ext import ndb
33 from google.appengine.ext import ndb
80 class _AE_TokenStorage_(ndb.Model):
83 token = ndb.StringProperty()
84 expires = ndb.FloatProperty()
87 @ndb.tasklet
102 raise ndb.Return((token, expires_at))
158 @ndb.tasklet
189 raise ndb.Return((resp.status_code, resp.headers, resp.content))
191 @ndb.tasklet
[all …]
Dapi_utils.py37 from google.appengine.ext import ndb
38 from google.appengine.ext.ndb import eventloop
39 from google.appengine.ext.ndb import tasklets
40 from google.appengine.ext.ndb import utils
49 from google.appengine.ext import ndb
50 from google.appengine.ext.ndb import eventloop
51 from google.appengine.ext.ndb import tasklets
52 from google.appengine.ext.ndb import utils
134 @ndb.tasklet
164 raise ndb.Return(result)
[all …]
/external/chromium-trace/catapult/third_party/mapreduce/mapreduce/
Dcontext.py40 from google.appengine.ext import ndb
42 ndb = None variable
73 if ndb is not None and isinstance(value, ndb.Model):
82 if ndb is not None and isinstance(value, (ndb.Model, ndb.Key)):
262 assert ndb is not None and isinstance(entity, ndb.Model)
278 if ndb is not None and isinstance(entity_or_key, ndb.Model):
325 assert ndb is not None
326 ndb.put_multi(items, config=self._create_config(options))
330 assert ndb is not None
331 ndb.delete_multi(items, config=self._create_config(options))
/external/chromium-trace/catapult/dashboard/docs/
Dcode-snippets.md14 from google.appengine.ext import ndb
18 sheriff = ndb.Key('Sheriff', 'Chromium Perf Sheriff')
78 from google.appengine.ext import ndb
93 from google.appengine.ext import ndb
95 key = ndb.Key('Sheriff', 'Sheriff name')
105 from google.appengine.ext import ndb
114 to_delete.append(ndb.Key('LastAddedRevision', utils.TestPath(test_key)))
116 ndb.delete_multi(to_delete)
122 from google.appengine.ext import ndb
131 to_delete.append(ndb.Key('TestContainer', path, 'Row', id))
[all …]

1234