Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
meta_base_code
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黎涛
meta_base_code
Commits
ce950f01
Commit
ce950f01
authored
Aug 26, 2020
by
litaolemo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
72fa08d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
core_indicators_monitoring.py
task/core_indicators_monitoring.py
+3
-3
No files found.
task/core_indicators_monitoring.py
View file @
ce950f01
...
@@ -536,7 +536,7 @@ FROM
...
@@ -536,7 +536,7 @@ FROM
AND t6.channel = t1.channel
AND t6.channel = t1.channel
)t
)t
"""
.
format
(
start_date
=
last_30_day
_str
,
end_date
=
today_str
,
)
"""
.
format
(
start_date
=
one_week_age
_str
,
end_date
=
today_str
,
)
device_df
=
spark
.
sql
(
sql
)
device_df
=
spark
.
sql
(
sql
)
device_df
.
show
(
1
,
False
)
device_df
.
show
(
1
,
False
)
...
@@ -545,7 +545,7 @@ FROM
...
@@ -545,7 +545,7 @@ FROM
print
(
res
)
print
(
res
)
partition_date
=
res
.
partition_date
partition_date
=
res
.
partition_date
device_os_type
=
res
.
device_os_type
device_os_type
=
res
.
device_os_type
active_type
=
res
.
device_os
_type
active_type
=
res
.
active
_type
channel
=
res
.
channel
channel
=
res
.
channel
dau
=
res
.
dau
dau
=
res
.
dau
all_search_click_uv_724
=
res
.
all_search_click_uv_724
all_search_click_uv_724
=
res
.
all_search_click_uv_724
...
@@ -573,7 +573,7 @@ FROM
...
@@ -573,7 +573,7 @@ FROM
{search_success_rate},{sug_uesd_rate},{referrer_search_hexin_pv},{referrer_search_welfare_pv},{search_core_pv_div_dau},{search_core_two_div_dau},{search_neirong_two_div_dau},{search_neirong_per_duration},{referrer_search_neirong_pv},'{pid}',{search_neirong_pv_div_dau},{search_hexin_two_pv});"""
.
format
(
{search_success_rate},{sug_uesd_rate},{referrer_search_hexin_pv},{referrer_search_welfare_pv},{search_core_pv_div_dau},{search_core_two_div_dau},{search_neirong_two_div_dau},{search_neirong_per_duration},{referrer_search_neirong_pv},'{pid}',{search_neirong_pv_div_dau},{search_hexin_two_pv});"""
.
format
(
partition_date
=
partition_date
,
device_os_type
=
device_os_type
,
partition_date
=
partition_date
,
device_os_type
=
device_os_type
,
active_type
=
active_type
,
channel
=
channel
,
dau
=
dau
,
active_type
=
active_type
,
channel
=
channel
,
dau
=
dau
,
all_search_click_uv_724
=
all_search_click_uv_724
,
all_search_click_pv_724
=
all_search_click_
u
v_724
,
all_search_uv
=
all_search_uv
,
all_search_pv
=
all_search_pv
,
completed_user_rate
=
completed_user_rate
,
per_user_search_count
=
per_user_search_count
,
all_search_click_uv_724
=
all_search_click_uv_724
,
all_search_click_pv_724
=
all_search_click_
p
v_724
,
all_search_uv
=
all_search_uv
,
all_search_pv
=
all_search_pv
,
completed_user_rate
=
completed_user_rate
,
per_user_search_count
=
per_user_search_count
,
search_success_rate
=
search_success_rate
,
sug_uesd_rate
=
sug_uesd_rate
,
referrer_search_hexin_pv
=
referrer_search_hexin_pv
,
search_success_rate
=
search_success_rate
,
sug_uesd_rate
=
sug_uesd_rate
,
referrer_search_hexin_pv
=
referrer_search_hexin_pv
,
referrer_search_welfare_pv
=
referrer_search_welfare_pv
,
search_core_pv_div_dau
=
search_core_pv_div_dau
,
referrer_search_welfare_pv
=
referrer_search_welfare_pv
,
search_core_pv_div_dau
=
search_core_pv_div_dau
,
search_core_two_div_dau
=
search_core_two_div_dau
,
search_neirong_two_div_dau
=
search_neirong_two_div_dau
,
search_core_two_div_dau
=
search_core_two_div_dau
,
search_neirong_two_div_dau
=
search_neirong_two_div_dau
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment