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

Unified Diff: appengine/swarming/server/task_result.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/swarming/handlers_test.py ('k') | appengine/swarming/swarming_rpcs.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/swarming/server/task_result.py
diff --git a/appengine/swarming/server/task_result.py b/appengine/swarming/server/task_result.py
index ee5352b59de4a12bc8dec21f743ea0c6cad2d350..b905db0cb14a90cdc7ef7c361d44232f105af5cd 100644
--- a/appengine/swarming/server/task_result.py
+++ b/appengine/swarming/server/task_result.py
@@ -849,6 +849,21 @@ class TaskResultSummary(_TaskResultCommon):
return out
+class TagValues(ndb.Model):
+ tag = ndb.StringProperty()
+ values = ndb.StringProperty(repeated=True)
+
+
+class TagAggregation(ndb.Model):
+ """Has all dimensions that are currently in use."""
+ tags = ndb.LocalStructuredProperty(TagValues, repeated=True)
+
+ ts = ndb.DateTimeProperty()
+
+ # We only store one of these entities. Use this key to refer to any instance.
+ KEY = ndb.Key('TagAggregation', 'current')
+
+
### Private stuff.
« no previous file with comments | « appengine/swarming/handlers_test.py ('k') | appengine/swarming/swarming_rpcs.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698