blob: 2b98a2422232ed2238e195bbad233ee368fe365d [file] [log] [blame]
jhhbaa4e922020-01-30 18:57:13 -06001{
2 "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
3 "topology_template": {
4 "policies": [
5 {
jhh97e19c92020-03-22 19:37:21 -05006 "example.controller": {
jhh3f563fe2020-03-05 22:32:58 -06007 "type": "onap.policies.native.drools.Controller",
jhhbaa4e922020-01-30 18:57:13 -06008 "type_version": "1.0.0",
9 "version": "1.0.0",
jhh97e19c92020-03-22 19:37:21 -050010 "name": "example.controller",
jhhbaa4e922020-01-30 18:57:13 -060011 "metadata": {
jhh97e19c92020-03-22 19:37:21 -050012 "policy-id": "example.controller"
jhhbaa4e922020-01-30 18:57:13 -060013 },
14 "properties": {
jhh53b503a2020-03-02 15:26:22 -060015 "controllerName": "lifecycle",
jhhbaa4e922020-01-30 18:57:13 -060016 "sourceTopics": [
17 {
18 "topicName": "DCAE_TOPIC",
jhh3f563fe2020-03-05 22:32:58 -060019 "events": [
jhhbaa4e922020-01-30 18:57:13 -060020 {
21 "eventClass": "org.onap.policy.controlloop.CanonicalOnset",
22 "eventFilter": "[?($.closedLoopEventStatus == 'ONSET')]",
jhh3f563fe2020-03-05 22:32:58 -060023 "customSerialization": {
jhhbaa4e922020-01-30 18:57:13 -060024 "customSerializerClass": "org.onap.policy.controlloop.util.Serialization",
25 "jsonParser": "gson"
26 }
jhh3f563fe2020-03-05 22:32:58 -060027 },
28 {
29 "eventClass": "org.onap.policy.controlloop.CanonicalAbated",
30 "eventFilter": "[?($.closedLoopEventStatus == 'ABATED')]"
jhhbaa4e922020-01-30 18:57:13 -060031 }
32 ]
33 }
34 ],
35 "sinkTopics": [
36 {
37 "topicName": "APPC-CL",
jhh3f563fe2020-03-05 22:32:58 -060038 "events": [
jhhbaa4e922020-01-30 18:57:13 -060039 {
40 "eventClass": "org.onap.policy.appc.Response",
41 "eventFilter": "[?($.CommonHeader && $.Status)]",
jhh3f563fe2020-03-05 22:32:58 -060042 "customSerialization": {
jhhbaa4e922020-01-30 18:57:13 -060043 "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}