| { |
| "tosca_definitions_version": "tosca_simple_yaml_1_0_0", |
| "topology_template": { |
| "policies": [ |
| { |
| "example": { |
| "type": "onap.policies.native.drools.Controller", |
| "type_version": "1.0.0", |
| "version": "1.0.0", |
| "name": "example", |
| "metadata": { |
| "policy-id": "example" |
| }, |
| "properties": { |
| "controllerName": "lifecycle", |
| "sourceTopics": [ |
| { |
| "topicName": "DCAE_TOPIC", |
| "events": [ |
| { |
| "eventClass": "org.onap.policy.controlloop.CanonicalOnset", |
| "eventFilter": "[?($.closedLoopEventStatus == 'ONSET')]", |
| "customSerialization": { |
| "customSerializerClass": "org.onap.policy.controlloop.util.Serialization", |
| "jsonParser": "gson" |
| } |
| }, |
| { |
| "eventClass": "org.onap.policy.controlloop.CanonicalAbated", |
| "eventFilter": "[?($.closedLoopEventStatus == 'ABATED')]" |
| } |
| ] |
| } |
| ], |
| "sinkTopics": [ |
| { |
| "topicName": "APPC-CL", |
| "events": [ |
| { |
| "eventClass": "org.onap.policy.appc.Response", |
| "eventFilter": "[?($.CommonHeader && $.Status)]", |
| "customSerialization": { |
| "customSerializerClass": "org.onap.policy.appc.util.Serialization", |
| "jsonParser": "gsonPretty" |
| } |
| } |
| ] |
| } |
| ], |
| "customConfig": { |
| "field1" : "value1" |
| } |
| } |
| } |
| } |
| ] |
| } |
| } |