forked from allegro/turnilo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-examples.yaml
186 lines (147 loc) · 4.17 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
customization:
urlShortener: |
return request.get('http://tinyurl.com/api-create.php?url=' + encodeURIComponent(url))
dataCubes:
- name: wiki
title: Wikipedia Example
description: |
Data cube with *Wikipedia* data.
---
Contains data about Wikipedia editors and articles with information about edits, comments and article metadata
*Based on wikiticker from 2015-09-12*
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: added
defaultSelectedMeasures: ["added"]
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: comments
title: Comments
dimensions:
- name: comment
title: Comment
formula: $comment
- name: commentLengths
title: Comment Lengths
description: Length of the comment
dimensions:
- name: commentLength
title: Comment Length
kind: number
description: |
Lengths of *all* comments
formula: $commentLength
- name: commentLengthOver100
title: Comment Length Over 100
description: |
`true` only if comment length is 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: rowsAndDeltas
title: Rows & Deltas
measures:
- name: count
title: Rows
formula: $main.count()
- name: deltas
title: Deltas
measures:
- name: delta
title: Delta
formula: $main.sum($delta)
- name: avg_delta
title: Avg Delta
formula: $main.average($delta)
- name: added
title: Added
description: |
Sum of all additions
formula: $main.sum($added)
- name: avg_added
title: Avg Added
formula: $main.average($added)
- name: deleted
title: Deleted
description: |
Sum of all deletions
formula: $main.sum($deleted)
- name: avg_deleted
title: Avg Deleted
formula: $main.average($deleted)
- name: unique_users
title: Unique Users
formula: $main.countDistinct($user)