spot-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From everl...@apache.org
Subject [02/50] [abbrv] incubator-spot git commit: Adding date and time to GraphQL NetflowScoredConnectionType
Date Wed, 29 Mar 2017 16:51:26 GMT
Adding date and time to GraphQL NetflowScoredConnectionType


Project: http://git-wip-us.apache.org/repos/asf/incubator-spot/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spot/commit/c676feb0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spot/tree/c676feb0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spot/diff/c676feb0

Branch: refs/heads/SPOT-35_graphql_api
Commit: c676feb08a159607431eb9b71d48b113a7dea85c
Parents: ed90fd8
Author: Diego Ortiz <diego.ortiz.huerta@intel.com>
Authored: Fri Mar 3 11:51:49 2017 -0600
Committer: Diego Ortiz Huerta <diego.ortiz.huerta@intel.com>
Committed: Wed Mar 15 11:48:56 2017 -0700

----------------------------------------------------------------------
 spot-oa/api/graphql/flow/query.py | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/c676feb0/spot-oa/api/graphql/flow/query.py
----------------------------------------------------------------------
diff --git a/spot-oa/api/graphql/flow/query.py b/spot-oa/api/graphql/flow/query.py
index 4fc8899..91395ee 100644
--- a/spot-oa/api/graphql/flow/query.py
+++ b/spot-oa/api/graphql/flow/query.py
@@ -191,6 +191,10 @@ IpConnectionDetailsType = GraphQLObjectType(
 ScoredConnectionType = GraphQLObjectType(
     name='NetflowScoredConnectionType',
     fields={
+        'tstart': GraphQLField(
+            type=SpotDatetimeType,
+            resolver=lambda root, *_: root.get('tstart')
+        ),
         'srcIp': GraphQLField(
             type=SpotIpType,
             description='Source Ip',


Mime
View raw message