Skip to content

Commit e346d40

Browse files
update from api calls to job requests
1 parent d26829b commit e346d40

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

terraform/services/insights/db-exports/bcda/prod-api-calls-weekly.sql renamed to terraform/services/insights/db-exports/bcda/prod-job-request-calls-weekly.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
SELECT cron.schedule_in_database(
2-
's3_export_bcda_prod_api_calls_weekly',
2+
's3_export_bcda_prod_job_request_calls_weekly',
33
'40 */6 * * *',
44
$$
55
SELECT *
66
FROM aws_s3.query_export_to_s3
77
(
8-
'SELECT * FROM bcda_prod_api_calls_weekly',
8+
'SELECT * FROM bcda_prod_job_request_calls_weekly',
99
aws_commons.create_s3_uri
1010
(
1111
'bcda-prod-aurora-export-2025xxxxxxxxxxxxxxxxxxxxxx',

terraform/services/insights/db-exports/bcda/sandbox-api-calls-weekly.sql renamed to terraform/services/insights/db-exports/bcda/sandbox-job-request-calls-weekly.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
SELECT cron.schedule_in_database(
2-
's3_export_bcda_sandbox_api_calls_weekly',
2+
's3_export_bcda_sandbox_job_request_calls_weekly',
33
'5 */6 * * *',
44
$$
55
SELECT *
66
FROM aws_s3.query_export_to_s3
77
(
8-
'SELECT * FROM bcda_sandbox_api_calls_weekly',
8+
'SELECT * FROM bcda_sandbox_job_request_calls_weekly',
99
aws_commons.create_s3_uri
1010
(
1111
'bcda-sandbox-aurora-export-2025xxxxxxxxxxxxxxxxxxxxxx',

terraform/services/insights/views/bcda/prod-api-calls-weekly.view.sql renamed to terraform/services/insights/views/bcda/prod-job-request-calls-weekly.view.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
-- Get PRODUCTION API calls by week (total, V1, V2, and V3)
1+
-- Get PRODUCTION job request calls by week (total, V1, V2, and V3)
22
-- Also includes total cancelled calls and cancelled calls by version
33
-- Weeks run Sunday to Saturday
4-
CREATE OR REPLACE VIEW bcda_prod_api_calls_weekly AS
4+
CREATE OR REPLACE VIEW bcda_prod_job_request_calls_weekly AS
55
SELECT
66
week_start,
77
week_end,

terraform/services/insights/views/bcda/sandbox-api-calls-weekly.view.sql renamed to terraform/services/insights/views/bcda/sandbox-job-request-calls-weekly.view.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
-- Get SANDBOX API calls by week (total, V1, V2, and V3)
1+
-- Get SANDBOX job request calls by week (total, V1, V2, and V3)
22
-- Weeks run Sunday to Saturday
33
-- This should be run in SANDBOX only!
4-
CREATE OR REPLACE VIEW bcda_sandbox_api_calls_weekly AS
4+
CREATE OR REPLACE VIEW bcda_sandbox_job_request_calls_weekly AS
55
SELECT
66
week_start,
77
week_end,

0 commit comments

Comments
 (0)