74db2020517daee57f039b5400e85d9fbaa19ffa
[policy/models.git] / models-examples / src / main / resources / policytypes / onap.policies.drools.Controller.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 policy_types:
3     onap.policies.drools.Controller:
4         derived_from: tosca.policies.Root
5         description: a policy type for drools controller configuration
6         version: 1.0.0
7         properties:
8             controllerName:
9                 type: string
10                 required: true
11                 description: the drools controller name
12             sourceTopics:
13                 type: list
14                 required: false
15                 description: all the source topices and configurations needed for the events coming under each topic
16                 entry_schema:
17                     type: onap.datatypes.dmaap.topic
18             sinkTopics:
19                 type: list
20                 required: false
21                 description: all the sink topices and configurations needed for the events sending under each topic
22                 entry_schema:
23                     type: onap.datatypes.dmaap.topic
24             customConfig:
25                 type: map
26                 required: false
27                 description: any use case specific configurations relevant to the drools controller
28                 entry_schema:
29                     type: string
30
31 data_types:
32     onap.datatypes.dmaap.topic:
33         derived_from: tosca.datatypes.Root
34         properties:
35             topicName:
36                 type: string
37                 required: true
38                 description: the dmaap topic name
39             serialization:
40                 type: list
41                 required: true
42                 description: all the configurations needed for serializing all kinds of events under current topic
43                 entry_schema:
44                     type: onap.datatypes.dmaap.serialization
45     onap.datatypes.dmaap.serialization:
46         derived_from: tosca.datatypes.Root
47         properties:
48             eventCanonicalName:
49                 type: string
50                 required: true
51                 description: the event canonical class for serialization
52             eventFilter:
53                 type: string
54                 required: false
55                 description: the JSONPath based condition to filter out the events to serialize
56             customSerializer:
57                 type: onap.datatypes.dmaap.custom_serializer
58                 required: false
59                 description:  a custom serializer to use for serializing current event
60     onap.datatypes.dmaap.custom_serializer:
61         derived_from: tosca.datatypes.Root
62         properties:
63             customSerializerClass:
64                 type: string
65                 required: true
66                 description: the class of custom serializer
67             jsonParser:
68                 type: string
69                 required: true
70                 description: a json parser to use which is implemented in custom serializer class