You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spot.apache.org by na...@apache.org on 2018/01/10 03:41:09 UTC

[5/6] incubator-spot git commit: Update avro schema with field name and type changes

Update avro schema with field name and type changes

- bytes and flow packets fields have been updated to "long" types
- timestamp field names now conform better to naming convention styles used in other fields in the data model.


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

Branch: refs/heads/SPOT-181_ODM
Commit: 5c18a1df33dedaf2cc0d2bc2ebd0491a6c227014
Parents: ef7bc91
Author: Tadd Wood <ta...@arcadiadata.com>
Authored: Sat Dec 2 17:41:58 2017 -0800
Committer: Tadd Wood <ta...@arcadiadata.com>
Committed: Sat Dec 2 17:41:58 2017 -0800

----------------------------------------------------------------------
 spot-setup/odm/event.avsc | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/5c18a1df/spot-setup/odm/event.avsc
----------------------------------------------------------------------
diff --git a/spot-setup/odm/event.avsc b/spot-setup/odm/event.avsc
index 44c1513..00047e5 100644
--- a/spot-setup/odm/event.avsc
+++ b/spot-setup/odm/event.avsc
@@ -5,10 +5,10 @@
      "type": "record",
      "fields": [
         {"name":"event_time","type":["null","long"],"doc":"timestamp of event (UTC)", "default": null},
-        {"name":"begintime","type":["null","long"],"doc":"timestamp of event (UTC)", "default": null},
-        {"name":"endtime","type":["null","long"],"doc":"timestamp of event (UTC)", "default": null},
-        {"name":"event_insertime","type":["null","long"],"doc":"timestamp of event (UTC)", "default": null},
-        {"name":"lastupdatetime","type":["null","long"],"doc":"timestamp of event (UTC)", "default": null},
+        {"name":"begin_time","type":["null","long"],"doc":"timestamp of event (UTC)", "default": null},
+        {"name":"end_time","type":["null","long"],"doc":"timestamp of event (UTC)", "default": null},
+        {"name":"event_insert_time","type":["null","long"],"doc":"timestamp of event (UTC)", "default": null},
+        {"name":"last_update_time","type":["null","long"],"doc":"timestamp of event (UTC)", "default": null},
         {"name":"duration", "type":["null","float"],"doc":"Time duration (milliseconds)", "default": null},
         {"name":"event_id", "type":["null","string"],"doc":"Unique identifier for event", "default": null},
         {"name":"name", "type":["null","string"],"doc":"Name of event", "default": null},
@@ -26,8 +26,8 @@
         {"name":"query", "type":["null","string"],"doc":"Query (DNS query, URI query, SQL query, etc.)", "default": null},
         {"name":"service", "type":["null","string"],"doc":"(i.e. service name, type of service)", "default": null},
         {"name":"state", "type":["null","string"],"doc":"State of object", "default": null},
-        {"name":"in_bytes", "type":["null","int"],"doc":"Bytes in", "default": null},
-        {"name":"out_bytes", "type":["null","int"],"doc":"Bytes out", "default": null},
+        {"name":"in_bytes", "type":["null","long"],"doc":"Bytes in", "default": null},
+        {"name":"out_bytes", "type":["null","long"],"doc":"Bytes out", "default": null},
         {"name":"xref", "type":["null","string"],"doc":"External reference to public description", "default": null},
         {"name":"version", "type":["null","string"],"doc":"Version", "default": null},
         {"name":"api", "type":["null","string"],"doc":"API label", "default": null},
@@ -221,8 +221,8 @@
         {"name":"irc_command", "type":["null","string"],"doc":"TBD", "default": null},
         {"name":"irc_value", "type":["null","string"],"doc":"TBD", "default": null},
         {"name":"irc_additional_data", "type":["null","string"],"doc":"TBD", "default": null},
-        {"name":"flow_in_packets", "type":["null","int"],"doc":"TBD", "default": null},
-        {"name":"flow_out_packets", "type":["null","int"],"doc":"TBD", "default": null},
+        {"name":"flow_in_packets", "type":["null","long"],"doc":"TBD", "default": null},
+        {"name":"flow_out_packets", "type":["null","long"],"doc":"TBD", "default": null},
         {"name":"flow_conn_state", "type":["null","string"],"doc":"TBD", "default": null},
         {"name":"flow_history", "type":["null","string"],"doc":"TBD", "default": null},
         {"name":"flow_src_dscp", "type":["null","string"],"doc":"TBD", "default": null},