From d823ee5f8fb90b4e8f96dd7ab25341fe5159db12 Mon Sep 17 00:00:00 2001 From: Nikhil Sinha <131262146+nikhilsinhaparseable@users.noreply.github.com> Date: Sun, 27 Oct 2024 19:15:59 +0530 Subject: [PATCH] shema update for smoke load (#80) --- model.go | 72 ++++++++++++++++++++++++++++++++------------------------ 1 file changed, 41 insertions(+), 31 deletions(-) diff --git a/model.go b/model.go index 30aaacb..19134e6 100644 --- a/model.go +++ b/model.go @@ -437,23 +437,23 @@ const FlogJsonSchema string = `{ const SchemaBody string = `{ "fields": [ { - "name": "device_id", - "data_type": "Int64", + "name": "app_meta", + "data_type": "Utf8", "nullable": true, "dict_id": 0, "dict_is_ordered": false, "metadata": {} }, { - "name": "host", - "data_type": "Utf8", + "name": "device_id", + "data_type": "Int64", "nullable": true, "dict_id": 0, "dict_is_ordered": false, "metadata": {} }, { - "name": "level", + "name": "host", "data_type": "Utf8", "nullable": true, "dict_id": 0, @@ -461,7 +461,7 @@ const SchemaBody string = `{ "metadata": {} }, { - "name": "message", + "name": "level", "data_type": "Utf8", "nullable": true, "dict_id": 0, @@ -469,7 +469,7 @@ const SchemaBody string = `{ "metadata": {} }, { - "name": "os", + "name": "location", "data_type": "Utf8", "nullable": true, "dict_id": 0, @@ -477,7 +477,7 @@ const SchemaBody string = `{ "metadata": {} }, { - "name": "p_metadata", + "name": "message", "data_type": "Utf8", "nullable": true, "dict_id": 0, @@ -485,7 +485,7 @@ const SchemaBody string = `{ "metadata": {} }, { - "name": "p_tags", + "name": "os", "data_type": "Utf8", "nullable": true, "dict_id": 0, @@ -493,7 +493,7 @@ const SchemaBody string = `{ "metadata": {} }, { - "name": "p_timestamp", + "name": "p_metadata", "data_type": "Utf8", "nullable": true, "dict_id": 0, @@ -501,31 +501,36 @@ const SchemaBody string = `{ "metadata": {} }, { - "name": "process_id", - "data_type": "Int64", + "name": "p_tags", + "data_type": "Utf8", "nullable": true, "dict_id": 0, "dict_is_ordered": false, "metadata": {} }, { - "name": "response_time", - "data_type": "Int64", + "name": "p_timestamp", + "data_type": { + "Timestamp": [ + "Millisecond", + null + ] + }, "nullable": true, "dict_id": 0, "dict_is_ordered": false, "metadata": {} }, { - "name": "session_id", - "data_type": "Utf8", + "name": "process_id", + "data_type": "Int64", "nullable": true, "dict_id": 0, "dict_is_ordered": false, "metadata": {} }, { - "name": "source_time", + "name": "request_body", "data_type": "Utf8", "nullable": true, "dict_id": 0, @@ -533,7 +538,7 @@ const SchemaBody string = `{ "metadata": {} }, { - "name": "status_code", + "name": "response_time", "data_type": "Int64", "nullable": true, "dict_id": 0, @@ -541,7 +546,7 @@ const SchemaBody string = `{ "metadata": {} }, { - "name": "timezone", + "name": "runtime", "data_type": "Utf8", "nullable": true, "dict_id": 0, @@ -549,31 +554,36 @@ const SchemaBody string = `{ "metadata": {} }, { - "name": "user_id", - "data_type": "Int64", + "name": "session_id", + "data_type": "Utf8", "nullable": true, "dict_id": 0, "dict_is_ordered": false, "metadata": {} }, { - "name": "uuid", - "data_type": "Utf8", + "name": "source_time", + "data_type": { + "Timestamp": [ + "Millisecond", + null + ] + }, "nullable": true, "dict_id": 0, "dict_is_ordered": false, "metadata": {} }, { - "name": "version", - "data_type": "Utf8", + "name": "status_code", + "data_type": "Int64", "nullable": true, "dict_id": 0, "dict_is_ordered": false, "metadata": {} }, { - "name": "request_body", + "name": "timezone", "data_type": "Utf8", "nullable": true, "dict_id": 0, @@ -581,7 +591,7 @@ const SchemaBody string = `{ "metadata": {} }, { - "name": "runtime", + "name": "user_agent", "data_type": "Utf8", "nullable": true, "dict_id": 0, @@ -589,15 +599,15 @@ const SchemaBody string = `{ "metadata": {} }, { - "name": "user_agent", - "data_type": "Utf8", + "name": "user_id", + "data_type": "Int64", "nullable": true, "dict_id": 0, "dict_is_ordered": false, "metadata": {} }, { - "name": "location", + "name": "uuid", "data_type": "Utf8", "nullable": true, "dict_id": 0, @@ -605,7 +615,7 @@ const SchemaBody string = `{ "metadata": {} }, { - "name": "app_meta", + "name": "version", "data_type": "Utf8", "nullable": true, "dict_id": 0,