-
Notifications
You must be signed in to change notification settings - Fork 103
/
Copy pathview.sql
71 lines (71 loc) · 2.6 KB
/
view.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
-- Generated via ./bqetl generate glean_usage
CREATE OR REPLACE VIEW
`moz-fx-data-shared-prod.lockwise_ios.metrics`
AS
SELECT
"org_mozilla_ios_lockbox" AS normalized_app_id,
normalized_channel,
additional_properties,
client_info,
document_id,
events,
metadata,
STRUCT(
STRUCT(
metrics.boolean.glean_core_migration_successful,
metrics.boolean.glean_error_preinit_tasks_timeout
) AS `boolean`,
STRUCT(
metrics.counter.glean_error_preinit_tasks_overflow,
metrics.counter.glean_validation_app_forceclosed_count,
metrics.counter.glean_validation_baseline_ping_count,
metrics.counter.glean_upload_deleted_pings_after_quota_hit,
metrics.counter.glean_upload_pending_pings,
metrics.counter.glean_validation_foreground_count,
metrics.counter.glean_error_io,
metrics.counter.glean_time_invalid_timezone_offset,
metrics.counter.glean_upload_in_flight_pings_dropped,
metrics.counter.glean_upload_missing_send_ids
) AS `counter`,
STRUCT(
metrics.labeled_counter.glean_error_invalid_label,
metrics.labeled_counter.glean_error_invalid_overflow,
metrics.labeled_counter.glean_error_invalid_state,
metrics.labeled_counter.glean_error_invalid_value,
metrics.labeled_counter.glean_upload_ping_upload_failure,
metrics.labeled_counter.glean_validation_pings_submitted
) AS `labeled_counter`,
STRUCT(
metrics.string.ping_reason,
metrics.string.glean_client_annotation_experimentation_id,
metrics.string.glean_database_rkv_load_error
) AS `string`,
STRUCT(
metrics.memory_distribution.glean_upload_discarded_exceeding_pings_size,
metrics.memory_distribution.glean_upload_pending_pings_directory_size,
metrics.memory_distribution.glean_database_size
) AS `memory_distribution`,
STRUCT(
metrics.datetime.glean_validation_first_run_hour,
metrics.datetime.raw_glean_validation_first_run_hour
) AS `datetime`,
STRUCT(
metrics.timing_distribution.glean_upload_send_failure,
metrics.timing_distribution.glean_upload_send_success,
metrics.timing_distribution.glean_validation_shutdown_wait,
metrics.timing_distribution.glean_validation_shutdown_dispatcher_wait,
metrics.timing_distribution.glean_database_write_time
) AS `timing_distribution`
) AS `metrics`,
normalized_app_name,
normalized_country_code,
normalized_os,
normalized_os_version,
ping_info,
sample_id,
submission_timestamp,
app_version_major,
app_version_minor,
app_version_patch
FROM
`moz-fx-data-shared-prod.org_mozilla_ios_lockbox.metrics`