jhh | baa4e92 | 2020-01-30 18:57:13 -0600 | [diff] [blame] | 1 | { |
| 2 | "tosca_definitions_version": "tosca_simple_yaml_1_0_0", |
| 3 | "topology_template": { |
| 4 | "policies": [ |
| 5 | { |
jhh | 97e19c9 | 2020-03-22 19:37:21 -0500 | [diff] [blame] | 6 | "example.controller": { |
jhh | 3f563fe | 2020-03-05 22:32:58 -0600 | [diff] [blame] | 7 | "type": "onap.policies.native.drools.Controller", |
jhh | baa4e92 | 2020-01-30 18:57:13 -0600 | [diff] [blame] | 8 | "type_version": "1.0.0", |
| 9 | "version": "1.0.0", |
jhh | 97e19c9 | 2020-03-22 19:37:21 -0500 | [diff] [blame] | 10 | "name": "example.controller", |
jhh | baa4e92 | 2020-01-30 18:57:13 -0600 | [diff] [blame] | 11 | "metadata": { |
jhh | 97e19c9 | 2020-03-22 19:37:21 -0500 | [diff] [blame] | 12 | "policy-id": "example.controller" |
jhh | baa4e92 | 2020-01-30 18:57:13 -0600 | [diff] [blame] | 13 | }, |
| 14 | "properties": { |
jhh | 53b503a | 2020-03-02 15:26:22 -0600 | [diff] [blame] | 15 | "controllerName": "lifecycle", |
jhh | baa4e92 | 2020-01-30 18:57:13 -0600 | [diff] [blame] | 16 | "sourceTopics": [ |
| 17 | { |
| 18 | "topicName": "DCAE_TOPIC", |
jhh | 3f563fe | 2020-03-05 22:32:58 -0600 | [diff] [blame] | 19 | "events": [ |
jhh | baa4e92 | 2020-01-30 18:57:13 -0600 | [diff] [blame] | 20 | { |
| 21 | "eventClass": "org.onap.policy.controlloop.CanonicalOnset", |
| 22 | "eventFilter": "[?($.closedLoopEventStatus == 'ONSET')]", |
jhh | 3f563fe | 2020-03-05 22:32:58 -0600 | [diff] [blame] | 23 | "customSerialization": { |
jhh | baa4e92 | 2020-01-30 18:57:13 -0600 | [diff] [blame] | 24 | "customSerializerClass": "org.onap.policy.controlloop.util.Serialization", |
| 25 | "jsonParser": "gson" |
| 26 | } |
jhh | 3f563fe | 2020-03-05 22:32:58 -0600 | [diff] [blame] | 27 | }, |
| 28 | { |
| 29 | "eventClass": "org.onap.policy.controlloop.CanonicalAbated", |
| 30 | "eventFilter": "[?($.closedLoopEventStatus == 'ABATED')]" |
jhh | baa4e92 | 2020-01-30 18:57:13 -0600 | [diff] [blame] | 31 | } |
| 32 | ] |
| 33 | } |
| 34 | ], |
| 35 | "sinkTopics": [ |
| 36 | { |
| 37 | "topicName": "APPC-CL", |
jhh | 3f563fe | 2020-03-05 22:32:58 -0600 | [diff] [blame] | 38 | "events": [ |
jhh | baa4e92 | 2020-01-30 18:57:13 -0600 | [diff] [blame] | 39 | { |
| 40 | "eventClass": "org.onap.policy.appc.Response", |
| 41 | "eventFilter": "[?($.CommonHeader && $.Status)]", |
jhh | 3f563fe | 2020-03-05 22:32:58 -0600 | [diff] [blame] | 42 | "customSerialization": { |
jhh | baa4e92 | 2020-01-30 18:57:13 -0600 | [diff] [blame] | 43 | "customSerializerClass": "org.onap.policy.appc.util.Serialization", |
| 44 | "jsonParser": "gsonPretty" |
| 45 | } |
| 46 | } |
| 47 | ] |
| 48 | } |
| 49 | ], |
| 50 | "customConfig": { |
| 51 | "field1" : "value1" |
| 52 | } |
| 53 | } |
| 54 | } |
| 55 | } |
| 56 | ] |
| 57 | } |
| 58 | } |