forked from YahooArchive/swiv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-examples.yaml
152 lines (117 loc) · 3.03 KB
/
config-examples.yaml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
dataCubes:
- name: wiki
title: Wikipedia Example
clusterName: native
source: assets/data/wikiticker-2015-09-12-sampled.json
timeAttribute: time
refreshRule:
rule: fixed
time: 2015-09-13T00:00:00.000Z
defaultDuration: P1D
defaultSortMeasure: delta
defaultPinnedDimensions: ["channel","namespace","isRobot"]
introspection: no-autofill
attributeOverrides:
- name: sometimeLater
type: TIME
- name: commentLength
type: NUMBER
- name: deltaBucket100
type: NUMBER
dimensions:
- name: time
title: Time
kind: time
formula: $time
- name: channel
title: Channel
formula: $channel
- name: cityName
title: City Name
formula: $cityName
- name: comment
title: Comment
formula: $comment
- name: commentLength
title: Comment Length
kind: number
formula: $commentLength
- name: commentLengthOver100
title: Comment Length Over 100
kind: boolean
formula: $commentLength > 100
- name: countryIso
title: Country ISO
formula: $countryIsoCode
- name: countryName
title: Country Name
formula: $countryName
- name: deltaBucket100
title: Delta Bucket
kind: number
formula: $deltaBucket100
- name: isAnonymous
title: Is Anonymous
kind: boolean
formula: $isAnonymous
- name: isMinor
title: Is Minor
kind: boolean
formula: $isMinor
- name: isNew
title: Is New
kind: boolean
formula: $isNew
- name: isRobot
title: Is Robot
kind: boolean
formula: $isRobot
- name: isUnpatrolled
title: Is Unpatrolled
formula: $isUnpatrolled
- name: metroCode
title: Metro Code
formula: $metroCode
- name: namespace
title: Namespace
formula: $namespace
- name: page
title: Page
formula: $page
- name: regionIso
title: Region ISO
formula: $regionIsoCode
- name: regionName
title: Region Name
formula: $regionName
- name: user
title: User
formula: $user
- name: userChars
title: User Chars
formula: $userChars
measures:
- name: count
title: Rows
formula: $main.count()
- name: delta
title: Delta
formula: $main.sum($delta)
- name: avg_delta
title: Avg Delta
formula: $main.average($delta)
- name: added
title: Added
formula: $main.sum($added)
- name: avg_added
title: Avg Added
formula: $main.average($added)
- name: deleted
title: Deleted
formula: $main.sum($deleted)
- name: avg_deleted
title: Avg Deleted
formula: $main.average($deleted)
- name: unique_users
title: Unique Users
formula: $main.countDistinct($user)