From dbe87ccccdcc8c411de64ee816377876b737d1bb Mon Sep 17 00:00:00 2001 From: Jean-Louis Lamezec Date: Fri, 4 Oct 2024 16:29:40 +0200 Subject: [PATCH] feat(lyon): add hourly visits --- projects/lyon/models/staging/matomo/schema.yml | 3 ++- .../staging/matomo/stg_matomo_hourly_visits.sql | 14 ++++++++++++++ projects/lyon/profiles.yml | 1 - 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 projects/lyon/models/staging/matomo/stg_matomo_hourly_visits.sql diff --git a/projects/lyon/models/staging/matomo/schema.yml b/projects/lyon/models/staging/matomo/schema.yml index 700a470..c36e318 100644 --- a/projects/lyon/models/staging/matomo/schema.yml +++ b/projects/lyon/models/staging/matomo/schema.yml @@ -5,4 +5,5 @@ sources: database: "{{ env_var('DBNAME') }}" schema: matomo tables: - - name : downloads \ No newline at end of file + - name : downloads + - name : hourly_visits \ No newline at end of file diff --git a/projects/lyon/models/staging/matomo/stg_matomo_hourly_visits.sql b/projects/lyon/models/staging/matomo/stg_matomo_hourly_visits.sql new file mode 100644 index 0000000..74fc93e --- /dev/null +++ b/projects/lyon/models/staging/matomo/stg_matomo_hourly_visits.sql @@ -0,0 +1,14 @@ +SELECT + label, + nb_uniq_visitors, + nb_visits, + nb_actions, + nb_users, + max_actions, + sum_visit_length, + bounce_count, + nb_visits_converted, + VisitTime_LocalTime, + segment, + date +FROM {{ source('matomo', 'hourly_visits') }} \ No newline at end of file diff --git a/projects/lyon/profiles.yml b/projects/lyon/profiles.yml index 6912783..8e3a56e 100644 --- a/projects/lyon/profiles.yml +++ b/projects/lyon/profiles.yml @@ -19,7 +19,6 @@ lyon: user: "{{ env_var('USER_PREPROD') }}" threads: 2 type: postgres - job_execution_timeout_seconds: 600 prod: dbname: "{{ env_var('DBNAME') }}" host: "{{ env_var('HOST') }}"