-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata-policy-add_ts_policy_v2.json
65 lines (65 loc) · 1.63 KB
/
data-policy-add_ts_policy_v2.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
{
"id" : "${instanceId}-add_ts_policy",
"createdAt" : "2025-01-08T09:30:18.436Z",
"lastUpdatedAt" : "2025-01-08T09:34:06.412Z",
"matching" : {
"topicFilter" : "temp/#"
},
"validation" : {
"validators" : [ {
"type" : "schema",
"arguments" : {
"strategy" : "ALL_OF",
"schemas" : [ {
"schemaId" : "${instanceId}-mytemp-in-schema-1",
"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" : "${instanceId}-mytemp-in-schema-1"
}
}, {
"id" : "operation-ioIoO",
"functionId" : "fn:${instanceId}-add_timestamp-1:latest",
"arguments" : { }
}, {
"id" : "operation-SEkwu",
"functionId" : "Serdes.serialize",
"arguments" : {
"schemaVersion" : "latest",
"schemaId" : "${instanceId}-mytemp-out-schema-1"
}
}, {
"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}"
}
} ]
}
}