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