File tree 2 files changed +27
-5
lines changed
2 files changed +27
-5
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,14 @@ type KinesisFirehoseResponse struct {
30
30
}
31
31
32
32
type KinesisFirehoseResponseRecord struct {
33
- RecordID string `json:"recordId"`
34
- Result string `json:"result"` // The status of the transformation. May be TransformedStateOk, TransformedStateDropped or TransformedStateProcessingFailed
35
- Data []byte `json:"data"`
33
+ RecordID string `json:"recordId"`
34
+ Result string `json:"result"` // The status of the transformation. May be TransformedStateOk, TransformedStateDropped or TransformedStateProcessingFailed
35
+ Data []byte `json:"data"`
36
+ Metadata KinesisFirehoseResponseRecordMetadata `json:"metadata"`
37
+ }
38
+
39
+ type KinesisFirehoseResponseRecordMetadata struct {
40
+ PartitionKeys map [string ]string `json:"partitionKeys"`
36
41
}
37
42
38
43
type KinesisFirehoseRecordMetadata struct {
Original file line number Diff line number Diff line change 3
3
{
4
4
"data" : " SGVsbG8gV29ybGQ=" ,
5
5
"recordId" : " record1" ,
6
- "result" : " TRANSFORMED_STATE_OK"
6
+ "result" : " TRANSFORMED_STATE_OK" ,
7
+ "metadata" : {
8
+ "partitionKeys" : {}
9
+ }
7
10
},
8
11
{
9
12
"data" : " SGVsbG8gV29ybGQ=" ,
10
13
"recordId" : " record2" ,
11
- "result" : " TRANSFORMED_STATE_DROPPED"
14
+ "result" : " TRANSFORMED_STATE_DROPPED" ,
15
+ "metadata" : {
16
+ "partitionKeys" : {}
17
+ }
18
+ },
19
+ {
20
+ "data" : " SGVsbG8gV29ybGQ=" ,
21
+ "recordId" : " record3" ,
22
+ "result" : " TransformedStateOk" ,
23
+ "metadata" : {
24
+ "partitionKeys" : {
25
+ "iamKey1" : " iamValue1" ,
26
+ "iamKey2" : " iamValue2"
27
+ }
28
+ }
12
29
}
13
30
]
14
31
}
You can’t perform that action at this time.
0 commit comments