182 lines
4 KiB
Go
182 lines
4 KiB
Go
package connector
|
|
|
|
import (
|
|
"strconv"
|
|
)
|
|
|
|
var sessionColumns = []string{
|
|
"sessionid",
|
|
"user_browser",
|
|
"user_browser_version",
|
|
"user_country",
|
|
"user_city",
|
|
"user_state",
|
|
"user_device",
|
|
"user_device_heap_size",
|
|
"user_device_memory_size",
|
|
"user_device_type",
|
|
"user_os",
|
|
"user_os_version",
|
|
"user_uuid",
|
|
"connection_effective_bandwidth",
|
|
"connection_type",
|
|
"referrer",
|
|
"user_anonymous_id",
|
|
"user_id",
|
|
"tracker_version",
|
|
"rev_id",
|
|
"session_start_timestamp",
|
|
"session_end_timestamp",
|
|
"session_duration",
|
|
"first_contentful_paint",
|
|
"speed_index",
|
|
"visually_complete",
|
|
"timing_time_to_interactive",
|
|
"avg_cpu",
|
|
"avg_fps",
|
|
"max_cpu",
|
|
"max_fps",
|
|
"max_total_js_heap_size",
|
|
"max_used_js_heap_size",
|
|
"js_exceptions_count",
|
|
"inputs_count",
|
|
"clicks_count",
|
|
"issues_count",
|
|
"pages_count",
|
|
"metadata_1",
|
|
"metadata_2",
|
|
"metadata_3",
|
|
"metadata_4",
|
|
"metadata_5",
|
|
"metadata_6",
|
|
"metadata_7",
|
|
"metadata_8",
|
|
"metadata_9",
|
|
"metadata_10",
|
|
}
|
|
|
|
var sessionInts = []string{
|
|
"user_device_heap_size",
|
|
"user_device_memory_size",
|
|
"connection_effective_bandwidth",
|
|
"first_contentful_paint",
|
|
"speed_index",
|
|
"visually_complete",
|
|
"timing_time_to_interactive",
|
|
"avg_cpu",
|
|
"avg_fps",
|
|
"max_cpu",
|
|
"max_fps",
|
|
"max_total_js_heap_size",
|
|
"max_used_js_heap_size",
|
|
"js_exceptions_count",
|
|
"inputs_count",
|
|
"clicks_count",
|
|
"issues_count",
|
|
"pages_count",
|
|
}
|
|
|
|
var eventColumns = []string{
|
|
"sessionid",
|
|
"consolelog_level",
|
|
"consolelog_value",
|
|
"customevent_name",
|
|
"customevent_payload",
|
|
"jsexception_message",
|
|
"jsexception_name",
|
|
"jsexception_payload",
|
|
"jsexception_metadata",
|
|
"networkrequest_type",
|
|
"networkrequest_method",
|
|
"networkrequest_url",
|
|
"networkrequest_request",
|
|
"networkrequest_response",
|
|
"networkrequest_status",
|
|
"networkrequest_timestamp",
|
|
"networkrequest_duration",
|
|
"issueevent_message_id",
|
|
"issueevent_timestamp",
|
|
"issueevent_type",
|
|
"issueevent_context_string",
|
|
"issueevent_context",
|
|
"issueevent_payload",
|
|
"issueevent_url",
|
|
"customissue_name",
|
|
"customissue_payload",
|
|
"mouseclick_label",
|
|
"mouseclick_selector",
|
|
"mouseclick_url",
|
|
"mouseclick_hesitation_time",
|
|
"mouseclick_timestamp",
|
|
"pageevent_url",
|
|
"pageevent_referrer",
|
|
"pageevent_speed_index",
|
|
"pageevent_timestamp",
|
|
"inputevent_label",
|
|
"inputevent_hesitation_time",
|
|
"inputevent_input_duration",
|
|
"inputevent_timestamp",
|
|
"mobile_event_name",
|
|
"mobile_event_payload",
|
|
"mobile_networkcall_type",
|
|
"mobile_networkcall_method",
|
|
"mobile_networkcall_url",
|
|
"mobile_networkcall_request",
|
|
"mobile_networkcall_response",
|
|
"mobile_networkcall_status",
|
|
"mobile_networkcall_timestamp",
|
|
"mobile_networkcall_duration",
|
|
"mobile_clickevent_x",
|
|
"mobile_clickevent_y",
|
|
"mobile_clickevent_timestamp",
|
|
"mobile_clickevent_label",
|
|
"mobile_swipeevent_x",
|
|
"mobile_swipeevent_y",
|
|
"mobile_swipeevent_timestamp",
|
|
"mobile_swipeevent_label",
|
|
"mobile_inputevent_label",
|
|
"mobile_inputevent_value",
|
|
"mobile_crash_name",
|
|
"mobile_crash_reason",
|
|
"mobile_crash_stacktrace",
|
|
"mobile_issueevent_timestamp",
|
|
"mobile_issueevent_type",
|
|
"mobile_issueevent_context_string",
|
|
"mobile_issueevent_context",
|
|
"mobile_issueevent_payload",
|
|
"mobile_viewcomponentevent_screen_name",
|
|
"mobile_viewcomponentevent_view_name",
|
|
"mobile_viewcomponentevent_visible",
|
|
"mobile_viewcomponentevent_timestamp",
|
|
"received_at",
|
|
}
|
|
|
|
var eventInts = []string{
|
|
"networkrequest_status",
|
|
"networkrequest_timestamp",
|
|
"networkrequest_duration",
|
|
"issueevent_message_id",
|
|
"issueevent_timestamp",
|
|
"mouseclick_hesitation_time",
|
|
"mouseclick_timestamp",
|
|
"pageevent_speed_index",
|
|
"pageevent_timestamp",
|
|
"inputevent_hesitation_time",
|
|
"inputevent_input_duration",
|
|
"inputevent_timestamp",
|
|
"mobile_networkcall_status",
|
|
"mobile_networkcall_timestamp",
|
|
"mobile_networkcall_duration",
|
|
"mobile_clickevent_x",
|
|
"mobile_clickevent_y",
|
|
"mobile_clickevent_timestamp",
|
|
"mobile_swipeevent_x",
|
|
"mobile_swipeevent_y",
|
|
"mobile_swipeevent_timestamp",
|
|
"mobile_issueevent_timestamp",
|
|
"mobile_viewcomponentevent_timestamp",
|
|
}
|
|
|
|
func QUOTES(s string) string {
|
|
return strconv.Quote(s)
|
|
}
|