-
Notifications
You must be signed in to change notification settings - Fork 31
/
metrics.yml
41 lines (28 loc) · 1.01 KB
/
metrics.yml
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
version: 2
metrics:
- name: costs
label: 'Costs spent (RUB)'
model: ref('f_tracker')
description: ''
calculation_method: sum
expression: cost
timestamp: dt
time_grains: [day, week, month, quarter, year]
dimensions: [traffic_grouping, traffic_source, traffic_medium, traffic_campaign, device_category, location_country]
- name: clicks
label: 'Clicks'
model: ref('f_tracker')
description: ''
calculation_method: sum
expression: clicks
timestamp: dt
time_grains: [day, week, month, quarter, year]
dimensions: [traffic_grouping, traffic_source, traffic_medium, traffic_campaign, device_category, location_country]
- name: cpc
label: 'Cost per Click'
description: ''
calculation_method: derived
expression: "{{ metric('costs') }} / {{ metric('clicks') }}"
timestamp: dt
time_grains: [day, week, month, quarter, year]
dimensions: [traffic_grouping, traffic_source, traffic_medium, traffic_campaign, device_category, location_country]