-
Notifications
You must be signed in to change notification settings - Fork 0
/
analytics-v1.json
57 lines (57 loc) · 1.13 KB
/
analytics-v1.json
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
{
"type": "kafka",
"dataSchema": {
"dataSource": "analytics-v1",
"parser": {
"type": "string",
"parseSpec": {
"format": "json",
"timestampSpec": {
"column": "timestamp",
"format": "auto"
},
"dimensionsSpec": {
"dimensions": [
"userId",
"eventType"
]
}
}
},
"metricsSpec": [
{
"type": "count",
"name": "count"
},
{
"type": "hyperUnique",
"name": "userId.hll",
"fieldName": "userId"
}
],
"granularitySpec": {
"type": "uniform",
"segmentGranularity": "DAY",
"queryGranularity": "HOUR",
"intervals": [
"2022-03-07/2031-12-01"
]
}
},
"tuningConfig": {
"type": "kafka",
"maxRowsInMemory": 50000,
"intermediatePersistPeriod": "PT1S",
"maxRowsPerSegment": 500000
},
"ioConfig": {
"topic": "analytics-v1",
"consumerProperties": {
"bootstrap.servers": "kafka:9092"
},
"useEarliestOffset": true,
"taskCount": 1,
"replicas": 1,
"taskDuration": "PT1H"
}
}