commit
47e27dca38
14 changed files with 617 additions and 609 deletions
|
|
@ -1,21 +1,21 @@
|
|||
CREATE TABLE clicks
|
||||
CREATE TABLE IF NOT EXISTS clicks
|
||||
(
|
||||
session_id UInt64,
|
||||
project_id UInt32,
|
||||
tracker_version String,
|
||||
rev_id Nullable(String),
|
||||
user_uuid UUID,
|
||||
user_os String,
|
||||
user_os_version Nullable(String),
|
||||
user_browser String,
|
||||
user_browser_version Nullable(String),
|
||||
user_device Nullable(String),
|
||||
user_device_type Enum8('other'=0, 'desktop'=1, 'mobile'=2),
|
||||
user_country Enum8('UN'=-128, 'RW'=-127, 'SO'=-126, 'YE'=-125, 'IQ'=-124, 'SA'=-123, 'IR'=-122, 'CY'=-121, 'TZ'=-120, 'SY'=-119, 'AM'=-118, 'KE'=-117, 'CD'=-116, 'DJ'=-115, 'UG'=-114, 'CF'=-113, 'SC'=-112, 'JO'=-111, 'LB'=-110, 'KW'=-109, 'OM'=-108, 'QA'=-107, 'BH'=-106, 'AE'=-105, 'IL'=-104, 'TR'=-103, 'ET'=-102, 'ER'=-101, 'EG'=-100, 'SD'=-99, 'GR'=-98, 'BI'=-97, 'EE'=-96, 'LV'=-95, 'AZ'=-94, 'LT'=-93, 'SJ'=-92, 'GE'=-91, 'MD'=-90, 'BY'=-89, 'FI'=-88, 'AX'=-87, 'UA'=-86, 'MK'=-85, 'HU'=-84, 'BG'=-83, 'AL'=-82, 'PL'=-81, 'RO'=-80, 'XK'=-79, 'ZW'=-78, 'ZM'=-77, 'KM'=-76, 'MW'=-75, 'LS'=-74, 'BW'=-73, 'MU'=-72, 'SZ'=-71, 'RE'=-70, 'ZA'=-69, 'YT'=-68, 'MZ'=-67, 'MG'=-66, 'AF'=-65, 'PK'=-64, 'BD'=-63, 'TM'=-62, 'TJ'=-61, 'LK'=-60, 'BT'=-59, 'IN'=-58, 'MV'=-57, 'IO'=-56, 'NP'=-55, 'MM'=-54, 'UZ'=-53, 'KZ'=-52, 'KG'=-51, 'TF'=-50, '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AG'=72, 'LC'=73, 'TC'=74, 'AW'=75, 'VG'=76, 'VC'=77, 'MS'=78, 'MF'=79, 'BL'=80, 'GP'=81, 'GD'=82, 'KY'=83, 'BZ'=84, 'SV'=85, 'GT'=86, 'HN'=87, 'NI'=88, 'CR'=89, 'VE'=90, 'EC'=91, 'CO'=92, 'PA'=93, 'HT'=94, 'AR'=95, 'CL'=96, 'BO'=97, 'PE'=98, 'MX'=99, 'PF'=100, 'PN'=101, 'KI'=102, 'TK'=103, 'TO'=104, 'WF'=105, 'WS'=106, 'NU'=107, 'MP'=108, 'GU'=109, 'PR'=110, 'VI'=111, 'UM'=112, 'AS'=113, 'CA'=114, 'US'=115, 'PS'=116, 'RS'=117, 'AQ'=118, 'SX'=119, 'CW'=120, 'BQ'=121, 'SS'=122),
|
||||
datetime DateTime,
|
||||
label String,
|
||||
hesitation_time Nullable(UInt32)
|
||||
session_id UInt64,
|
||||
project_id UInt32,
|
||||
tracker_version String,
|
||||
rev_id Nullable(String),
|
||||
user_uuid UUID,
|
||||
user_os String,
|
||||
user_os_version Nullable(String),
|
||||
user_browser String,
|
||||
user_browser_version Nullable(String),
|
||||
user_device Nullable(String),
|
||||
user_device_type Enum8('other'=0, 'desktop'=1, 'mobile'=2),
|
||||
user_country Enum8('UN'=-128, 'RW'=-127, 'SO'=-126, 'YE'=-125, 'IQ'=-124, 'SA'=-123, 'IR'=-122, 'CY'=-121, 'TZ'=-120, 'SY'=-119, 'AM'=-118, 'KE'=-117, 'CD'=-116, 'DJ'=-115, 'UG'=-114, 'CF'=-113, 'SC'=-112, 'JO'=-111, 'LB'=-110, 'KW'=-109, 'OM'=-108, 'QA'=-107, 'BH'=-106, 'AE'=-105, 'IL'=-104, 'TR'=-103, 'ET'=-102, 'ER'=-101, 'EG'=-100, 'SD'=-99, 'GR'=-98, 'BI'=-97, 'EE'=-96, 'LV'=-95, 'AZ'=-94, 'LT'=-93, 'SJ'=-92, 'GE'=-91, 'MD'=-90, 'BY'=-89, 'FI'=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'IE'=28, 'MC'=29, 'FR'=30, 'AD'=31, 'LI'=32, 'JE'=33, 'IM'=34, 'GG'=35, 'SK'=36, 'CZ'=37, 'NO'=38, 'VA'=39, 'SM'=40, 'IT'=41, 'SI'=42, 'ME'=43, 'HR'=44, 'BA'=45, 'AO'=46, 'NA'=47, 'SH'=48, 'BV'=49, 'BB'=50, 'CV'=51, 'GY'=52, 'GF'=53, 'SR'=54, 'PM'=55, 'GL'=56, 'PY'=57, 'UY'=58, 'BR'=59, 'FK'=60, 'GS'=61, 'JM'=62, 'DO'=63, 'CU'=64, 'MQ'=65, 'BS'=66, 'BM'=67, 'AI'=68, 'TT'=69, 'KN'=70, 'DM'=71, 'AG'=72, 'LC'=73, 'TC'=74, 'AW'=75, 'VG'=76, 'VC'=77, 'MS'=78, 'MF'=79, 'BL'=80, 'GP'=81, 'GD'=82, 'KY'=83, 'BZ'=84, 'SV'=85, 'GT'=86, 'HN'=87, 'NI'=88, 'CR'=89, 'VE'=90, 'EC'=91, 'CO'=92, 'PA'=93, 'HT'=94, 'AR'=95, 'CL'=96, 'BO'=97, 'PE'=98, 'MX'=99, 'PF'=100, 'PN'=101, 'KI'=102, 'TK'=103, 'TO'=104, 'WF'=105, 'WS'=106, 'NU'=107, 'MP'=108, 'GU'=109, 'PR'=110, 'VI'=111, 'UM'=112, 'AS'=113, 'CA'=114, 'US'=115, 'PS'=116, 'RS'=117, 'AQ'=118, 'SX'=119, 'CW'=120, 'BQ'=121, 'SS'=122),
|
||||
datetime DateTime,
|
||||
label String,
|
||||
hesitation_time Nullable(UInt32)
|
||||
) ENGINE = MergeTree
|
||||
PARTITION BY toDate(datetime)
|
||||
ORDER BY (project_id, datetime)
|
||||
TTL datetime + INTERVAL 1 MONTH;
|
||||
PARTITION BY toDate(datetime)
|
||||
ORDER BY (project_id, datetime)
|
||||
TTL datetime + INTERVAL 1 MONTH;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
CREATE TABLE customs
|
||||
CREATE TABLE IF NOT EXISTS customs
|
||||
(
|
||||
session_id UInt64,
|
||||
project_id UInt32,
|
||||
|
|
|
|||
|
|
@ -1,22 +1,23 @@
|
|||
CREATE TABLE errors (
|
||||
session_id UInt64,
|
||||
project_id UInt32,
|
||||
tracker_version String,
|
||||
rev_id Nullable(String),
|
||||
user_uuid UUID,
|
||||
user_os String,
|
||||
user_os_version Nullable(String),
|
||||
user_browser String,
|
||||
user_browser_version Nullable(String),
|
||||
user_device Nullable(String),
|
||||
user_device_type Enum8('other'=0, 'desktop'=1, 'mobile'=2),
|
||||
user_country Enum8('UN'=-128, 'RW'=-127, 'SO'=-126, 'YE'=-125, 'IQ'=-124, 'SA'=-123, 'IR'=-122, 'CY'=-121, 'TZ'=-120, 'SY'=-119, 'AM'=-118, 'KE'=-117, 'CD'=-116, 'DJ'=-115, 'UG'=-114, 'CF'=-113, 'SC'=-112, 'JO'=-111, 'LB'=-110, 'KW'=-109, 'OM'=-108, 'QA'=-107, 'BH'=-106, 'AE'=-105, 'IL'=-104, 'TR'=-103, 'ET'=-102, 'ER'=-101, 'EG'=-100, 'SD'=-99, 'GR'=-98, 'BI'=-97, 'EE'=-96, 'LV'=-95, 'AZ'=-94, 'LT'=-93, 'SJ'=-92, 'GE'=-91, 'MD'=-90, 'BY'=-89, 'FI'=-88, 'AX'=-87, 'UA'=-86, 'MK'=-85, 'HU'=-84, 'BG'=-83, 'AL'=-82, 'PL'=-81, 'RO'=-80, 'XK'=-79, 'ZW'=-78, 'ZM'=-77, 'KM'=-76, 'MW'=-75, 'LS'=-74, 'BW'=-73, 'MU'=-72, 'SZ'=-71, 'RE'=-70, 'ZA'=-69, 'YT'=-68, 'MZ'=-67, 'MG'=-66, 'AF'=-65, 'PK'=-64, 'BD'=-63, 'TM'=-62, 'TJ'=-61, 'LK'=-60, 'BT'=-59, 'IN'=-58, 'MV'=-57, 'IO'=-56, 'NP'=-55, 'MM'=-54, 'UZ'=-53, 'KZ'=-52, 'KG'=-51, 'TF'=-50,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 'AG'=72, 'LC'=73, 'TC'=74, 'AW'=75, 'VG'=76, 'VC'=77, 'MS'=78, 'MF'=79, 'BL'=80, 'GP'=81, 'GD'=82, 'KY'=83, 'BZ'=84, 'SV'=85, 'GT'=86, 'HN'=87, 'NI'=88, 'CR'=89, 'VE'=90, 'EC'=91, 'CO'=92, 'PA'=93, 'HT'=94, 'AR'=95, 'CL'=96, 'BO'=97, 'PE'=98, 'MX'=99, 'PF'=100, 'PN'=101, 'KI'=102, 'TK'=103, 'TO'=104, 'WF'=105, 'WS'=106, 'NU'=107, 'MP'=108, 'GU'=109, 'PR'=110, 'VI'=111, 'UM'=112, 'AS'=113, 'CA'=114, 'US'=115, 'PS'=116, 'RS'=117, 'AQ'=118, 'SX'=119, 'CW'=120, 'BQ'=121, 'SS'=122),
|
||||
datetime DateTime,
|
||||
source Enum8('js_exception'=0, 'bugsnag'=1, 'cloudwatch'=2, 'datadog'=3, 'elasticsearch'=4, 'newrelic'=5, 'rollbar'=6, 'sentry'=7, 'stackdriver'=8, 'sumologic'=9),
|
||||
name Nullable(String),
|
||||
message String,
|
||||
error_id String
|
||||
CREATE TABLE IF NOT EXISTS errors
|
||||
(
|
||||
session_id UInt64,
|
||||
project_id UInt32,
|
||||
tracker_version String,
|
||||
rev_id Nullable(String),
|
||||
user_uuid UUID,
|
||||
user_os String,
|
||||
user_os_version Nullable(String),
|
||||
user_browser String,
|
||||
user_browser_version Nullable(String),
|
||||
user_device Nullable(String),
|
||||
user_device_type Enum8('other'=0, 'desktop'=1, 'mobile'=2),
|
||||
user_country Enum8('UN'=-128, 'RW'=-127, 'SO'=-126, 'YE'=-125, 'IQ'=-124, 'SA'=-123, 'IR'=-122, 'CY'=-121, 'TZ'=-120, 'SY'=-119, 'AM'=-118, 'KE'=-117, 'CD'=-116, 'DJ'=-115, 'UG'=-114, 'CF'=-113, 'SC'=-112, 'JO'=-111, 'LB'=-110, 'KW'=-109, 'OM'=-108, 'QA'=-107, 'BH'=-106, 'AE'=-105, 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E'=9, 'ML'=10, 'EH'=11, 'TN'=12, 'ES'=13, 'MA'=14, 'MT'=15, 'DZ'=16, 'FO'=17, 'DK'=18, 'IS'=19, 'GB'=20, 'CH'=21, 'SE'=22, 'NL'=23, 'AT'=24, 'BE'=25, 'DE'=26, 'LU'=27, 'IE'=28, 'MC'=29, 'FR'=30, 'AD'=31, 'LI'=32, 'JE'=33, 'IM'=34, 'GG'=35, 'SK'=36, 'CZ'=37, 'NO'=38, 'VA'=39, 'SM'=40, 'IT'=41, 'SI'=42, 'ME'=43, 'HR'=44, 'BA'=45, 'AO'=46, 'NA'=47, 'SH'=48, 'BV'=49, 'BB'=50, 'CV'=51, 'GY'=52, 'GF'=53, 'SR'=54, 'PM'=55, 'GL'=56, 'PY'=57, 'UY'=58, 'BR'=59, 'FK'=60, 'GS'=61, 'JM'=62, 'DO'=63, 'CU'=64, 'MQ'=65, 'BS'=66, 'BM'=67, 'AI'=68, 'TT'=69, 'KN'=70, 'DM'=71, 'AG'=72, 'LC'=73, 'TC'=74, 'AW'=75, 'VG'=76, 'VC'=77, 'MS'=78, 'MF'=79, 'BL'=80, 'GP'=81, 'GD'=82, 'KY'=83, 'BZ'=84, 'SV'=85, 'GT'=86, 'HN'=87, 'NI'=88, 'CR'=89, 'VE'=90, 'EC'=91, 'CO'=92, 'PA'=93, 'HT'=94, 'AR'=95, 'CL'=96, 'BO'=97, 'PE'=98, 'MX'=99, 'PF'=100, 'PN'=101, 'KI'=102, 'TK'=103, 'TO'=104, 'WF'=105, 'WS'=106, 'NU'=107, 'MP'=108, 'GU'=109, 'PR'=110, 'VI'=111, 'UM'=112, 'AS'=113, 'CA'=114, 'US'=115, 'PS'=116, 'RS'=117, 'AQ'=118, 'SX'=119, 'CW'=120, 'BQ'=121, 'SS'=122),
|
||||
datetime DateTime,
|
||||
source Enum8('js_exception'=0, 'bugsnag'=1, 'cloudwatch'=2, 'datadog'=3, 'elasticsearch'=4, 'newrelic'=5, 'rollbar'=6, 'sentry'=7, 'stackdriver'=8, 'sumologic'=9),
|
||||
name Nullable(String),
|
||||
message String,
|
||||
error_id String
|
||||
) ENGINE = MergeTree
|
||||
PARTITION BY toDate(datetime)
|
||||
ORDER BY (project_id, datetime)
|
||||
TTL datetime + INTERVAL 1 MONTH;
|
||||
PARTITION BY toDate(datetime)
|
||||
ORDER BY (project_id, datetime)
|
||||
TTL datetime + INTERVAL 1 MONTH;
|
||||
|
|
|
|||
|
|
@ -1,20 +1,20 @@
|
|||
CREATE TABLE inputs
|
||||
CREATE TABLE IF NOT EXISTS inputs
|
||||
(
|
||||
session_id UInt64,
|
||||
project_id UInt32,
|
||||
tracker_version String,
|
||||
rev_id Nullable(String),
|
||||
user_uuid UUID,
|
||||
user_os String,
|
||||
user_os_version Nullable(String),
|
||||
user_browser String,
|
||||
user_browser_version Nullable(String),
|
||||
user_device Nullable(String),
|
||||
user_device_type Enum8('other'=0, 'desktop'=1, 'mobile'=2),
|
||||
user_country Enum8('UN'=-128, 'RW'=-127, 'SO'=-126, 'YE'=-125, 'IQ'=-124, 'SA'=-123, 'IR'=-122, 'CY'=-121, 'TZ'=-120, 'SY'=-119, 'AM'=-118, 'KE'=-117, 'CD'=-116, 'DJ'=-115, 'UG'=-114, 'CF'=-113, 'SC'=-112, 'JO'=-111, 'LB'=-110, 'KW'=-109, 'OM'=-108, 'QA'=-107, 'BH'=-106, 'AE'=-105, 'IL'=-104, 'TR'=-103, 'ET'=-102, 'ER'=-101, 'EG'=-100, 'SD'=-99, 'GR'=-98, 'BI'=-97, 'EE'=-96, 'LV'=-95, 'AZ'=-94, 'LT'=-93, 'SJ'=-92, 'GE'=-91, 'MD'=-90, 'BY'=-89, 'FI'=-88, 'AX'=-87, 'UA'=-86, 'MK'=-85, 'HU'=-84, 'BG'=-83, 'AL'=-82, 'PL'=-81, 'RO'=-80, 'XK'=-79, 'ZW'=-78, 'ZM'=-77, 'KM'=-76, 'MW'=-75, 'LS'=-74, 'BW'=-73, 'MU'=-72, 'SZ'=-71, 'R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SH'=48, 'BV'=49, 'BB'=50, 'CV'=51, 'GY'=52, 'GF'=53, 'SR'=54, 'PM'=55, 'GL'=56, 'PY'=57, 'UY'=58, 'BR'=59, 'FK'=60, 'GS'=61, 'JM'=62, 'DO'=63, 'CU'=64, 'MQ'=65, 'BS'=66, 'BM'=67, 'AI'=68, 'TT'=69, 'KN'=70, 'DM'=71, 'AG'=72, 'LC'=73, 'TC'=74, 'AW'=75, 'VG'=76, 'VC'=77, 'MS'=78, 'MF'=79, 'BL'=80, 'GP'=81, 'GD'=82, 'KY'=83, 'BZ'=84, 'SV'=85, 'GT'=86, 'HN'=87, 'NI'=88, 'CR'=89, 'VE'=90, 'EC'=91, 'CO'=92, 'PA'=93, 'HT'=94, 'AR'=95, 'CL'=96, 'BO'=97, 'PE'=98, 'MX'=99, 'PF'=100, 'PN'=101, 'KI'=102, 'TK'=103, 'TO'=104, 'WF'=105, 'WS'=106, 'NU'=107, 'MP'=108, 'GU'=109, 'PR'=110, 'VI'=111, 'UM'=112, 'AS'=113, 'CA'=114, 'US'=115, 'PS'=116, 'RS'=117, 'AQ'=118, 'SX'=119, 'CW'=120, 'BQ'=121, 'SS'=122),
|
||||
datetime DateTime,
|
||||
label String
|
||||
session_id UInt64,
|
||||
project_id UInt32,
|
||||
tracker_version String,
|
||||
rev_id Nullable(String),
|
||||
user_uuid UUID,
|
||||
user_os String,
|
||||
user_os_version Nullable(String),
|
||||
user_browser String,
|
||||
user_browser_version Nullable(String),
|
||||
user_device Nullable(String),
|
||||
user_device_type Enum8('other'=0, 'desktop'=1, 'mobile'=2),
|
||||
user_country Enum8('UN'=-128, 'RW'=-127, 'SO'=-126, 'YE'=-125, 'IQ'=-124, 'SA'=-123, 'IR'=-122, 'CY'=-121, 'TZ'=-120, 'SY'=-119, 'AM'=-118, 'KE'=-117, 'CD'=-116, 'DJ'=-115, 'UG'=-114, 'CF'=-113, 'SC'=-112, 'JO'=-111, 'LB'=-110, 'KW'=-109, 'OM'=-108, 'QA'=-107,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 'GN'=7, 'TD'=8, 'NE'=9, 'ML'=10, 'EH'=11, 'TN'=12, 'ES'=13, 'MA'=14, 'MT'=15, 'DZ'=16, 'FO'=17, 'DK'=18, 'IS'=19, 'GB'=20, 'CH'=21, 'SE'=22, 'NL'=23, 'AT'=24, 'BE'=25, 'DE'=26, 'LU'=27, 'IE'=28, 'MC'=29, 'FR'=30, 'AD'=31, 'LI'=32, 'JE'=33, 'IM'=34, 'GG'=35, 'SK'=36, 'CZ'=37, 'NO'=38, 'VA'=39, 'SM'=40, 'IT'=41, 'SI'=42, 'ME'=43, 'HR'=44, 'BA'=45, 'AO'=46, 'NA'=47, 'SH'=48, 'BV'=49, 'BB'=50, 'CV'=51, 'GY'=52, 'GF'=53, 'SR'=54, 'PM'=55, 'GL'=56, 'PY'=57, 'UY'=58, 'BR'=59, 'FK'=60, 'GS'=61, 'JM'=62, 'DO'=63, 'CU'=64, 'MQ'=65, 'BS'=66, 'BM'=67, 'AI'=68, 'TT'=69, 'KN'=70, 'DM'=71, 'AG'=72, 'LC'=73, 'TC'=74, 'AW'=75, 'VG'=76, 'VC'=77, 'MS'=78, 'MF'=79, 'BL'=80, 'GP'=81, 'GD'=82, 'KY'=83, 'BZ'=84, 'SV'=85, 'GT'=86, 'HN'=87, 'NI'=88, 'CR'=89, 'VE'=90, 'EC'=91, 'CO'=92, 'PA'=93, 'HT'=94, 'AR'=95, 'CL'=96, 'BO'=97, 'PE'=98, 'MX'=99, 'PF'=100, 'PN'=101, 'KI'=102, 'TK'=103, 'TO'=104, 'WF'=105, 'WS'=106, 'NU'=107, 'MP'=108, 'GU'=109, 'PR'=110, 'VI'=111, 'UM'=112, 'AS'=113, 'CA'=114, 'US'=115, 'PS'=116, 'RS'=117, 'AQ'=118, 'SX'=119, 'CW'=120, 'BQ'=121, 'SS'=122),
|
||||
datetime DateTime,
|
||||
label String
|
||||
) ENGINE = MergeTree
|
||||
PARTITION BY toDate(datetime)
|
||||
ORDER BY (project_id, datetime)
|
||||
TTL datetime + INTERVAL 1 MONTH;
|
||||
PARTITION BY toDate(datetime)
|
||||
ORDER BY (project_id, datetime)
|
||||
TTL datetime + INTERVAL 1 MONTH;
|
||||
|
|
|
|||
|
|
@ -1,26 +1,26 @@
|
|||
CREATE TABLE longtasks
|
||||
CREATE TABLE IF NOT EXISTS longtasks
|
||||
(
|
||||
session_id UInt64,
|
||||
project_id UInt32,
|
||||
tracker_version String,
|
||||
rev_id Nullable(String),
|
||||
user_uuid UUID,
|
||||
user_os String,
|
||||
user_os_version Nullable(String),
|
||||
user_browser String,
|
||||
user_browser_version Nullable(String),
|
||||
user_device Nullable(String),
|
||||
user_device_type Enum8('other'=0, 'desktop'=1, 'mobile'=2),
|
||||
user_country Enum8('UN'=-128, 'RW'=-127, 'SO'=-126, 'YE'=-125, 'IQ'=-124, 'SA'=-123, 'IR'=-122, 'CY'=-121, 'TZ'=-120, 'SY'=-119, 'AM'=-118, 'KE'=-117, 'CD'=-116, 'DJ'=-115, 'UG'=-114, 'CF'=-113, 'SC'=-112, 'JO'=-111, 'LB'=-110, 'KW'=-109, 'OM'=-108, 'QA'=-107, 'BH'=-106, 'AE'=-105, 'IL'=-104, 'TR'=-103, 'ET'=-102, 'ER'=-101, 'EG'=-100, 'SD'=-99, 'GR'=-98, 'BI'=-97, 'EE'=-96, 'LV'=-95, 'AZ'=-94, 'LT'=-93, 'SJ'=-92, 'GE'=-91, 'MD'=-90, 'BY'=-89, 'FI'=-88, 'AX'=-87, 'UA'=-86, 'MK'=-85, 'HU'=-84, 'BG'=-83, 'AL'=-82, 'PL'=-81, 'RO'=-80, 'XK'=-79, 'ZW'=-78, 'ZM'=-77, 'KM'=-76, 'MW'=-75, 'LS'=-74, 'BW'=-73, 'MU'=-72, 'SZ'=-71, 'RE'=-70, 'ZA'=-69, 'YT'=-68, 'MZ'=-67, 'MG'=-66, 'AF'=-65, 'PK'=-64, 'BD'=-63, 'TM'=-62, 'TJ'=-61, 'LK'=-60, 'BT'=-59, 'IN'=-58, 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 'DO'=63, 'CU'=64, 'MQ'=65, 'BS'=66, 'BM'=67, 'AI'=68, 'TT'=69, 'KN'=70, 'DM'=71, 'AG'=72, 'LC'=73, 'TC'=74, 'AW'=75, 'VG'=76, 'VC'=77, 'MS'=78, 'MF'=79, 'BL'=80, 'GP'=81, 'GD'=82, 'KY'=83, 'BZ'=84, 'SV'=85, 'GT'=86, 'HN'=87, 'NI'=88, 'CR'=89, 'VE'=90, 'EC'=91, 'CO'=92, 'PA'=93, 'HT'=94, 'AR'=95, 'CL'=96, 'BO'=97, 'PE'=98, 'MX'=99, 'PF'=100, 'PN'=101, 'KI'=102, 'TK'=103, 'TO'=104, 'WF'=105, 'WS'=106, 'NU'=107, 'MP'=108, 'GU'=109, 'PR'=110, 'VI'=111, 'UM'=112, 'AS'=113, 'CA'=114, 'US'=115, 'PS'=116, 'RS'=117, 'AQ'=118, 'SX'=119, 'CW'=120, 'BQ'=121, 'SS'=122),
|
||||
datetime DateTime,
|
||||
duration UInt16,
|
||||
context Enum8('unknown'=0, 'self'=1, 'same-origin-ancestor'=2, 'same-origin-descendant'=3, 'same-origin'=4, 'cross-origin-ancestor'=5, 'cross-origin-descendant'=6, 'cross-origin-unreachable'=7, 'multiple-contexts'=8),
|
||||
container_type Enum8('window'=0, 'iframe'=1, 'embed'=2, 'object'=3),
|
||||
container_id String,
|
||||
container_name String,
|
||||
container_src String
|
||||
session_id UInt64,
|
||||
project_id UInt32,
|
||||
tracker_version String,
|
||||
rev_id Nullable(String),
|
||||
user_uuid UUID,
|
||||
user_os String,
|
||||
user_os_version Nullable(String),
|
||||
user_browser String,
|
||||
user_browser_version Nullable(String),
|
||||
user_device Nullable(String),
|
||||
user_device_type Enum8('other'=0, 'desktop'=1, 'mobile'=2),
|
||||
user_country Enum8('UN'=-128, 'RW'=-127, 'SO'=-126, 'YE'=-125, 'IQ'=-124, 'SA'=-123, 'IR'=-122, 'CY'=-121, 'TZ'=-120, 'SY'=-119, 'AM'=-118, 'KE'=-117, 'CD'=-116, 'DJ'=-115, 'UG'=-114, 'CF'=-113, 'SC'=-112, 'JO'=-111, 'LB'=-110, 'KW'=-109, 'OM'=-108, 'QA'=-107, 'BH'=-106, 'AE'=-105, 'IL'=-104, 'TR'=-103, 'ET'=-102, 'ER'=-101, 'EG'=-100, 'SD'=-99, 'GR'=-98, 'BI'=-97, 'EE'=-96, 'LV'=-95, 'AZ'=-94, 'LT'=-93, 'SJ'=-92, 'GE'=-91, 'MD'=-90, 'BY'=-89, 'FI'=-88, 'AX'=-87, 'UA'=-86, 'MK'=-85, 'HU'=-84, 'BG'=-83, 'AL'=-82, 'PL'=-81, 'RO'=-80, 'XK'=-79, 'ZW'=-78, 'ZM'=-77, 'KM'=-76, 'MW'=-75, 'LS'=-74, 'BW'=-73, 'MU'=-72, 'SZ'=-71, 'RE'=-70, 'ZA'=-69, 'YT'=-68, 'MZ'=-67, 'MG'=-66, 'AF'=-65, 'PK'=-64, 'BD'=-63, 'TM'=-62, 'TJ'=-61, 'LK'=-60, 'BT'=-59, 'IN'=-58, 'MV'=-57, 'IO'=-56, 'NP'=-55, 'MM'=-54, 'UZ'=-53, 'KZ'=-52, 'KG'=-51, 'TF'=-50, 'HM'=-49, 'CC'=-48, 'PW'=-47, 'VN'=-46, 'TH'=-45, 'ID'=-44, 'LA'=-43, 'TW'=-42, 'PH'=-41, 'MY'=-40, 'CN'=-39, 'HK'=-38, 'BN'=-37, 'MO'=-36, 'KH'=-35, 'KR'=-34, 'JP'=-33, 'KP'=-32, 'SG'=-31, 'CK'=-30, 'TL'=-29, 'RU'=-28, 'MN'=-27, 'AU'=-26, 'CX'=-25, 'MH'=-24, 'FM'=-23, 'PG'=-22, 'SB'=-21, 'TV'=-20, 'NR'=-19, 'VU'=-18, 'NC'=-17, 'NF'=-16, 'NZ'=-15, 'FJ'=-14, 'LY'=-13, 'CM'=-12, 'SN'=-11, 'CG'=-10, 'PT'=-9, 'LR'=-8, 'CI'=-7, 'GH'=-6, 'GQ'=-5, 'NG'=-4, 'BF'=-3, 'TG'=-2, 'GW'=-1, 'MR'=0, 'BJ'=1, 'GA'=2, 'SL'=3, 'ST'=4, 'GI'=5, 'GM'=6, 'GN'=7, 'TD'=8, 'NE'=9, 'ML'=10, 'EH'=11, 'TN'=12, 'ES'=13, 'MA'=14, 'MT'=15, 'DZ'=16, 'FO'=17, 'DK'=18, 'IS'=19, 'GB'=20, 'CH'=21, 'SE'=22, 'NL'=23, 'AT'=24, 'BE'=25, 'DE'=26, 'LU'=27, 'IE'=28, 'MC'=29, 'FR'=30, 'AD'=31, 'LI'=32, 'JE'=33, 'IM'=34, 'GG'=35, 'SK'=36, 'CZ'=37, 'NO'=38, 'VA'=39, 'SM'=40, 'IT'=41, 'SI'=42, 'ME'=43, 'HR'=44, 'BA'=45, 'AO'=46, 'NA'=47, 'SH'=48, 'BV'=49, 'BB'=50, 'CV'=51, 'GY'=52, 'GF'=53, 'SR'=54, 'PM'=55, 'GL'=56, 'PY'=57, 'UY'=58, 'BR'=59, 'FK'=60, 'GS'=61, 'JM'=62, 'DO'=63, 'CU'=64, 'MQ'=65, 'BS'=66, 'BM'=67, 'AI'=68, 'TT'=69, 'KN'=70, 'DM'=71, 'AG'=72, 'LC'=73, 'TC'=74, 'AW'=75, 'VG'=76, 'VC'=77, 'MS'=78, 'MF'=79, 'BL'=80, 'GP'=81, 'GD'=82, 'KY'=83, 'BZ'=84, 'SV'=85, 'GT'=86, 'HN'=87, 'NI'=88, 'CR'=89, 'VE'=90, 'EC'=91, 'CO'=92, 'PA'=93, 'HT'=94, 'AR'=95, 'CL'=96, 'BO'=97, 'PE'=98, 'MX'=99, 'PF'=100, 'PN'=101, 'KI'=102, 'TK'=103, 'TO'=104, 'WF'=105, 'WS'=106, 'NU'=107, 'MP'=108, 'GU'=109, 'PR'=110, 'VI'=111, 'UM'=112, 'AS'=113, 'CA'=114, 'US'=115, 'PS'=116, 'RS'=117, 'AQ'=118, 'SX'=119, 'CW'=120, 'BQ'=121, 'SS'=122),
|
||||
datetime DateTime,
|
||||
duration UInt16,
|
||||
context Enum8('unknown'=0, 'self'=1, 'same-origin-ancestor'=2, 'same-origin-descendant'=3, 'same-origin'=4, 'cross-origin-ancestor'=5, 'cross-origin-descendant'=6, 'cross-origin-unreachable'=7, 'multiple-contexts'=8),
|
||||
container_type Enum8('window'=0, 'iframe'=1, 'embed'=2, 'object'=3),
|
||||
container_id String,
|
||||
container_name String,
|
||||
container_src String
|
||||
) ENGINE = MergeTree
|
||||
PARTITION BY toDate(datetime)
|
||||
ORDER BY (project_id, datetime)
|
||||
TTL datetime + INTERVAL 1 MONTH;
|
||||
PARTITION BY toDate(datetime)
|
||||
ORDER BY (project_id, datetime)
|
||||
TTL datetime + INTERVAL 1 MONTH;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,213 +1,215 @@
|
|||
CREATE TABLE negatives_buffer (
|
||||
sessionid UInt64,
|
||||
clickevent_hesitationtime Nullable(UInt64),
|
||||
clickevent_label Nullable(String),
|
||||
clickevent_messageid Nullable(UInt64),
|
||||
clickevent_timestamp Nullable(Datetime),
|
||||
connectioninformation_downlink Nullable(UInt64),
|
||||
connectioninformation_type Nullable(String),
|
||||
consolelog_level Nullable(String),
|
||||
consolelog_value Nullable(String),
|
||||
cpuissue_duration Nullable(UInt64),
|
||||
cpuissue_rate Nullable(UInt64),
|
||||
cpuissue_timestamp Nullable(Datetime),
|
||||
createdocument Nullable(UInt8),
|
||||
createelementnode_id Nullable(UInt64),
|
||||
createelementnode_parentid Nullable(UInt64),
|
||||
cssdeleterule_index Nullable(UInt64),
|
||||
cssdeleterule_stylesheetid Nullable(UInt64),
|
||||
cssinsertrule_index Nullable(UInt64),
|
||||
cssinsertrule_rule Nullable(String),
|
||||
cssinsertrule_stylesheetid Nullable(UInt64),
|
||||
customevent_messageid Nullable(UInt64),
|
||||
customevent_name Nullable(String),
|
||||
customevent_payload Nullable(String),
|
||||
customevent_timestamp Nullable(Datetime),
|
||||
domdrop_timestamp Nullable(Datetime),
|
||||
errorevent_message Nullable(String),
|
||||
errorevent_messageid Nullable(UInt64),
|
||||
errorevent_name Nullable(String),
|
||||
errorevent_payload Nullable(String),
|
||||
errorevent_source Nullable(String),
|
||||
errorevent_timestamp Nullable(Datetime),
|
||||
fetch_duration Nullable(UInt64),
|
||||
fetch_method Nullable(String),
|
||||
fetch_request Nullable(String),
|
||||
fetch_status Nullable(UInt64),
|
||||
fetch_timestamp Nullable(Datetime),
|
||||
fetch_url Nullable(String),
|
||||
graphql_operationkind Nullable(String),
|
||||
graphql_operationname Nullable(String),
|
||||
graphql_response Nullable(String),
|
||||
graphql_variables Nullable(String),
|
||||
graphqlevent_messageid Nullable(UInt64),
|
||||
graphqlevent_name Nullable(String),
|
||||
graphqlevent_timestamp Nullable(Datetime),
|
||||
inputevent_label Nullable(String),
|
||||
inputevent_messageid Nullable(UInt64),
|
||||
inputevent_timestamp Nullable(Datetime),
|
||||
inputevent_value Nullable(String),
|
||||
inputevent_valuemasked Nullable(UInt8),
|
||||
jsexception_message Nullable(String),
|
||||
jsexception_name Nullable(String),
|
||||
jsexception_payload Nullable(String),
|
||||
longtasks_timestamp Nullable(Datetime),
|
||||
longtasks_duration Nullable(UInt64),
|
||||
longtasks_containerid Nullable(String),
|
||||
longtasks_containersrc Nullable(String),
|
||||
memoryissue_duration Nullable(UInt64),
|
||||
memoryissue_rate Nullable(UInt64),
|
||||
memoryissue_timestamp Nullable(Datetime),
|
||||
metadata_key Nullable(String),
|
||||
metadata_value Nullable(String),
|
||||
mobx_payload Nullable(String),
|
||||
mobx_type Nullable(String),
|
||||
mouseclick_id Nullable(UInt64),
|
||||
mouseclick_hesitationtime Nullable(UInt64),
|
||||
mouseclick_label Nullable(String),
|
||||
mousemove_x Nullable(UInt64),
|
||||
mousemove_y Nullable(UInt64),
|
||||
movenode_id Nullable(UInt64),
|
||||
movenode_index Nullable(UInt64),
|
||||
movenode_parentid Nullable(UInt64),
|
||||
ngrx_action Nullable(String),
|
||||
ngrx_duration Nullable(UInt64),
|
||||
ngrx_state Nullable(String),
|
||||
pageevent_domcontentloadedeventend Nullable(UInt64),
|
||||
pageevent_domcontentloadedeventstart Nullable(UInt64),
|
||||
pageevent_firstcontentfulpaint Nullable(UInt64),
|
||||
pageevent_firstpaint Nullable(UInt64),
|
||||
pageevent_loaded Nullable(UInt8),
|
||||
pageevent_loadeventend Nullable(UInt64),
|
||||
pageevent_loadeventstart Nullable(UInt64),
|
||||
pageevent_messageid Nullable(UInt64),
|
||||
pageevent_referrer Nullable(String),
|
||||
pageevent_requeststart Nullable(UInt64),
|
||||
pageevent_responseend Nullable(UInt64),
|
||||
pageevent_responsestart Nullable(UInt64),
|
||||
pageevent_speedindex Nullable(UInt64),
|
||||
pageevent_timestamp Nullable(Datetime),
|
||||
pageevent_url Nullable(String),
|
||||
pageloadtiming_domcontentloadedeventend Nullable(UInt64),
|
||||
pageloadtiming_domcontentloadedeventstart Nullable(UInt64),
|
||||
pageloadtiming_firstcontentfulpaint Nullable(UInt64),
|
||||
pageloadtiming_firstpaint Nullable(UInt64),
|
||||
pageloadtiming_loadeventend Nullable(UInt64),
|
||||
pageloadtiming_loadeventstart Nullable(UInt64),
|
||||
pageloadtiming_requeststart Nullable(UInt64),
|
||||
pageloadtiming_responseend Nullable(UInt64),
|
||||
pageloadtiming_responsestart Nullable(UInt64),
|
||||
pagerendertiming_speedindex Nullable(UInt64),
|
||||
pagerendertiming_timetointeractive Nullable(UInt64),
|
||||
pagerendertiming_visuallycomplete Nullable(UInt64),
|
||||
performancetrack_frames Nullable(Int64),
|
||||
performancetrack_ticks Nullable(Int64),
|
||||
performancetrack_totaljsheapsize Nullable(UInt64),
|
||||
performancetrack_usedjsheapsize Nullable(UInt64),
|
||||
performancetrackaggr_avgcpu Nullable(UInt64),
|
||||
performancetrackaggr_avgfps Nullable(UInt64),
|
||||
performancetrackaggr_avgtotaljsheapsize Nullable(UInt64),
|
||||
performancetrackaggr_avgusedjsheapsize Nullable(UInt64),
|
||||
performancetrackaggr_maxcpu Nullable(UInt64),
|
||||
performancetrackaggr_maxfps Nullable(UInt64),
|
||||
performancetrackaggr_maxtotaljsheapsize Nullable(UInt64),
|
||||
performancetrackaggr_maxusedjsheapsize Nullable(UInt64),
|
||||
performancetrackaggr_mincpu Nullable(UInt64),
|
||||
performancetrackaggr_minfps Nullable(UInt64),
|
||||
performancetrackaggr_mintotaljsheapsize Nullable(UInt64),
|
||||
performancetrackaggr_minusedjsheapsize Nullable(UInt64),
|
||||
performancetrackaggr_timestampend Nullable(Datetime),
|
||||
performancetrackaggr_timestampstart Nullable(Datetime),
|
||||
profiler_args Nullable(String),
|
||||
profiler_duration Nullable(UInt64),
|
||||
profiler_name Nullable(String),
|
||||
profiler_result Nullable(String),
|
||||
rawcustomevent_name Nullable(String),
|
||||
rawcustomevent_payload Nullable(String),
|
||||
rawerrorevent_message Nullable(String),
|
||||
rawerrorevent_name Nullable(String),
|
||||
rawerrorevent_payload Nullable(String),
|
||||
rawerrorevent_source Nullable(String),
|
||||
rawerrorevent_timestamp Nullable(Datetime),
|
||||
redux_action Nullable(String),
|
||||
redux_duration Nullable(UInt64),
|
||||
redux_state Nullable(String),
|
||||
removenode_id Nullable(UInt64),
|
||||
removenodeattribute_id Nullable(UInt64),
|
||||
removenodeattribute_name Nullable(String),
|
||||
resourceevent_decodedbodysize Nullable(UInt64),
|
||||
resourceevent_duration Nullable(UInt64),
|
||||
resourceevent_encodedbodysize Nullable(UInt64),
|
||||
resourceevent_headersize Nullable(UInt64),
|
||||
resourceevent_messageid Nullable(UInt64),
|
||||
resourceevent_method Nullable(String),
|
||||
resourceevent_status Nullable(UInt64),
|
||||
resourceevent_success Nullable(UInt8),
|
||||
resourceevent_timestamp Nullable(Datetime),
|
||||
resourceevent_ttfb Nullable(UInt64),
|
||||
resourceevent_type Nullable(String),
|
||||
resourceevent_url Nullable(String),
|
||||
resourcetiming_decodedbodysize Nullable(UInt64),
|
||||
resourcetiming_duration Nullable(UInt64),
|
||||
resourcetiming_encodedbodysize Nullable(UInt64),
|
||||
resourcetiming_headersize Nullable(UInt64),
|
||||
resourcetiming_initiator Nullable(String),
|
||||
resourcetiming_timestamp Nullable(Datetime),
|
||||
resourcetiming_ttfb Nullable(UInt64),
|
||||
resourcetiming_url Nullable(String),
|
||||
sessiondisconnect Nullable(UInt8),
|
||||
sessiondisconnect_timestamp Nullable(Datetime),
|
||||
sessionend Nullable(UInt8),
|
||||
sessionend_timestamp Nullable(Datetime),
|
||||
sessionstart_projectid Nullable(UInt64),
|
||||
sessionstart_revid Nullable(String),
|
||||
sessionstart_timestamp Nullable(Datetime),
|
||||
sessionstart_trackerversion Nullable(String),
|
||||
sessionstart_useragent Nullable(String),
|
||||
sessionstart_userbrowser Nullable(String),
|
||||
sessionstart_userbrowserversion Nullable(String),
|
||||
sessionstart_usercountry Nullable(String),
|
||||
sessionstart_userdevice Nullable(String),
|
||||
sessionstart_userdeviceheapsize Nullable(UInt64),
|
||||
sessionstart_userdevicememorysize Nullable(UInt64),
|
||||
sessionstart_userdevicetype Nullable(String),
|
||||
sessionstart_useros Nullable(String),
|
||||
sessionstart_userosversion Nullable(String),
|
||||
sessionstart_useruuid Nullable(String),
|
||||
setcssdata_data Nullable(UInt64),
|
||||
setcssdata_id Nullable(UInt64),
|
||||
setinputchecked_checked Nullable(UInt64),
|
||||
setinputchecked_id Nullable(UInt64),
|
||||
setinputtarget_id Nullable(UInt64),
|
||||
setinputtarget_label Nullable(UInt64),
|
||||
setinputvalue_id Nullable(UInt64),
|
||||
setinputvalue_mask Nullable(UInt64),
|
||||
setinputvalue_value Nullable(UInt64),
|
||||
setnodeattribute_id Nullable(UInt64),
|
||||
setnodeattribute_name Nullable(UInt64),
|
||||
setnodeattribute_value Nullable(UInt64),
|
||||
setnodedata_data Nullable(UInt64),
|
||||
setnodedata_id Nullable(UInt64),
|
||||
setnodescroll_id Nullable(UInt64),
|
||||
setnodescroll_x Nullable(Int64),
|
||||
setnodescroll_y Nullable(Int64),
|
||||
setpagelocation_navigationstart Nullable(UInt64),
|
||||
setpagelocation_referrer Nullable(String),
|
||||
setpagelocation_url Nullable(String),
|
||||
setpagevisibility_hidden Nullable(UInt8),
|
||||
setviewportscroll_x Nullable(Int64),
|
||||
setviewportscroll_y Nullable(Int64),
|
||||
setviewportsize_height Nullable(UInt64),
|
||||
setviewportsize_width Nullable(UInt64),
|
||||
stateaction_type Nullable(String),
|
||||
stateactionevent_messageid Nullable(UInt64),
|
||||
stateactionevent_timestamp Nullable(Datetime),
|
||||
stateactionevent_type Nullable(String),
|
||||
timestamp_timestamp Nullable(Datetime),
|
||||
useranonymousid_id Nullable(String),
|
||||
userid_id Nullable(String),
|
||||
vuex_mutation Nullable(String),
|
||||
vuex_state Nullable(String),
|
||||
received_at Datetime,
|
||||
batch_order_number Int64)
|
||||
ENGINE = Buffer(default, negatives, 16, 10, 120, 10000, 1000000, 10000, 100000000);
|
||||
CREATE TABLE IF NOT EXISTS negatives_buffer
|
||||
(
|
||||
sessionid UInt64,
|
||||
clickevent_hesitationtime Nullable(UInt64),
|
||||
clickevent_label Nullable(String),
|
||||
clickevent_messageid Nullable(UInt64),
|
||||
clickevent_timestamp Nullable(Datetime),
|
||||
connectioninformation_downlink Nullable(UInt64),
|
||||
connectioninformation_type Nullable(String),
|
||||
consolelog_level Nullable(String),
|
||||
consolelog_value Nullable(String),
|
||||
cpuissue_duration Nullable(UInt64),
|
||||
cpuissue_rate Nullable(UInt64),
|
||||
cpuissue_timestamp Nullable(Datetime),
|
||||
createdocument Nullable(UInt8),
|
||||
createelementnode_id Nullable(UInt64),
|
||||
createelementnode_parentid Nullable(UInt64),
|
||||
cssdeleterule_index Nullable(UInt64),
|
||||
cssdeleterule_stylesheetid Nullable(UInt64),
|
||||
cssinsertrule_index Nullable(UInt64),
|
||||
cssinsertrule_rule Nullable(String),
|
||||
cssinsertrule_stylesheetid Nullable(UInt64),
|
||||
customevent_messageid Nullable(UInt64),
|
||||
customevent_name Nullable(String),
|
||||
customevent_payload Nullable(String),
|
||||
customevent_timestamp Nullable(Datetime),
|
||||
domdrop_timestamp Nullable(Datetime),
|
||||
errorevent_message Nullable(String),
|
||||
errorevent_messageid Nullable(UInt64),
|
||||
errorevent_name Nullable(String),
|
||||
errorevent_payload Nullable(String),
|
||||
errorevent_source Nullable(String),
|
||||
errorevent_timestamp Nullable(Datetime),
|
||||
fetch_duration Nullable(UInt64),
|
||||
fetch_method Nullable(String),
|
||||
fetch_request Nullable(String),
|
||||
fetch_status Nullable(UInt64),
|
||||
fetch_timestamp Nullable(Datetime),
|
||||
fetch_url Nullable(String),
|
||||
graphql_operationkind Nullable(String),
|
||||
graphql_operationname Nullable(String),
|
||||
graphql_response Nullable(String),
|
||||
graphql_variables Nullable(String),
|
||||
graphqlevent_messageid Nullable(UInt64),
|
||||
graphqlevent_name Nullable(String),
|
||||
graphqlevent_timestamp Nullable(Datetime),
|
||||
inputevent_label Nullable(String),
|
||||
inputevent_messageid Nullable(UInt64),
|
||||
inputevent_timestamp Nullable(Datetime),
|
||||
inputevent_value Nullable(String),
|
||||
inputevent_valuemasked Nullable(UInt8),
|
||||
jsexception_message Nullable(String),
|
||||
jsexception_name Nullable(String),
|
||||
jsexception_payload Nullable(String),
|
||||
longtasks_timestamp Nullable(Datetime),
|
||||
longtasks_duration Nullable(UInt64),
|
||||
longtasks_containerid Nullable(String),
|
||||
longtasks_containersrc Nullable(String),
|
||||
memoryissue_duration Nullable(UInt64),
|
||||
memoryissue_rate Nullable(UInt64),
|
||||
memoryissue_timestamp Nullable(Datetime),
|
||||
metadata_key Nullable(String),
|
||||
metadata_value Nullable(String),
|
||||
mobx_payload Nullable(String),
|
||||
mobx_type Nullable(String),
|
||||
mouseclick_id Nullable(UInt64),
|
||||
mouseclick_hesitationtime Nullable(UInt64),
|
||||
mouseclick_label Nullable(String),
|
||||
mousemove_x Nullable(UInt64),
|
||||
mousemove_y Nullable(UInt64),
|
||||
movenode_id Nullable(UInt64),
|
||||
movenode_index Nullable(UInt64),
|
||||
movenode_parentid Nullable(UInt64),
|
||||
ngrx_action Nullable(String),
|
||||
ngrx_duration Nullable(UInt64),
|
||||
ngrx_state Nullable(String),
|
||||
pageevent_domcontentloadedeventend Nullable(UInt64),
|
||||
pageevent_domcontentloadedeventstart Nullable(UInt64),
|
||||
pageevent_firstcontentfulpaint Nullable(UInt64),
|
||||
pageevent_firstpaint Nullable(UInt64),
|
||||
pageevent_loaded Nullable(UInt8),
|
||||
pageevent_loadeventend Nullable(UInt64),
|
||||
pageevent_loadeventstart Nullable(UInt64),
|
||||
pageevent_messageid Nullable(UInt64),
|
||||
pageevent_referrer Nullable(String),
|
||||
pageevent_requeststart Nullable(UInt64),
|
||||
pageevent_responseend Nullable(UInt64),
|
||||
pageevent_responsestart Nullable(UInt64),
|
||||
pageevent_speedindex Nullable(UInt64),
|
||||
pageevent_timestamp Nullable(Datetime),
|
||||
pageevent_url Nullable(String),
|
||||
pageloadtiming_domcontentloadedeventend Nullable(UInt64),
|
||||
pageloadtiming_domcontentloadedeventstart Nullable(UInt64),
|
||||
pageloadtiming_firstcontentfulpaint Nullable(UInt64),
|
||||
pageloadtiming_firstpaint Nullable(UInt64),
|
||||
pageloadtiming_loadeventend Nullable(UInt64),
|
||||
pageloadtiming_loadeventstart Nullable(UInt64),
|
||||
pageloadtiming_requeststart Nullable(UInt64),
|
||||
pageloadtiming_responseend Nullable(UInt64),
|
||||
pageloadtiming_responsestart Nullable(UInt64),
|
||||
pagerendertiming_speedindex Nullable(UInt64),
|
||||
pagerendertiming_timetointeractive Nullable(UInt64),
|
||||
pagerendertiming_visuallycomplete Nullable(UInt64),
|
||||
performancetrack_frames Nullable(Int64),
|
||||
performancetrack_ticks Nullable(Int64),
|
||||
performancetrack_totaljsheapsize Nullable(UInt64),
|
||||
performancetrack_usedjsheapsize Nullable(UInt64),
|
||||
performancetrackaggr_avgcpu Nullable(UInt64),
|
||||
performancetrackaggr_avgfps Nullable(UInt64),
|
||||
performancetrackaggr_avgtotaljsheapsize Nullable(UInt64),
|
||||
performancetrackaggr_avgusedjsheapsize Nullable(UInt64),
|
||||
performancetrackaggr_maxcpu Nullable(UInt64),
|
||||
performancetrackaggr_maxfps Nullable(UInt64),
|
||||
performancetrackaggr_maxtotaljsheapsize Nullable(UInt64),
|
||||
performancetrackaggr_maxusedjsheapsize Nullable(UInt64),
|
||||
performancetrackaggr_mincpu Nullable(UInt64),
|
||||
performancetrackaggr_minfps Nullable(UInt64),
|
||||
performancetrackaggr_mintotaljsheapsize Nullable(UInt64),
|
||||
performancetrackaggr_minusedjsheapsize Nullable(UInt64),
|
||||
performancetrackaggr_timestampend Nullable(Datetime),
|
||||
performancetrackaggr_timestampstart Nullable(Datetime),
|
||||
profiler_args Nullable(String),
|
||||
profiler_duration Nullable(UInt64),
|
||||
profiler_name Nullable(String),
|
||||
profiler_result Nullable(String),
|
||||
rawcustomevent_name Nullable(String),
|
||||
rawcustomevent_payload Nullable(String),
|
||||
rawerrorevent_message Nullable(String),
|
||||
rawerrorevent_name Nullable(String),
|
||||
rawerrorevent_payload Nullable(String),
|
||||
rawerrorevent_source Nullable(String),
|
||||
rawerrorevent_timestamp Nullable(Datetime),
|
||||
redux_action Nullable(String),
|
||||
redux_duration Nullable(UInt64),
|
||||
redux_state Nullable(String),
|
||||
removenode_id Nullable(UInt64),
|
||||
removenodeattribute_id Nullable(UInt64),
|
||||
removenodeattribute_name Nullable(String),
|
||||
resourceevent_decodedbodysize Nullable(UInt64),
|
||||
resourceevent_duration Nullable(UInt64),
|
||||
resourceevent_encodedbodysize Nullable(UInt64),
|
||||
resourceevent_headersize Nullable(UInt64),
|
||||
resourceevent_messageid Nullable(UInt64),
|
||||
resourceevent_method Nullable(String),
|
||||
resourceevent_status Nullable(UInt64),
|
||||
resourceevent_success Nullable(UInt8),
|
||||
resourceevent_timestamp Nullable(Datetime),
|
||||
resourceevent_ttfb Nullable(UInt64),
|
||||
resourceevent_type Nullable(String),
|
||||
resourceevent_url Nullable(String),
|
||||
resourcetiming_decodedbodysize Nullable(UInt64),
|
||||
resourcetiming_duration Nullable(UInt64),
|
||||
resourcetiming_encodedbodysize Nullable(UInt64),
|
||||
resourcetiming_headersize Nullable(UInt64),
|
||||
resourcetiming_initiator Nullable(String),
|
||||
resourcetiming_timestamp Nullable(Datetime),
|
||||
resourcetiming_ttfb Nullable(UInt64),
|
||||
resourcetiming_url Nullable(String),
|
||||
sessiondisconnect Nullable(UInt8),
|
||||
sessiondisconnect_timestamp Nullable(Datetime),
|
||||
sessionend Nullable(UInt8),
|
||||
sessionend_timestamp Nullable(Datetime),
|
||||
sessionstart_projectid Nullable(UInt64),
|
||||
sessionstart_revid Nullable(String),
|
||||
sessionstart_timestamp Nullable(Datetime),
|
||||
sessionstart_trackerversion Nullable(String),
|
||||
sessionstart_useragent Nullable(String),
|
||||
sessionstart_userbrowser Nullable(String),
|
||||
sessionstart_userbrowserversion Nullable(String),
|
||||
sessionstart_usercountry Nullable(String),
|
||||
sessionstart_userdevice Nullable(String),
|
||||
sessionstart_userdeviceheapsize Nullable(UInt64),
|
||||
sessionstart_userdevicememorysize Nullable(UInt64),
|
||||
sessionstart_userdevicetype Nullable(String),
|
||||
sessionstart_useros Nullable(String),
|
||||
sessionstart_userosversion Nullable(String),
|
||||
sessionstart_useruuid Nullable(String),
|
||||
setcssdata_data Nullable(UInt64),
|
||||
setcssdata_id Nullable(UInt64),
|
||||
setinputchecked_checked Nullable(UInt64),
|
||||
setinputchecked_id Nullable(UInt64),
|
||||
setinputtarget_id Nullable(UInt64),
|
||||
setinputtarget_label Nullable(UInt64),
|
||||
setinputvalue_id Nullable(UInt64),
|
||||
setinputvalue_mask Nullable(UInt64),
|
||||
setinputvalue_value Nullable(UInt64),
|
||||
setnodeattribute_id Nullable(UInt64),
|
||||
setnodeattribute_name Nullable(UInt64),
|
||||
setnodeattribute_value Nullable(UInt64),
|
||||
setnodedata_data Nullable(UInt64),
|
||||
setnodedata_id Nullable(UInt64),
|
||||
setnodescroll_id Nullable(UInt64),
|
||||
setnodescroll_x Nullable(Int64),
|
||||
setnodescroll_y Nullable(Int64),
|
||||
setpagelocation_navigationstart Nullable(UInt64),
|
||||
setpagelocation_referrer Nullable(String),
|
||||
setpagelocation_url Nullable(String),
|
||||
setpagevisibility_hidden Nullable(UInt8),
|
||||
setviewportscroll_x Nullable(Int64),
|
||||
setviewportscroll_y Nullable(Int64),
|
||||
setviewportsize_height Nullable(UInt64),
|
||||
setviewportsize_width Nullable(UInt64),
|
||||
stateaction_type Nullable(String),
|
||||
stateactionevent_messageid Nullable(UInt64),
|
||||
stateactionevent_timestamp Nullable(Datetime),
|
||||
stateactionevent_type Nullable(String),
|
||||
timestamp_timestamp Nullable(Datetime),
|
||||
useranonymousid_id Nullable(String),
|
||||
userid_id Nullable(String),
|
||||
vuex_mutation Nullable(String),
|
||||
vuex_state Nullable(String),
|
||||
received_at Datetime,
|
||||
batch_order_number Int64
|
||||
)
|
||||
ENGINE = Buffer(default, negatives, 16, 10, 120, 10000, 1000000, 10000, 100000000);
|
||||
|
|
|
|||
|
|
@ -1,216 +1,218 @@
|
|||
create table negatives (
|
||||
sessionid UInt64,
|
||||
clickevent_hesitationtime Nullable(UInt64),
|
||||
clickevent_label Nullable(String),
|
||||
clickevent_messageid Nullable(UInt64),
|
||||
clickevent_timestamp Nullable(Datetime),
|
||||
connectioninformation_downlink Nullable(UInt64),
|
||||
connectioninformation_type Nullable(String),
|
||||
consolelog_level Nullable(String),
|
||||
consolelog_value Nullable(String),
|
||||
cpuissue_duration Nullable(UInt64),
|
||||
cpuissue_rate Nullable(UInt64),
|
||||
cpuissue_timestamp Nullable(Datetime),
|
||||
createdocument Nullable(UInt8),
|
||||
createelementnode_id Nullable(UInt64),
|
||||
createelementnode_parentid Nullable(UInt64),
|
||||
cssdeleterule_index Nullable(UInt64),
|
||||
cssdeleterule_stylesheetid Nullable(UInt64),
|
||||
cssinsertrule_index Nullable(UInt64),
|
||||
cssinsertrule_rule Nullable(String),
|
||||
cssinsertrule_stylesheetid Nullable(UInt64),
|
||||
customevent_messageid Nullable(UInt64),
|
||||
customevent_name Nullable(String),
|
||||
customevent_payload Nullable(String),
|
||||
customevent_timestamp Nullable(Datetime),
|
||||
domdrop_timestamp Nullable(Datetime),
|
||||
errorevent_message Nullable(String),
|
||||
errorevent_messageid Nullable(UInt64),
|
||||
errorevent_name Nullable(String),
|
||||
errorevent_payload Nullable(String),
|
||||
errorevent_source Nullable(String),
|
||||
errorevent_timestamp Nullable(Datetime),
|
||||
fetch_duration Nullable(UInt64),
|
||||
fetch_method Nullable(String),
|
||||
fetch_request Nullable(String),
|
||||
fetch_status Nullable(UInt64),
|
||||
fetch_timestamp Nullable(Datetime),
|
||||
fetch_url Nullable(String),
|
||||
graphql_operationkind Nullable(String),
|
||||
graphql_operationname Nullable(String),
|
||||
graphql_response Nullable(String),
|
||||
graphql_variables Nullable(String),
|
||||
graphqlevent_messageid Nullable(UInt64),
|
||||
graphqlevent_name Nullable(String),
|
||||
graphqlevent_timestamp Nullable(Datetime),
|
||||
inputevent_label Nullable(String),
|
||||
inputevent_messageid Nullable(UInt64),
|
||||
inputevent_timestamp Nullable(Datetime),
|
||||
inputevent_value Nullable(String),
|
||||
inputevent_valuemasked Nullable(UInt8),
|
||||
jsexception_message Nullable(String),
|
||||
jsexception_name Nullable(String),
|
||||
jsexception_payload Nullable(String),
|
||||
longtasks_timestamp Nullable(Datetime),
|
||||
longtasks_duration Nullable(UInt64),
|
||||
longtasks_containerid Nullable(String),
|
||||
longtasks_containersrc Nullable(String),
|
||||
memoryissue_duration Nullable(UInt64),
|
||||
memoryissue_rate Nullable(UInt64),
|
||||
memoryissue_timestamp Nullable(Datetime),
|
||||
metadata_key Nullable(String),
|
||||
metadata_value Nullable(String),
|
||||
mobx_payload Nullable(String),
|
||||
mobx_type Nullable(String),
|
||||
mouseclick_id Nullable(UInt64),
|
||||
mouseclick_hesitationtime Nullable(UInt64),
|
||||
mouseclick_label Nullable(String),
|
||||
mousemove_x Nullable(UInt64),
|
||||
mousemove_y Nullable(UInt64),
|
||||
movenode_id Nullable(UInt64),
|
||||
movenode_index Nullable(UInt64),
|
||||
movenode_parentid Nullable(UInt64),
|
||||
ngrx_action Nullable(String),
|
||||
ngrx_duration Nullable(UInt64),
|
||||
ngrx_state Nullable(String),
|
||||
pageevent_domcontentloadedeventend Nullable(UInt64),
|
||||
pageevent_domcontentloadedeventstart Nullable(UInt64),
|
||||
pageevent_firstcontentfulpaint Nullable(UInt64),
|
||||
pageevent_firstpaint Nullable(UInt64),
|
||||
pageevent_loaded Nullable(UInt8),
|
||||
pageevent_loadeventend Nullable(UInt64),
|
||||
pageevent_loadeventstart Nullable(UInt64),
|
||||
pageevent_messageid Nullable(UInt64),
|
||||
pageevent_referrer Nullable(String),
|
||||
pageevent_requeststart Nullable(UInt64),
|
||||
pageevent_responseend Nullable(UInt64),
|
||||
pageevent_responsestart Nullable(UInt64),
|
||||
pageevent_speedindex Nullable(UInt64),
|
||||
pageevent_timestamp Nullable(Datetime),
|
||||
pageevent_url Nullable(String),
|
||||
pageloadtiming_domcontentloadedeventend Nullable(UInt64),
|
||||
pageloadtiming_domcontentloadedeventstart Nullable(UInt64),
|
||||
pageloadtiming_firstcontentfulpaint Nullable(UInt64),
|
||||
pageloadtiming_firstpaint Nullable(UInt64),
|
||||
pageloadtiming_loadeventend Nullable(UInt64),
|
||||
pageloadtiming_loadeventstart Nullable(UInt64),
|
||||
pageloadtiming_requeststart Nullable(UInt64),
|
||||
pageloadtiming_responseend Nullable(UInt64),
|
||||
pageloadtiming_responsestart Nullable(UInt64),
|
||||
pagerendertiming_speedindex Nullable(UInt64),
|
||||
pagerendertiming_timetointeractive Nullable(UInt64),
|
||||
pagerendertiming_visuallycomplete Nullable(UInt64),
|
||||
performancetrack_frames Nullable(Int64),
|
||||
performancetrack_ticks Nullable(Int64),
|
||||
performancetrack_totaljsheapsize Nullable(UInt64),
|
||||
performancetrack_usedjsheapsize Nullable(UInt64),
|
||||
performancetrackaggr_avgcpu Nullable(UInt64),
|
||||
performancetrackaggr_avgfps Nullable(UInt64),
|
||||
performancetrackaggr_avgtotaljsheapsize Nullable(UInt64),
|
||||
performancetrackaggr_avgusedjsheapsize Nullable(UInt64),
|
||||
performancetrackaggr_maxcpu Nullable(UInt64),
|
||||
performancetrackaggr_maxfps Nullable(UInt64),
|
||||
performancetrackaggr_maxtotaljsheapsize Nullable(UInt64),
|
||||
performancetrackaggr_maxusedjsheapsize Nullable(UInt64),
|
||||
performancetrackaggr_mincpu Nullable(UInt64),
|
||||
performancetrackaggr_minfps Nullable(UInt64),
|
||||
performancetrackaggr_mintotaljsheapsize Nullable(UInt64),
|
||||
performancetrackaggr_minusedjsheapsize Nullable(UInt64),
|
||||
performancetrackaggr_timestampend Nullable(Datetime),
|
||||
performancetrackaggr_timestampstart Nullable(Datetime),
|
||||
profiler_args Nullable(String),
|
||||
profiler_duration Nullable(UInt64),
|
||||
profiler_name Nullable(String),
|
||||
profiler_result Nullable(String),
|
||||
rawcustomevent_name Nullable(String),
|
||||
rawcustomevent_payload Nullable(String),
|
||||
rawerrorevent_message Nullable(String),
|
||||
rawerrorevent_name Nullable(String),
|
||||
rawerrorevent_payload Nullable(String),
|
||||
rawerrorevent_source Nullable(String),
|
||||
rawerrorevent_timestamp Nullable(Datetime),
|
||||
redux_action Nullable(String),
|
||||
redux_duration Nullable(UInt64),
|
||||
redux_state Nullable(String),
|
||||
removenode_id Nullable(UInt64),
|
||||
removenodeattribute_id Nullable(UInt64),
|
||||
removenodeattribute_name Nullable(String),
|
||||
resourceevent_decodedbodysize Nullable(UInt64),
|
||||
resourceevent_duration Nullable(UInt64),
|
||||
resourceevent_encodedbodysize Nullable(UInt64),
|
||||
resourceevent_headersize Nullable(UInt64),
|
||||
resourceevent_messageid Nullable(UInt64),
|
||||
resourceevent_method Nullable(String),
|
||||
resourceevent_status Nullable(UInt64),
|
||||
resourceevent_success Nullable(UInt8),
|
||||
resourceevent_timestamp Nullable(Datetime),
|
||||
resourceevent_ttfb Nullable(UInt64),
|
||||
resourceevent_type Nullable(String),
|
||||
resourceevent_url Nullable(String),
|
||||
resourcetiming_decodedbodysize Nullable(UInt64),
|
||||
resourcetiming_duration Nullable(UInt64),
|
||||
resourcetiming_encodedbodysize Nullable(UInt64),
|
||||
resourcetiming_headersize Nullable(UInt64),
|
||||
resourcetiming_initiator Nullable(String),
|
||||
resourcetiming_timestamp Nullable(Datetime),
|
||||
resourcetiming_ttfb Nullable(UInt64),
|
||||
resourcetiming_url Nullable(String),
|
||||
sessiondisconnect Nullable(UInt8),
|
||||
sessiondisconnect_timestamp Nullable(Datetime),
|
||||
sessionend Nullable(UInt8),
|
||||
sessionend_timestamp Nullable(Datetime),
|
||||
sessionstart_projectid Nullable(UInt64),
|
||||
sessionstart_revid Nullable(String),
|
||||
sessionstart_timestamp Nullable(Datetime),
|
||||
sessionstart_trackerversion Nullable(String),
|
||||
sessionstart_useragent Nullable(String),
|
||||
sessionstart_userbrowser Nullable(String),
|
||||
sessionstart_userbrowserversion Nullable(String),
|
||||
sessionstart_usercountry Nullable(String),
|
||||
sessionstart_userdevice Nullable(String),
|
||||
sessionstart_userdeviceheapsize Nullable(UInt64),
|
||||
sessionstart_userdevicememorysize Nullable(UInt64),
|
||||
sessionstart_userdevicetype Nullable(String),
|
||||
sessionstart_useros Nullable(String),
|
||||
sessionstart_userosversion Nullable(String),
|
||||
sessionstart_useruuid Nullable(String),
|
||||
setcssdata_data Nullable(UInt64),
|
||||
setcssdata_id Nullable(UInt64),
|
||||
setinputchecked_checked Nullable(UInt64),
|
||||
setinputchecked_id Nullable(UInt64),
|
||||
setinputtarget_id Nullable(UInt64),
|
||||
setinputtarget_label Nullable(UInt64),
|
||||
setinputvalue_id Nullable(UInt64),
|
||||
setinputvalue_mask Nullable(UInt64),
|
||||
setinputvalue_value Nullable(UInt64),
|
||||
setnodeattribute_id Nullable(UInt64),
|
||||
setnodeattribute_name Nullable(UInt64),
|
||||
setnodeattribute_value Nullable(UInt64),
|
||||
setnodedata_data Nullable(UInt64),
|
||||
setnodedata_id Nullable(UInt64),
|
||||
setnodescroll_id Nullable(UInt64),
|
||||
setnodescroll_x Nullable(Int64),
|
||||
setnodescroll_y Nullable(Int64),
|
||||
setpagelocation_navigationstart Nullable(UInt64),
|
||||
setpagelocation_referrer Nullable(String),
|
||||
setpagelocation_url Nullable(String),
|
||||
setpagevisibility_hidden Nullable(UInt8),
|
||||
setviewportscroll_x Nullable(Int64),
|
||||
setviewportscroll_y Nullable(Int64),
|
||||
setviewportsize_height Nullable(UInt64),
|
||||
setviewportsize_width Nullable(UInt64),
|
||||
stateaction_type Nullable(String),
|
||||
stateactionevent_messageid Nullable(UInt64),
|
||||
stateactionevent_timestamp Nullable(Datetime),
|
||||
stateactionevent_type Nullable(String),
|
||||
timestamp_timestamp Nullable(Datetime),
|
||||
useranonymousid_id Nullable(String),
|
||||
userid_id Nullable(String),
|
||||
vuex_mutation Nullable(String),
|
||||
vuex_state Nullable(String),
|
||||
received_at Datetime,
|
||||
batch_order_number Int64)
|
||||
ENGINE = MergeTree()
|
||||
PARTITION BY toYYYYMM(received_at)
|
||||
ORDER BY (received_at, batch_order_number)
|
||||
SETTINGS min_bytes_for_wide_part=1, use_minimalistic_part_header_in_zookeeper=1;
|
||||
CREATE TABLE IF NOT EXISTS negatives
|
||||
(
|
||||
sessionid UInt64,
|
||||
clickevent_hesitationtime Nullable(UInt64),
|
||||
clickevent_label Nullable(String),
|
||||
clickevent_messageid Nullable(UInt64),
|
||||
clickevent_timestamp Nullable(Datetime),
|
||||
connectioninformation_downlink Nullable(UInt64),
|
||||
connectioninformation_type Nullable(String),
|
||||
consolelog_level Nullable(String),
|
||||
consolelog_value Nullable(String),
|
||||
cpuissue_duration Nullable(UInt64),
|
||||
cpuissue_rate Nullable(UInt64),
|
||||
cpuissue_timestamp Nullable(Datetime),
|
||||
createdocument Nullable(UInt8),
|
||||
createelementnode_id Nullable(UInt64),
|
||||
createelementnode_parentid Nullable(UInt64),
|
||||
cssdeleterule_index Nullable(UInt64),
|
||||
cssdeleterule_stylesheetid Nullable(UInt64),
|
||||
cssinsertrule_index Nullable(UInt64),
|
||||
cssinsertrule_rule Nullable(String),
|
||||
cssinsertrule_stylesheetid Nullable(UInt64),
|
||||
customevent_messageid Nullable(UInt64),
|
||||
customevent_name Nullable(String),
|
||||
customevent_payload Nullable(String),
|
||||
customevent_timestamp Nullable(Datetime),
|
||||
domdrop_timestamp Nullable(Datetime),
|
||||
errorevent_message Nullable(String),
|
||||
errorevent_messageid Nullable(UInt64),
|
||||
errorevent_name Nullable(String),
|
||||
errorevent_payload Nullable(String),
|
||||
errorevent_source Nullable(String),
|
||||
errorevent_timestamp Nullable(Datetime),
|
||||
fetch_duration Nullable(UInt64),
|
||||
fetch_method Nullable(String),
|
||||
fetch_request Nullable(String),
|
||||
fetch_status Nullable(UInt64),
|
||||
fetch_timestamp Nullable(Datetime),
|
||||
fetch_url Nullable(String),
|
||||
graphql_operationkind Nullable(String),
|
||||
graphql_operationname Nullable(String),
|
||||
graphql_response Nullable(String),
|
||||
graphql_variables Nullable(String),
|
||||
graphqlevent_messageid Nullable(UInt64),
|
||||
graphqlevent_name Nullable(String),
|
||||
graphqlevent_timestamp Nullable(Datetime),
|
||||
inputevent_label Nullable(String),
|
||||
inputevent_messageid Nullable(UInt64),
|
||||
inputevent_timestamp Nullable(Datetime),
|
||||
inputevent_value Nullable(String),
|
||||
inputevent_valuemasked Nullable(UInt8),
|
||||
jsexception_message Nullable(String),
|
||||
jsexception_name Nullable(String),
|
||||
jsexception_payload Nullable(String),
|
||||
longtasks_timestamp Nullable(Datetime),
|
||||
longtasks_duration Nullable(UInt64),
|
||||
longtasks_containerid Nullable(String),
|
||||
longtasks_containersrc Nullable(String),
|
||||
memoryissue_duration Nullable(UInt64),
|
||||
memoryissue_rate Nullable(UInt64),
|
||||
memoryissue_timestamp Nullable(Datetime),
|
||||
metadata_key Nullable(String),
|
||||
metadata_value Nullable(String),
|
||||
mobx_payload Nullable(String),
|
||||
mobx_type Nullable(String),
|
||||
mouseclick_id Nullable(UInt64),
|
||||
mouseclick_hesitationtime Nullable(UInt64),
|
||||
mouseclick_label Nullable(String),
|
||||
mousemove_x Nullable(UInt64),
|
||||
mousemove_y Nullable(UInt64),
|
||||
movenode_id Nullable(UInt64),
|
||||
movenode_index Nullable(UInt64),
|
||||
movenode_parentid Nullable(UInt64),
|
||||
ngrx_action Nullable(String),
|
||||
ngrx_duration Nullable(UInt64),
|
||||
ngrx_state Nullable(String),
|
||||
pageevent_domcontentloadedeventend Nullable(UInt64),
|
||||
pageevent_domcontentloadedeventstart Nullable(UInt64),
|
||||
pageevent_firstcontentfulpaint Nullable(UInt64),
|
||||
pageevent_firstpaint Nullable(UInt64),
|
||||
pageevent_loaded Nullable(UInt8),
|
||||
pageevent_loadeventend Nullable(UInt64),
|
||||
pageevent_loadeventstart Nullable(UInt64),
|
||||
pageevent_messageid Nullable(UInt64),
|
||||
pageevent_referrer Nullable(String),
|
||||
pageevent_requeststart Nullable(UInt64),
|
||||
pageevent_responseend Nullable(UInt64),
|
||||
pageevent_responsestart Nullable(UInt64),
|
||||
pageevent_speedindex Nullable(UInt64),
|
||||
pageevent_timestamp Nullable(Datetime),
|
||||
pageevent_url Nullable(String),
|
||||
pageloadtiming_domcontentloadedeventend Nullable(UInt64),
|
||||
pageloadtiming_domcontentloadedeventstart Nullable(UInt64),
|
||||
pageloadtiming_firstcontentfulpaint Nullable(UInt64),
|
||||
pageloadtiming_firstpaint Nullable(UInt64),
|
||||
pageloadtiming_loadeventend Nullable(UInt64),
|
||||
pageloadtiming_loadeventstart Nullable(UInt64),
|
||||
pageloadtiming_requeststart Nullable(UInt64),
|
||||
pageloadtiming_responseend Nullable(UInt64),
|
||||
pageloadtiming_responsestart Nullable(UInt64),
|
||||
pagerendertiming_speedindex Nullable(UInt64),
|
||||
pagerendertiming_timetointeractive Nullable(UInt64),
|
||||
pagerendertiming_visuallycomplete Nullable(UInt64),
|
||||
performancetrack_frames Nullable(Int64),
|
||||
performancetrack_ticks Nullable(Int64),
|
||||
performancetrack_totaljsheapsize Nullable(UInt64),
|
||||
performancetrack_usedjsheapsize Nullable(UInt64),
|
||||
performancetrackaggr_avgcpu Nullable(UInt64),
|
||||
performancetrackaggr_avgfps Nullable(UInt64),
|
||||
performancetrackaggr_avgtotaljsheapsize Nullable(UInt64),
|
||||
performancetrackaggr_avgusedjsheapsize Nullable(UInt64),
|
||||
performancetrackaggr_maxcpu Nullable(UInt64),
|
||||
performancetrackaggr_maxfps Nullable(UInt64),
|
||||
performancetrackaggr_maxtotaljsheapsize Nullable(UInt64),
|
||||
performancetrackaggr_maxusedjsheapsize Nullable(UInt64),
|
||||
performancetrackaggr_mincpu Nullable(UInt64),
|
||||
performancetrackaggr_minfps Nullable(UInt64),
|
||||
performancetrackaggr_mintotaljsheapsize Nullable(UInt64),
|
||||
performancetrackaggr_minusedjsheapsize Nullable(UInt64),
|
||||
performancetrackaggr_timestampend Nullable(Datetime),
|
||||
performancetrackaggr_timestampstart Nullable(Datetime),
|
||||
profiler_args Nullable(String),
|
||||
profiler_duration Nullable(UInt64),
|
||||
profiler_name Nullable(String),
|
||||
profiler_result Nullable(String),
|
||||
rawcustomevent_name Nullable(String),
|
||||
rawcustomevent_payload Nullable(String),
|
||||
rawerrorevent_message Nullable(String),
|
||||
rawerrorevent_name Nullable(String),
|
||||
rawerrorevent_payload Nullable(String),
|
||||
rawerrorevent_source Nullable(String),
|
||||
rawerrorevent_timestamp Nullable(Datetime),
|
||||
redux_action Nullable(String),
|
||||
redux_duration Nullable(UInt64),
|
||||
redux_state Nullable(String),
|
||||
removenode_id Nullable(UInt64),
|
||||
removenodeattribute_id Nullable(UInt64),
|
||||
removenodeattribute_name Nullable(String),
|
||||
resourceevent_decodedbodysize Nullable(UInt64),
|
||||
resourceevent_duration Nullable(UInt64),
|
||||
resourceevent_encodedbodysize Nullable(UInt64),
|
||||
resourceevent_headersize Nullable(UInt64),
|
||||
resourceevent_messageid Nullable(UInt64),
|
||||
resourceevent_method Nullable(String),
|
||||
resourceevent_status Nullable(UInt64),
|
||||
resourceevent_success Nullable(UInt8),
|
||||
resourceevent_timestamp Nullable(Datetime),
|
||||
resourceevent_ttfb Nullable(UInt64),
|
||||
resourceevent_type Nullable(String),
|
||||
resourceevent_url Nullable(String),
|
||||
resourcetiming_decodedbodysize Nullable(UInt64),
|
||||
resourcetiming_duration Nullable(UInt64),
|
||||
resourcetiming_encodedbodysize Nullable(UInt64),
|
||||
resourcetiming_headersize Nullable(UInt64),
|
||||
resourcetiming_initiator Nullable(String),
|
||||
resourcetiming_timestamp Nullable(Datetime),
|
||||
resourcetiming_ttfb Nullable(UInt64),
|
||||
resourcetiming_url Nullable(String),
|
||||
sessiondisconnect Nullable(UInt8),
|
||||
sessiondisconnect_timestamp Nullable(Datetime),
|
||||
sessionend Nullable(UInt8),
|
||||
sessionend_timestamp Nullable(Datetime),
|
||||
sessionstart_projectid Nullable(UInt64),
|
||||
sessionstart_revid Nullable(String),
|
||||
sessionstart_timestamp Nullable(Datetime),
|
||||
sessionstart_trackerversion Nullable(String),
|
||||
sessionstart_useragent Nullable(String),
|
||||
sessionstart_userbrowser Nullable(String),
|
||||
sessionstart_userbrowserversion Nullable(String),
|
||||
sessionstart_usercountry Nullable(String),
|
||||
sessionstart_userdevice Nullable(String),
|
||||
sessionstart_userdeviceheapsize Nullable(UInt64),
|
||||
sessionstart_userdevicememorysize Nullable(UInt64),
|
||||
sessionstart_userdevicetype Nullable(String),
|
||||
sessionstart_useros Nullable(String),
|
||||
sessionstart_userosversion Nullable(String),
|
||||
sessionstart_useruuid Nullable(String),
|
||||
setcssdata_data Nullable(UInt64),
|
||||
setcssdata_id Nullable(UInt64),
|
||||
setinputchecked_checked Nullable(UInt64),
|
||||
setinputchecked_id Nullable(UInt64),
|
||||
setinputtarget_id Nullable(UInt64),
|
||||
setinputtarget_label Nullable(UInt64),
|
||||
setinputvalue_id Nullable(UInt64),
|
||||
setinputvalue_mask Nullable(UInt64),
|
||||
setinputvalue_value Nullable(UInt64),
|
||||
setnodeattribute_id Nullable(UInt64),
|
||||
setnodeattribute_name Nullable(UInt64),
|
||||
setnodeattribute_value Nullable(UInt64),
|
||||
setnodedata_data Nullable(UInt64),
|
||||
setnodedata_id Nullable(UInt64),
|
||||
setnodescroll_id Nullable(UInt64),
|
||||
setnodescroll_x Nullable(Int64),
|
||||
setnodescroll_y Nullable(Int64),
|
||||
setpagelocation_navigationstart Nullable(UInt64),
|
||||
setpagelocation_referrer Nullable(String),
|
||||
setpagelocation_url Nullable(String),
|
||||
setpagevisibility_hidden Nullable(UInt8),
|
||||
setviewportscroll_x Nullable(Int64),
|
||||
setviewportscroll_y Nullable(Int64),
|
||||
setviewportsize_height Nullable(UInt64),
|
||||
setviewportsize_width Nullable(UInt64),
|
||||
stateaction_type Nullable(String),
|
||||
stateactionevent_messageid Nullable(UInt64),
|
||||
stateactionevent_timestamp Nullable(Datetime),
|
||||
stateactionevent_type Nullable(String),
|
||||
timestamp_timestamp Nullable(Datetime),
|
||||
useranonymousid_id Nullable(String),
|
||||
userid_id Nullable(String),
|
||||
vuex_mutation Nullable(String),
|
||||
vuex_state Nullable(String),
|
||||
received_at Datetime,
|
||||
batch_order_number Int64
|
||||
)
|
||||
ENGINE = MergeTree()
|
||||
PARTITION BY toYYYYMM(received_at)
|
||||
ORDER BY (received_at, batch_order_number)
|
||||
SETTINGS min_bytes_for_wide_part = 1, use_minimalistic_part_header_in_zookeeper = 1;
|
||||
|
|
@ -1,38 +1,39 @@
|
|||
CREATE TABLE pages (
|
||||
session_id UInt64,
|
||||
project_id UInt32,
|
||||
tracker_version String,
|
||||
rev_id Nullable(String),
|
||||
user_uuid UUID,
|
||||
user_os String,
|
||||
user_os_version Nullable(String),
|
||||
user_browser String,
|
||||
user_browser_version Nullable(String),
|
||||
user_device Nullable(String),
|
||||
user_device_type Enum8('other'=0, 'desktop'=1, 'mobile'=2),
|
||||
user_country Enum8('UN'=-128, 'RW'=-127, 'SO'=-126, 'YE'=-125, 'IQ'=-124, 'SA'=-123, 'IR'=-122, 'CY'=-121, 'TZ'=-120, 'SY'=-119, 'AM'=-118, 'KE'=-117, 'CD'=-116, 'DJ'=-115, 'UG'=-114, 'CF'=-113, 'SC'=-112, 'JO'=-111, 'LB'=-110, 'KW'=-109, 'OM'=-108, 'QA'=-107, 'BH'=-106, 'AE'=-105, 'IL'=-104, 'TR'=-103, 'ET'=-102, 'ER'=-101, 'EG'=-100, 'SD'=-99, 'GR'=-98, 'BI'=-97, 'EE'=-96, 'LV'=-95, 'AZ'=-94, 'LT'=-93, 'SJ'=-92, 'GE'=-91, 'MD'=-90, 'BY'=-89, 'FI'=-88, 'AX'=-87, 'UA'=-86, 'MK'=-85, 'HU'=-84, 'BG'=-83, 'AL'=-82, 'PL'=-81, 'RO'=-80, 'XK'=-79, 'ZW'=-78, 'ZM'=-77, 'KM'=-76, 'MW'=-75, 'LS'=-74, 'BW'=-73, 'MU'=-72, 'SZ'=-71, 'RE'=-70, 'ZA'=-69, 'YT'=-68, 'MZ'=-67, 'MG'=-66, 'AF'=-65, 'PK'=-64, 'BD'=-63, 'TM'=-62, 'TJ'=-61, 'LK'=-60, 'BT'=-59, 'IN'=-58, 'MV'=-57, 'IO'=-56, 'NP'=-55, 'MM'=-54, 'UZ'=-53, 'KZ'=-52, 'KG'=-51, 'TF'=-50, 'HM'=-49, 'CC'=-48, 'PW'=-47, 'VN'=-46, 'TH'=-45, 'ID'=-44, 'LA'=-43, 'TW'=-42, 'PH'=-41, 'MY'=-40, 'CN'=-39, 'HK'=-38, 'BN'=-37, 'MO'=-36, 'KH'=-35, 'KR'=-34, 'JP'=-33, 'KP'=-32, 'SG'=-31, 'CK'=-30, 'TL'=-29, 'RU'=-28, 'MN'=-27, 'AU'=-26, 'CX'=-25, 'MH'=-24, 'FM'=-23, 'PG'=-22, 'SB'=-21, 'TV'=-20, 'NR'=-19, 'VU'=-18, 'NC'=-17, 'NF'=-16, 'NZ'=-15, 'FJ'=-14, 'LY'=-13, 'CM'=-12, 'SN'=-11, 'CG'=-10, 'PT'=-9, 'LR'=-8, 'CI'=-7, 'GH'=-6, 'GQ'=-5, 'NG'=-4, 'BF'=-3, 'TG'=-2, 'GW'=-1, 'MR'=0, 'BJ'=1, 'GA'=2, 'SL'=3, 'ST'=4, 'GI'=5, 'GM'=6, 'GN'=7, 'TD'=8, 'NE'=9, 'ML'=10, 'EH'=11, 'TN'=12, 'ES'=13, 'MA'=14, 'MT'=15, 'DZ'=16, 'FO'=17, 'DK'=18, 'IS'=19, 'GB'=20, 'CH'=21, 'SE'=22, 'NL'=23, 'AT'=24, 'BE'=25, 'DE'=26, 'LU'=27, 'IE'=28, 'MC'=29, 'FR'=30, 'AD'=31, 'LI'=32, 'JE'=33, 'IM'=34, 'GG'=35, 'SK'=36, 'CZ'=37, 'NO'=38, 'VA'=39, 'SM'=40, 'IT'=41, 'SI'=42, 'ME'=43, 'HR'=44, 'BA'=45, 'AO'=46, 'NA'=47, 'SH'=48, 'BV'=49, 'BB'=50, 'CV'=51, 'GY'=52, 'GF'=53, 'SR'=54, 'PM'=55, 'GL'=56, 'PY'=57, 'UY'=58, 'BR'=59, 'FK'=60, 'GS'=61, 'JM'=62, 'DO'=63, 'CU'=64, 'MQ'=65, 'BS'=66, 'BM'=67, 'AI'=68, 'TT'=69, 'KN'=70, 'DM'=71, 'AG'=72, 'LC'=73, 'TC'=74, 'AW'=75, 'VG'=76, 'VC'=77, 'MS'=78, 'MF'=79, 'BL'=80, 'GP'=81, 'GD'=82, 'KY'=83, 'BZ'=84, 'SV'=85, 'GT'=86, 'HN'=87, 'NI'=88, 'CR'=89, 'VE'=90, 'EC'=91, 'CO'=92, 'PA'=93, 'HT'=94, 'AR'=95, 'CL'=96, 'BO'=97, 'PE'=98, 'MX'=99, 'PF'=100, 'PN'=101, 'KI'=102, 'TK'=103, 'TO'=104, 'WF'=105, 'WS'=106, 'NU'=107, 'MP'=108, 'GU'=109, 'PR'=110, 'VI'=111, 'UM'=112, 'AS'=113, 'CA'=114, 'US'=115, 'PS'=116, 'RS'=117, 'AQ'=118, 'SX'=119, 'CW'=120, 'BQ'=121, 'SS'=122),
|
||||
datetime DateTime,
|
||||
url String,
|
||||
url_host String MATERIALIZED lower(domain(url)),
|
||||
url_path String MATERIALIZED lower(pathFull(url)),
|
||||
request_start Nullable(UInt16),
|
||||
response_start Nullable(UInt16),
|
||||
response_end Nullable(UInt16),
|
||||
dom_content_loaded_event_start Nullable(UInt16),
|
||||
dom_content_loaded_event_end Nullable(UInt16),
|
||||
load_event_start Nullable(UInt16),
|
||||
load_event_end Nullable(UInt16),
|
||||
first_paint Nullable(UInt16),
|
||||
first_contentful_paint Nullable(UInt16),
|
||||
speed_index Nullable(UInt16),
|
||||
visually_complete Nullable(UInt16),
|
||||
time_to_interactive Nullable(UInt16),
|
||||
ttfb Nullable(UInt16) MATERIALIZED if(greaterOrEquals(response_start, request_start), minus(response_start, request_start), Null),
|
||||
ttlb Nullable(UInt16) MATERIALIZED if(greaterOrEquals(response_end, request_start), minus(response_end, request_start), Null),
|
||||
response_time Nullable(UInt16) MATERIALIZED if(greaterOrEquals(response_end, response_start), minus(response_end, response_start), Null),
|
||||
dom_building_time Nullable(UInt16) MATERIALIZED if(greaterOrEquals(dom_content_loaded_event_start, response_end), minus(dom_content_loaded_event_start, response_end), Null),
|
||||
dom_content_loaded_event_time Nullable(UInt16) MATERIALIZED if(greaterOrEquals(dom_content_loaded_event_end, dom_content_loaded_event_start), minus(dom_content_loaded_event_end, dom_content_loaded_event_start), Null),
|
||||
load_event_time Nullable(UInt16) MATERIALIZED if(greaterOrEquals(load_event_end, load_event_start), minus(load_event_end, load_event_start), Null)
|
||||
CREATE TABLE IF NOT EXISTS pages
|
||||
(
|
||||
session_id UInt64,
|
||||
project_id UInt32,
|
||||
tracker_version String,
|
||||
rev_id Nullable(String),
|
||||
user_uuid UUID,
|
||||
user_os String,
|
||||
user_os_version Nullable(String),
|
||||
user_browser String,
|
||||
user_browser_version Nullable(String),
|
||||
user_device Nullable(String),
|
||||
user_device_type Enum8('other'=0, 'desktop'=1, 'mobile'=2),
|
||||
user_country Enum8('UN'=-128, 'RW'=-127, 'SO'=-126, 'YE'=-125, 'IQ'=-124, 'SA'=-123, 'IR'=-122, 'CY'=-121, 'TZ'=-120, 'SY'=-119, 'AM'=-118, 'KE'=-117, 'CD'=-116, 'DJ'=-115, 'UG'=-114, 'CF'=-113, 'SC'=-112, 'JO'=-111, 'LB'=-110, 'KW'=-109, 'OM'=-108, 'QA'=-107, 'BH'=-106, 'AE'=-105, 'IL'=-104, 'TR'=-103, 'ET'=-102, 'ER'=-101, 'EG'=-100, 'SD'=-99, 'GR'=-98, 'BI'=-97, 'EE'=-96, 'LV'=-95, 'AZ'=-94, 'LT'=-93, 'SJ'=-92, 'GE'=-91, 'MD'=-90, 'BY'=-89, 'FI'=-88, 'AX'=-87, 'UA'=-86, 'MK'=-85, 'HU'=-84, 'BG'=-83, 'AL'=-82, 'PL'=-81, 'RO'=-80, 'XK'=-79, 'ZW'=-78, 'ZM'=-77, 'KM'=-76, 'MW'=-75, 'LS'=-74, 'BW'=-73, 'MU'=-72, 'SZ'=-71, 'RE'=-70, 'ZA'=-69, 'YT'=-68, 'MZ'=-67, 'MG'=-66, 'AF'=-65, 'PK'=-64, 'BD'=-63, 'TM'=-62, 'TJ'=-61, 'LK'=-60, 'BT'=-59, 'IN'=-58, 'MV'=-57, 'IO'=-56, 'NP'=-55, 'MM'=-54, 'UZ'=-53, 'KZ'=-52, 'KG'=-51, 'TF'=-50, 'HM'=-49, 'CC'=-48, 'PW'=-47, 'VN'=-46, 'TH'=-45, 'ID'=-44, 'LA'=-43, 'TW'=-42, 'PH'=-41, 'MY'=-40, 'CN'=-39, 'HK'=-38, 'BN'=-37, 'MO'=-36, 'KH'=-35, 'KR'=-34, 'JP'=-33, 'KP'=-32, 'SG'=-31, 'CK'=-30, 'TL'=-29, 'RU'=-28, 'MN'=-27, 'AU'=-26, 'CX'=-25, 'MH'=-24, 'FM'=-23, 'P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=102, 'TK'=103, 'TO'=104, 'WF'=105, 'WS'=106, 'NU'=107, 'MP'=108, 'GU'=109, 'PR'=110, 'VI'=111, 'UM'=112, 'AS'=113, 'CA'=114, 'US'=115, 'PS'=116, 'RS'=117, 'AQ'=118, 'SX'=119, 'CW'=120, 'BQ'=121, 'SS'=122),
|
||||
datetime DateTime,
|
||||
url String,
|
||||
url_host String MATERIALIZED lower(domain (url)),
|
||||
url_path String MATERIALIZED lower(pathFull(url)),
|
||||
request_start Nullable(UInt16),
|
||||
response_start Nullable(UInt16),
|
||||
response_end Nullable(UInt16),
|
||||
dom_content_loaded_event_start Nullable(UInt16),
|
||||
dom_content_loaded_event_end Nullable(UInt16),
|
||||
load_event_start Nullable(UInt16),
|
||||
load_event_end Nullable(UInt16),
|
||||
first_paint Nullable(UInt16),
|
||||
first_contentful_paint Nullable(UInt16),
|
||||
speed_index Nullable(UInt16),
|
||||
visually_complete Nullable(UInt16),
|
||||
time_to_interactive Nullable(UInt16),
|
||||
ttfb Nullable(UInt16) MATERIALIZED if (greaterOrEquals(response_start, request_start), minus(response_start, request_start), Null),
|
||||
ttlb Nullable(UInt16) MATERIALIZED if (greaterOrEquals(response_end, request_start), minus(response_end, request_start), Null),
|
||||
response_time Nullable(UInt16) MATERIALIZED if (greaterOrEquals(response_end, response_start), minus(response_end, response_start), Null),
|
||||
dom_building_time Nullable(UInt16) MATERIALIZED if (greaterOrEquals(dom_content_loaded_event_start, response_end), minus(dom_content_loaded_event_start, response_end), Null),
|
||||
dom_content_loaded_event_time Nullable(UInt16) MATERIALIZED if (greaterOrEquals(dom_content_loaded_event_end, dom_content_loaded_event_start), minus(dom_content_loaded_event_end, dom_content_loaded_event_start), Null),
|
||||
load_event_time Nullable(UInt16) MATERIALIZED if (greaterOrEquals(load_event_end, load_event_start), minus(load_event_end, load_event_start), Null)
|
||||
) ENGINE = MergeTree
|
||||
PARTITION BY toDate(datetime)
|
||||
ORDER BY (project_id, datetime)
|
||||
|
|
|
|||
|
|
@ -1,30 +1,31 @@
|
|||
CREATE TABLE performance (
|
||||
session_id UInt64,
|
||||
project_id UInt32,
|
||||
tracker_version String,
|
||||
rev_id Nullable(String),
|
||||
user_uuid UUID,
|
||||
user_os String,
|
||||
user_os_version Nullable(String),
|
||||
user_browser String,
|
||||
user_browser_version Nullable(String),
|
||||
user_device Nullable(String),
|
||||
user_device_type Enum8('other'=0, 'desktop'=1, 'mobile'=2),
|
||||
user_country Enum8('UN'=-128, 'RW'=-127, 'SO'=-126, 'YE'=-125, 'IQ'=-124, 'SA'=-123, 'IR'=-122, 'CY'=-121, 'TZ'=-120, 'SY'=-119, 'AM'=-118, 'KE'=-117, 'CD'=-116, 'DJ'=-115, 'UG'=-114, 'CF'=-113, 'SC'=-112, 'JO'=-111, 'LB'=-110, 'KW'=-109, 'OM'=-108, 'QA'=-107, 'BH'=-106, 'AE'=-105, 'IL'=-104, 'TR'=-103, 'ET'=-102, 'ER'=-101, 'EG'=-100, 'SD'=-99, 'GR'=-98, 'BI'=-97, 'EE'=-96, 'LV'=-95, 'AZ'=-94, 'LT'=-93, 'SJ'=-92, 'GE'=-91, 'MD'=-90, 'BY'=-89, 'FI'=-88, 'AX'=-87, 'UA'=-86, 'MK'=-85, 'HU'=-84, 'BG'=-83, 'AL'=-82, 'PL'=-81, 'RO'=-80, 'XK'=-79, 'ZW'=-78, 'ZM'=-77, 'KM'=-76, 'MW'=-75, 'LS'=-74, 'BW'=-73, 'MU'=-72, 'SZ'=-71, 'RE'=-70, 'ZA'=-69, 'YT'=-68, 'MZ'=-67, 'MG'=-66, 'AF'=-65, 'PK'=-64, 'BD'=-63, 'TM'=-62, 'TJ'=-61, 'LK'=-60, 'BT'=-59, 'IN'=-58, 'MV'=-57, 'IO'=-56, 'NP'=-55, 'MM'=-54, 'UZ'=-53, 'KZ'=-52, 'KG'=-51, 'TF'=-50, 'HM'=-49, 'CC'=-48, 'PW'=-47, 'VN'=-46, 'TH'=-45, 'ID'=-44, 'LA'=-43, 'TW'=-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80, 'GP'=81, 'GD'=82, 'KY'=83, 'BZ'=84, 'SV'=85, 'GT'=86, 'HN'=87, 'NI'=88, 'CR'=89, 'VE'=90, 'EC'=91, 'CO'=92, 'PA'=93, 'HT'=94, 'AR'=95, 'CL'=96, 'BO'=97, 'PE'=98, 'MX'=99, 'PF'=100, 'PN'=101, 'KI'=102, 'TK'=103, 'TO'=104, 'WF'=105, 'WS'=106, 'NU'=107, 'MP'=108, 'GU'=109, 'PR'=110, 'VI'=111, 'UM'=112, 'AS'=113, 'CA'=114, 'US'=115, 'PS'=116, 'RS'=117, 'AQ'=118, 'SX'=119, 'CW'=120, 'BQ'=121, 'SS'=122),
|
||||
datetime DateTime,
|
||||
min_fps UInt8,
|
||||
avg_fps UInt8,
|
||||
max_fps UInt8,
|
||||
min_cpu UInt8,
|
||||
avg_cpu UInt8,
|
||||
max_cpu UInt8,
|
||||
min_total_js_heap_size UInt64,
|
||||
avg_total_js_heap_size UInt64,
|
||||
max_total_js_heap_size UInt64,
|
||||
min_used_js_heap_size UInt64,
|
||||
avg_used_js_heap_size UInt64,
|
||||
max_used_js_heap_size UInt64
|
||||
CREATE TABLE IF NOT EXISTS performance
|
||||
(
|
||||
session_id UInt64,
|
||||
project_id UInt32,
|
||||
tracker_version String,
|
||||
rev_id Nullable(String),
|
||||
user_uuid UUID,
|
||||
user_os String,
|
||||
user_os_version Nullable(String),
|
||||
user_browser String,
|
||||
user_browser_version Nullable(String),
|
||||
user_device Nullable(String),
|
||||
user_device_type Enum8('other'=0, 'desktop'=1, 'mobile'=2),
|
||||
user_country Enum8('UN'=-128, 'RW'=-127, 'SO'=-126, 'YE'=-125, 'IQ'=-124, 'SA'=-123, 'IR'=-122, 'CY'=-121, 'TZ'=-120, 'SY'=-119, 'AM'=-118, 'KE'=-117, 'CD'=-116, 'DJ'=-115, 'UG'=-114, 'CF'=-113, 'SC'=-112, 'JO'=-111, 'LB'=-110, 'KW'=-109, 'OM'=-108, 'QA'=-107, 'BH'=-106, 'AE'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8, 'NE'=9, 'ML'=10, 'EH'=11, 'TN'=12, 'ES'=13, 'MA'=14, 'MT'=15, 'DZ'=16, 'FO'=17, 'DK'=18, 'IS'=19, 'GB'=20, 'CH'=21, 'SE'=22, 'NL'=23, 'AT'=24, 'BE'=25, 'DE'=26, 'LU'=27, 'IE'=28, 'MC'=29, 'FR'=30, 'AD'=31, 'LI'=32, 'JE'=33, 'IM'=34, 'GG'=35, 'SK'=36, 'CZ'=37, 'NO'=38, 'VA'=39, 'SM'=40, 'IT'=41, 'SI'=42, 'ME'=43, 'HR'=44, 'BA'=45, 'AO'=46, 'NA'=47, 'SH'=48, 'BV'=49, 'BB'=50, 'CV'=51, 'GY'=52, 'GF'=53, 'SR'=54, 'PM'=55, 'GL'=56, 'PY'=57, 'UY'=58, 'BR'=59, 'FK'=60, 'GS'=61, 'JM'=62, 'DO'=63, 'CU'=64, 'MQ'=65, 'BS'=66, 'BM'=67, 'AI'=68, 'TT'=69, 'KN'=70, 'DM'=71, 'AG'=72, 'LC'=73, 'TC'=74, 'AW'=75, 'VG'=76, 'VC'=77, 'MS'=78, 'MF'=79, 'BL'=80, 'GP'=81, 'GD'=82, 'KY'=83, 'BZ'=84, 'SV'=85, 'GT'=86, 'HN'=87, 'NI'=88, 'CR'=89, 'VE'=90, 'EC'=91, 'CO'=92, 'PA'=93, 'HT'=94, 'AR'=95, 'CL'=96, 'BO'=97, 'PE'=98, 'MX'=99, 'PF'=100, 'PN'=101, 'KI'=102, 'TK'=103, 'TO'=104, 'WF'=105, 'WS'=106, 'NU'=107, 'MP'=108, 'GU'=109, 'PR'=110, 'VI'=111, 'UM'=112, 'AS'=113, 'CA'=114, 'US'=115, 'PS'=116, 'RS'=117, 'AQ'=118, 'SX'=119, 'CW'=120, 'BQ'=121, 'SS'=122),
|
||||
datetime DateTime,
|
||||
min_fps UInt8,
|
||||
avg_fps UInt8,
|
||||
max_fps UInt8,
|
||||
min_cpu UInt8,
|
||||
avg_cpu UInt8,
|
||||
max_cpu UInt8,
|
||||
min_total_js_heap_size UInt64,
|
||||
avg_total_js_heap_size UInt64,
|
||||
max_total_js_heap_size UInt64,
|
||||
min_used_js_heap_size UInt64,
|
||||
avg_used_js_heap_size UInt64,
|
||||
max_used_js_heap_size UInt64
|
||||
) ENGINE = MergeTree
|
||||
PARTITION BY toDate(datetime)
|
||||
ORDER BY (project_id, datetime)
|
||||
TTL datetime + INTERVAL 1 MONTH;
|
||||
PARTITION BY toDate(datetime)
|
||||
ORDER BY (project_id, datetime)
|
||||
TTL datetime + INTERVAL 1 MONTH;
|
||||
|
|
|
|||
|
|
@ -1,31 +1,32 @@
|
|||
CREATE TABLE resources (
|
||||
session_id UInt64,
|
||||
project_id UInt32,
|
||||
tracker_version String,
|
||||
rev_id Nullable(String),
|
||||
user_uuid UUID,
|
||||
user_os String,
|
||||
user_os_version Nullable(String),
|
||||
user_browser String,
|
||||
user_browser_version Nullable(String),
|
||||
user_device Nullable(String),
|
||||
user_device_type Enum8('other'=0, 'desktop'=1, 'mobile'=2),
|
||||
user_country Enum8('UN'=-128, 'RW'=-127, 'SO'=-126, 'YE'=-125, 'IQ'=-124, 'SA'=-123, 'IR'=-122, 'CY'=-121, 'TZ'=-120, 'SY'=-119, 'AM'=-118, 'KE'=-117, 'CD'=-116, 'DJ'=-115, 'UG'=-114, 'CF'=-113, 'SC'=-112, 'JO'=-111, 'LB'=-110, 'KW'=-109, 'OM'=-108, 'QA'=-107, 'BH'=-106, 'AE'=-105, 'IL'=-104, 'TR'=-103, 'ET'=-102, 'ER'=-101, 'EG'=-100, 'SD'=-99, 'GR'=-98, 'BI'=-97, 'EE'=-96, 'LV'=-95, 'AZ'=-94, 'LT'=-93, 'SJ'=-92, 'GE'=-91, 'MD'=-90, 'BY'=-89, 'FI'=-88, 'AX'=-87, 'UA'=-86, 'MK'=-85, 'HU'=-84, 'BG'=-83, 'AL'=-82, 'PL'=-81, 'RO'=-80, 'XK'=-79, 'ZW'=-78, 'ZM'=-77, 'KM'=-76, 'M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'=42, 'ME'=43, 'HR'=44, 'BA'=45, 'AO'=46, 'NA'=47, 'SH'=48, 'BV'=49, 'BB'=50, 'CV'=51, 'GY'=52, 'GF'=53, 'SR'=54, 'PM'=55, 'GL'=56, 'PY'=57, 'UY'=58, 'BR'=59, 'FK'=60, 'GS'=61, 'JM'=62, 'DO'=63, 'CU'=64, 'MQ'=65, 'BS'=66, 'BM'=67, 'AI'=68, 'TT'=69, 'KN'=70, 'DM'=71, 'AG'=72, 'LC'=73, 'TC'=74, 'AW'=75, 'VG'=76, 'VC'=77, 'MS'=78, 'MF'=79, 'BL'=80, 'GP'=81, 'GD'=82, 'KY'=83, 'BZ'=84, 'SV'=85, 'GT'=86, 'HN'=87, 'NI'=88, 'CR'=89, 'VE'=90, 'EC'=91, 'CO'=92, 'PA'=93, 'HT'=94, 'AR'=95, 'CL'=96, 'BO'=97, 'PE'=98, 'MX'=99, 'PF'=100, 'PN'=101, 'KI'=102, 'TK'=103, 'TO'=104, 'WF'=105, 'WS'=106, 'NU'=107, 'MP'=108, 'GU'=109, 'PR'=110, 'VI'=111, 'UM'=112, 'AS'=113, 'CA'=114, 'US'=115, 'PS'=116, 'RS'=117, 'AQ'=118, 'SX'=119, 'CW'=120, 'BQ'=121, 'SS'=122),
|
||||
datetime DateTime,
|
||||
url String,
|
||||
url_host String MATERIALIZED lower(domain(url)),
|
||||
url_hostpath String MATERIALIZED concat(url_host, lower(path(url))),
|
||||
type Enum8('other'=-1, 'script'=0, 'stylesheet'=1, 'fetch'=2, 'img'=3, 'media'=4),
|
||||
duration Nullable(UInt16),
|
||||
ttfb Nullable(UInt16),
|
||||
header_size Nullable(UInt16),
|
||||
encoded_body_size Nullable(UInt32),
|
||||
decoded_body_size Nullable(UInt32),
|
||||
compression_ratio Nullable(Float32) MATERIALIZED divide(decoded_body_size, encoded_body_size),
|
||||
success UInt8,
|
||||
method Nullable(Enum8('GET' = 0, 'HEAD' = 1, 'POST' = 2, 'PUT' = 3, 'DELETE' = 4, 'CONNECT' = 5, 'OPTIONS' = 6, 'TRACE' = 7, 'PATCH' = 8)),
|
||||
status Nullable(UInt16)
|
||||
CREATE TABLE IF NOT EXISTS resources
|
||||
(
|
||||
session_id UInt64,
|
||||
project_id UInt32,
|
||||
tracker_version String,
|
||||
rev_id Nullable(String),
|
||||
user_uuid UUID,
|
||||
user_os String,
|
||||
user_os_version Nullable(String),
|
||||
user_browser String,
|
||||
user_browser_version Nullable(String),
|
||||
user_device Nullable(String),
|
||||
user_device_type Enum8('other'=0, 'desktop'=1, 'mobile'=2),
|
||||
user_country Enum8('UN'=-128, 'RW'=-127, 'SO'=-126, 'YE'=-125, 'IQ'=-124, 'SA'=-123, 'IR'=-122, 'CY'=-121, 'TZ'=-120, 'SY'=-119, 'AM'=-118, 'KE'=-117, 'CD'=-116, 'DJ'=-115, 'UG'=-114, 'CF'=-113, 'SC'=-112, 'JO'=-111, 'LB'=-110, 'KW'=-109, 'OM'=-108, 'QA'=-107, 'BH'=-106, 'AE'=-105, 'IL'=-104, 'TR'=-103, 'ET'=-102, 'ER'=-101, 'EG'=-100, 'SD'=-99, 'GR'=-98, 'BI'=-97, 'EE'=-96, 'LV'=-95, 'AZ'=-94, 'LT'=-93, 'SJ'=-92, 'GE'=-91, 'MD'=-90, 'BY'=-89, 'FI'=-88, 'AX'=-87, 'UA'=-86, 'MK'=-85, 'HU'=-84, 'BG'=-83, 'AL'=-82, 'PL'=-81, 'RO'=-80, 'XK'=-79, 'ZW'=-78, 'ZM'=-77, 'KM'=-76, 'MW'=-75, 'LS'=-74, 'BW'=-73, 'MU'=-72, 'SZ'=-71, 'RE'=-70, 'ZA'=-69, 'YT'=-68, 'MZ'=-67, 'MG'=-66, 'AF'=-65, 'PK'=-64, 'BD'=-63, 'TM'=-62, 'TJ'=-61, 'LK'=-60, 'BT'=-59, 'IN'=-58, 'MV'=-57, 'IO'=-56, 'NP'=-55, 'MM'=-54, 'UZ'=-53, 'KZ'=-52, 'KG'=-51, 'TF'=-50, 'HM'=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72, 'LC'=73, 'TC'=74, 'AW'=75, 'VG'=76, 'VC'=77, 'MS'=78, 'MF'=79, 'BL'=80, 'GP'=81, 'GD'=82, 'KY'=83, 'BZ'=84, 'SV'=85, 'GT'=86, 'HN'=87, 'NI'=88, 'CR'=89, 'VE'=90, 'EC'=91, 'CO'=92, 'PA'=93, 'HT'=94, 'AR'=95, 'CL'=96, 'BO'=97, 'PE'=98, 'MX'=99, 'PF'=100, 'PN'=101, 'KI'=102, 'TK'=103, 'TO'=104, 'WF'=105, 'WS'=106, 'NU'=107, 'MP'=108, 'GU'=109, 'PR'=110, 'VI'=111, 'UM'=112, 'AS'=113, 'CA'=114, 'US'=115, 'PS'=116, 'RS'=117, 'AQ'=118, 'SX'=119, 'CW'=120, 'BQ'=121, 'SS'=122),
|
||||
datetime DateTime,
|
||||
url String,
|
||||
url_host String MATERIALIZED lower(domain(url)),
|
||||
url_hostpath String MATERIALIZED concat(url_host, lower(path(url))),
|
||||
type Enum8('other'=-1, 'script'=0, 'stylesheet'=1, 'fetch'=2, 'img'=3, 'media'=4),
|
||||
duration Nullable(UInt16),
|
||||
ttfb Nullable(UInt16),
|
||||
header_size Nullable(UInt16),
|
||||
encoded_body_size Nullable(UInt32),
|
||||
decoded_body_size Nullable(UInt32),
|
||||
compression_ratio Nullable(Float32) MATERIALIZED divide(decoded_body_size, encoded_body_size),
|
||||
success UInt8,
|
||||
method Nullable(Enum8('GET' = 0, 'HEAD' = 1, 'POST' = 2, 'PUT' = 3, 'DELETE' = 4, 'CONNECT' = 5, 'OPTIONS' = 6, 'TRACE' = 7, 'PATCH' = 8)),
|
||||
status Nullable(UInt16)
|
||||
) ENGINE = MergeTree
|
||||
PARTITION BY toDate(datetime)
|
||||
ORDER BY (project_id, datetime)
|
||||
TTL datetime + INTERVAL 1 MONTH;
|
||||
PARTITION BY toDate(datetime)
|
||||
ORDER BY (project_id, datetime)
|
||||
TTL datetime + INTERVAL 1 MONTH;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
CREATE TABLE sessions
|
||||
CREATE TABLE IF NOT EXISTS sessions
|
||||
(
|
||||
session_id UInt64,
|
||||
project_id UInt32,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
CREATE TABLE sessions_metadata
|
||||
CREATE TABLE IF NOT EXISTS sessions_metadata
|
||||
(
|
||||
session_id UInt64,
|
||||
project_id UInt32,
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ class Router extends React.Component {
|
|||
this.props.fetchTenants();
|
||||
}
|
||||
|
||||
if (!prevProps.isLoggedIn && this.props.isLoggedIn && this.state.destinationPath !== routes.login()) {
|
||||
if (!prevProps.isLoggedIn && this.props.isLoggedIn && this.state.destinationPath !== routes.login() && this.state.destinationPath !== '/') {
|
||||
this.props.history.push(this.state.destinationPath);
|
||||
this.setState({ destinationPath: null });
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ function init() {
|
|||
echo "Initializing clickhouse"
|
||||
for file in `ls ${clickhousedir}/create/*.sql`; do
|
||||
echo "Injecting $file"
|
||||
clickhouse-client -h clickhouse.db.svc.cluster.local --port 9000 < $file
|
||||
clickhouse-client -h clickhouse.db.svc.cluster.local --port 9000 < $file || true
|
||||
done
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue