Removed bq usage cost view (#4991)
This commit is contained in:
Родитель
cee2479a0f
Коммит
f5ebf44a85
|
@ -1,44 +0,0 @@
|
|||
CREATE OR REPLACE VIEW
|
||||
`moz-fx-data-shared-prod.monitoring.bigquery_usage_costs`
|
||||
AS
|
||||
SELECT
|
||||
creation_date,
|
||||
source_project,
|
||||
user_email,
|
||||
username,
|
||||
job_id,
|
||||
destination_table_id,
|
||||
SUM(total_terabytes_processed) * 4.15 AS cost_usd
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
creation_date,
|
||||
source_project,
|
||||
user_email,
|
||||
username,
|
||||
job_id,
|
||||
destination_table_id,
|
||||
total_terabytes_processed
|
||||
FROM
|
||||
`moz-fx-data-shared-prod.monitoring.bigquery_usage`
|
||||
WHERE
|
||||
state = 'DONE'
|
||||
AND job_type = 'QUERY'
|
||||
AND reservation_id IS NULL
|
||||
AND cache_hit IS FALSE
|
||||
GROUP BY
|
||||
creation_date,
|
||||
source_project,
|
||||
user_email,
|
||||
username,
|
||||
job_id,
|
||||
destination_table_id,
|
||||
total_terabytes_processed
|
||||
)
|
||||
GROUP BY
|
||||
creation_date,
|
||||
source_project,
|
||||
user_email,
|
||||
username,
|
||||
job_id,
|
||||
destination_table_id
|
Загрузка…
Ссылка в новой задаче