diff --git a/model.go b/model.go index d73dc51..7b7caa1 100644 --- a/model.go +++ b/model.go @@ -265,197 +265,6 @@ const FlogJsonSchema string = `{ ], "metadata": {} }` -const DetectSchema_SchemaBody string = `{ - "fields": [ - { - "name": "app_meta", - "data_type": "Utf8", - "nullable": true, - "dict_id": 0, - "dict_is_ordered": false, - "metadata": {} - }, - { - "name": "device_id", - "data_type": "Int64", - "nullable": true, - "dict_id": 0, - "dict_is_ordered": false, - "metadata": {} - }, - { - "name": "host", - "data_type": "Utf8", - "nullable": true, - "dict_id": 0, - "dict_is_ordered": false, - "metadata": {} - }, - { - "name": "level", - "data_type": "Utf8", - "nullable": true, - "dict_id": 0, - "dict_is_ordered": false, - "metadata": {} - }, - { - "name": "location", - "data_type": "Utf8", - "nullable": true, - "dict_id": 0, - "dict_is_ordered": false, - "metadata": {} - }, - { - "name": "message", - "data_type": "Utf8", - "nullable": true, - "dict_id": 0, - "dict_is_ordered": false, - "metadata": {} - }, - { - "name": "os", - "data_type": "Utf8", - "nullable": true, - "dict_id": 0, - "dict_is_ordered": false, - "metadata": {} - }, - { - "name": "p_metadata", - "data_type": "Utf8", - "nullable": true, - "dict_id": 0, - "dict_is_ordered": false, - "metadata": {} - }, - { - "name": "p_tags", - "data_type": "Utf8", - "nullable": true, - "dict_id": 0, - "dict_is_ordered": false, - "metadata": {} - }, - { - "name": "p_timestamp", - "data_type": { - "Timestamp": [ - "Millisecond", - null - ] - }, - "nullable": true, - "dict_id": 0, - "dict_is_ordered": false, - "metadata": {} - }, - { - "name": "process_id", - "data_type": "Int64", - "nullable": true, - "dict_id": 0, - "dict_is_ordered": false, - "metadata": {} - }, - { - "name": "request_body", - "data_type": "Utf8", - "nullable": true, - "dict_id": 0, - "dict_is_ordered": false, - "metadata": {} - }, - { - "name": "response_time", - "data_type": "Int64", - "nullable": true, - "dict_id": 0, - "dict_is_ordered": false, - "metadata": {} - }, - { - "name": "runtime", - "data_type": "Utf8", - "nullable": true, - "dict_id": 0, - "dict_is_ordered": false, - "metadata": {} - }, - { - "name": "session_id", - "data_type": "Utf8", - "nullable": true, - "dict_id": 0, - "dict_is_ordered": false, - "metadata": {} - }, - { - "name": "source_time", - "data_type": { - "Timestamp": [ - "Millisecond", - null - ] - }, - "nullable": true, - "dict_id": 0, - "dict_is_ordered": false, - "metadata": {} - }, - { - "name": "status_code", - "data_type": "Int64", - "nullable": true, - "dict_id": 0, - "dict_is_ordered": false, - "metadata": {} - }, - { - "name": "timezone", - "data_type": "Utf8", - "nullable": true, - "dict_id": 0, - "dict_is_ordered": false, - "metadata": {} - }, - { - "name": "user_agent", - "data_type": "Utf8", - "nullable": true, - "dict_id": 0, - "dict_is_ordered": false, - "metadata": {} - }, - { - "name": "user_id", - "data_type": "Int64", - "nullable": true, - "dict_id": 0, - "dict_is_ordered": false, - "metadata": {} - }, - { - "name": "uuid", - "data_type": "Utf8", - "nullable": true, - "dict_id": 0, - "dict_is_ordered": false, - "metadata": {} - }, - { - "name": "version", - "data_type": "Utf8", - "nullable": true, - "dict_id": 0, - "dict_is_ordered": false, - "metadata": {} - } - ], - "metadata": {} -}` const SchemaBody string = `{ "fields": [ diff --git a/quest_test.go b/quest_test.go index 709865c..aac08f0 100644 --- a/quest_test.go +++ b/quest_test.go @@ -61,7 +61,7 @@ func TestSmokeCreateStream(t *testing.T) { } func TestSmokeDetectSchema(t *testing.T) { - DetectSchema(t, NewGlob.QueryClient, SampleJson, DetectSchema_SchemaBody) + DetectSchema(t, NewGlob.QueryClient, SampleJson, SchemaBody) } func TestSmokeIngestEventsToStream(t *testing.T) {