-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtest.json
More file actions
164 lines (164 loc) · 5.33 KB
/
Copy pathtest.json
File metadata and controls
164 lines (164 loc) · 5.33 KB
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
{
"0": {
"topic": "migration-completed-2",
"schema": {
"type": "record",
"name": "BalanceMigrationCompletedEvent",
"namespace": "uk.co.boostpower.support.kafka.messages",
"doc": "Signals that a siemens balance and transaction history was migrated to the new balance platform. Triggered by Balance Service",
"fields": [
{
"name": "metadata",
"type": {
"type": "record",
"name": "EventMetadata",
"namespace": "com.ovoenergy.kafka.common.event",
"doc": "Metadata, to be used in each event class",
"fields": [
{
"name": "eventId",
"type": "string",
"doc": "A globally unique ID for this Kafka message"
},
{
"name": "traceToken",
"type": "string",
"doc": "An ID that can be used to link all the requests and Kafka messages in a given transaction. If you already have a trace token from a previous event/request, you should copy it here. If this is the very start of a transaction, you should generate a fresh trace token and put it here. A UUID is suitable"
},
{
"name": "createdAt",
"type": {
"type": "long",
"logicalType": "timestamp-millis"
},
"doc": "A timestamp for when the event was created (in epoch millis)"
}
]
}
},
{
"name": "accountId",
"type": "string",
"doc": "7 digit unique identifier for the customer"
}
]
},
"partition": 0,
"key": null,
"messages": [
{
"metadata": {
"eventId": "1049508-1328-4083-8613-queued",
"traceToken": "8115ef8a-71c8-4814-aea4-0b7984eae263",
"createdAt": 1525478400000
},
"accountId": "6666666"
},
{
"metadata": {
"eventId": "11f49508-1328-4083-8613-queued",
"traceToken": "8115ef8a-71c8-4814-aea4-0b7984eae263",
"createdAt": 1525478400000
},
"accountId": "5555555"
},
{
"metadata": {
"eventId": "12f49508-1328-4083-8613-queued",
"traceToken": "8115ef8a-71c8-4814-aea4-0b7984eae263",
"createdAt": 1525478400000
},
"accountId": "4444444"
},
{
"metadata": {
"eventId": "13f49508-1328-4083-8613-queued",
"traceToken": "8115ef8a-71c8-4814-aea4-0b7984eae263",
"createdAt": 1525478400000
},
"accountId": "3333333"
}
]
},
"1": {
"topic": "migration-completed-2",
"schema": {
"type": "record",
"name": "BalanceMigrationCompletedEvent",
"namespace": "uk.co.boostpower.support.kafka.messages",
"doc": "Signals that a siemens balance and transaction history was migrated to the new balance platform. Triggered by Balance Service",
"fields": [
{
"name": "metadata",
"type": {
"type": "record",
"name": "EventMetadata",
"namespace": "com.ovoenergy.kafka.common.event",
"doc": "Metadata, to be used in each event class",
"fields": [
{
"name": "eventId",
"type": "string",
"doc": "A globally unique ID for this Kafka message"
},
{
"name": "traceToken",
"type": "string",
"doc": "An ID that can be used to link all the requests and Kafka messages in a given transaction. If you already have a trace token from a previous event/request, you should copy it here. If this is the very start of a transaction, you should generate a fresh trace token and put it here. A UUID is suitable"
},
{
"name": "createdAt",
"type": {
"type": "long",
"logicalType": "timestamp-millis"
},
"doc": "A timestamp for when the event was created (in epoch millis)"
}
]
}
},
{
"name": "accountId",
"type": "string",
"doc": "7 digit unique identifier for the customer"
}
]
},
"partition": 1,
"key": null,
"messages": [
{
"metadata": {
"eventId": "14f49508-1328-4083-8613-queued",
"traceToken": "8115ef8a-71c8-4814-aea4-0b7984eae263",
"createdAt": 1525478400000
},
"accountId": "2222222"
},
{
"metadata": {
"eventId": "15f49508-1328-4083-8613-queued",
"traceToken": "8115ef8a-71c8-4814-aea4-0b7984eae263",
"createdAt": 1525478400000
},
"accountId": "1111111"
},
{
"metadata": {
"eventId": "16f49508-1328-4083-8613-queued",
"traceToken": "8115ef8a-71c8-4814-aea4-0b7984eae263",
"createdAt": 1525478400000
},
"accountId": "7777777"
},
{
"metadata": {
"eventId": "17f49508-1328-4083-8613-queued",
"traceToken": "8115ef8a-71c8-4814-aea4-0b7984eae263",
"createdAt": 1525478400000
},
"accountId": "8888888"
}
]
}
}