-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd_ts_policy.json
75 lines (75 loc) · 1.59 KB
/
add_ts_policy.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
{
"id": "add_ts_policy",
"matching": {
"topicFilter": "temp/#"
},
"validation": {
"validators": [
{
"type": "schema",
"arguments": {
"strategy": "ALL_OF",
"schemas": [
{
"schemaId": "mytemp-in-schema",
"version": "latest"
}
]
}
}
]
},
"onSuccess": {
"pipeline": [
{
"id": "operation-QSawq",
"functionId": "System.log",
"arguments": {
"level": "INFO",
"message": "OK message recieved on ${topic}"
}
},
{
"id": "operation-WO12F",
"functionId": "Serdes.deserialize",
"arguments": {
"schemaVersion": "latest",
"schemaId": "mytemp-in-schema"
}
},
{
"id": "operation-ioIoO",
"functionId": "fn:add_timestamp:latest",
"arguments": {}
},
{
"id": "operation-SEkwu",
"functionId": "Serdes.serialize",
"arguments": {
"schemaVersion": "latest",
"schemaId": "mytemp-out-schema"
}
},
{
"id": "operation-E0w6n",
"functionId": "Delivery.redirectTo",
"arguments": {
"topic": "Temp-TS/${topic}",
"applyPolicies": false
}
}
]
},
"onFailure": {
"pipeline": [
{
"id": "operation-n7Wcb",
"functionId": "System.log",
"arguments": {
"level": "WARN",
"message": "${policyId} : Invalid message content in message on ${topic}"
}
}
]
}
}