forked from egovernments/iFix-Dev
-
Notifications
You must be signed in to change notification settings - Fork 1
/
druid-ingestion-config.json
197 lines (184 loc) · 6.17 KB
/
druid-ingestion-config.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
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
187
188
189
190
191
192
193
194
195
196
197
{
"type": "kafka",
"spec": {
"ioConfig": {
"type": "kafka",
"consumerProperties": {
"bootstrap.servers": "kafka-v2.ifix:9092"
},
"topic": "fiscal-event-druid-sink",
"inputFormat": {
"type": "json"
},
"useEarliestOffset": true
},
"tuningConfig": {
"type": "kafka"
},
"dataSchema": {
"dataSource": "fiscal-event",
"timestampSpec": {
"column": "eventTime",
"format": "millis"
},
"transformSpec": {
"transforms": [
{
"type": "expression",
"name": "bill",
"expression": "if(\"eventType\" == 'Bill', \"amount\", 0)"
},
{
"type": "expression",
"name": "receipt",
"expression": "if(\"eventType\" == 'Receipt', \"amount\", 0)"
},
{
"type": "expression",
"name": "payment",
"expression": "if(\"eventType\" == 'Payment', \"amount\", 0)"
},
{
"type": "expression",
"name": "demand",
"expression": "if(\"eventType\" == 'Demand', \"amount\", 0)"
}
]
},
"dimensionsSpec": {
"dimensions": [
"id",
{
"type": "double",
"name": "amount"
},
"version",
"tenantId",
"eventId",
{
"type": "long",
"name": "ingestionTime"
},
"eventType",
"referenceId",
"parentEventId",
"parentReferenceId",
{
"type": "long",
"name": "fromBillingPeriod"
},
{
"type": "long",
"name": "toBillingPeriod"
},
"government.id",
"government.name",
"coa.id",
"coa.coaCode",
"coa.majorHead",
"coa.majorHeadName",
"coa.subMajorHead",
"coa.subMajorHeadName",
"coa.minorHead",
"coa.minorHeadName",
"coa.subHead",
"coa.subHeadName",
"coa.groupHead",
"coa.groupHeadName",
"coa.objectHead",
"coa.objectHeadName",
"attributes.department.id",
"attributes.department.code",
"attributes.department.name",
"attributes.expenditure.id",
"attributes.expenditure.code",
"attributes.expenditure.name",
"attributes.expenditure.type",
"attributes.project.id",
"attributes.project.code",
"attributes.project.name",
"attributes.departmentEntity.id",
"attributes.departmentEntity.code",
"attributes.departmentEntity.name",
"attributes.departmentEntity.hierarchyLevel",
"attributes.departmentEntity.ancestry[0].id",
"attributes.departmentEntity.ancestry[0].code",
"attributes.departmentEntity.ancestry[0].name",
"attributes.departmentEntity.ancestry[0].hierarchyLevel",
"attributes.departmentEntity.ancestry[1].id",
"attributes.departmentEntity.ancestry[1].code",
"attributes.departmentEntity.ancestry[1].name",
"attributes.departmentEntity.ancestry[1].hierarchyLevel",
"attributes.departmentEntity.ancestry[2].id",
"attributes.departmentEntity.ancestry[2].code",
"attributes.departmentEntity.ancestry[2].name",
"attributes.departmentEntity.ancestry[2].hierarchyLevel",
"attributes.departmentEntity.ancestry[3].id",
"attributes.departmentEntity.ancestry[3].code",
"attributes.departmentEntity.ancestry[3].name",
"attributes.departmentEntity.ancestry[3].hierarchyLevel",
"attributes.departmentEntity.ancestry[4].id",
"attributes.departmentEntity.ancestry[4].code",
"attributes.departmentEntity.ancestry[4].name",
"attributes.departmentEntity.ancestry[4].hierarchyLevel",
"attributes.departmentEntity.ancestry[5].id",
"attributes.departmentEntity.ancestry[5].code",
"attributes.departmentEntity.ancestry[5].name",
"attributes.departmentEntity.ancestry[5].hierarchyLevel",
"attributes.departmentEntity.ancestry[6].id",
"attributes.departmentEntity.ancestry[6].code",
"attributes.departmentEntity.ancestry[6].name",
"attributes.departmentEntity.ancestry[6].hierarchyLevel",
"attributes.departmentEntity.ancestry[7].id",
"attributes.departmentEntity.ancestry[7].code",
"attributes.departmentEntity.ancestry[7].name",
"attributes.departmentEntity.ancestry[7].hierarchyLevel",
"attributes.departmentEntity.ancestry[8].id",
"attributes.departmentEntity.ancestry[8].code",
"attributes.departmentEntity.ancestry[8].name",
"attributes.departmentEntity.ancestry[8].hierarchyLevel",
"attributes.departmentEntity.ancestry[9].id",
"attributes.departmentEntity.ancestry[9].code",
"attributes.departmentEntity.ancestry[9].name",
"attributes.departmentEntity.ancestry[9].hierarchyLevel",
"attributes.departmentEntity.ancestry[10].id",
"attributes.departmentEntity.ancestry[10].code",
"attributes.departmentEntity.ancestry[10].name",
"attributes.departmentEntity.ancestry[10].hierarchyLevel",
"attributes.pspclAccountNumber",
{
"name": "bill",
"type": "double"
},
{
"name": "receipt",
"type": "double"
},
{
"name": "demand",
"type": "double"
},
{
"name": "payment",
"type": "double"
},
"auditDetails.createdBy",
"auditDetails.lastModifiedBy",
{
"type": "long",
"name": "auditDetails.createdTime"
},
{
"type": "long",
"name": "auditDetails.lastModifiedTime"
}
]
},
"granularitySpec": {
"queryGranularity": "none",
"rollup": false,
"segmentGranularity": "hour"
}
}
}
}