0c30ceea03a06741118bea010d0a7ae51853716f
[policy/engine.git] / POLICY-SDK-APP / src / test / resources / policy_tosca_tca-v1707.yml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2
3 node_types: 
4     # policy root node
5     policy.nodes.Root:
6         derived_from: tosca.nodes.Root
7         properties:
8             policyName:
9                 type: string
10                 required: true
11             policyVersion:
12                 type: string
13                 required: true
14             policyScope:
15                 type: string
16                 required: true
17             policyDescription:
18                 type: string
19                 required: false
20
21     # virtual policy node for string matcher
22     policy.nodes.tca:
23         derived_from: policy.nodes.Root
24         properties:
25             functionalRole:
26                 type: string
27                 required: true
28                 default: "ClosedLoop_F5-d925ed73-8231-4d02-9545-db4e101f88f8" 
29             policyName:
30                 type: string
31                 required: true
32                 default: "configuration.dcae.microservice.tca.xml"
33             policyVersion:
34                 type: string
35                 required: true
36                 default: "v0.0.1"
37             threshholds:
38                 type: list
39                 entry_schema:
40                     - type:policy.data.Threshold                    
41             
42 data_types:
43     policy.data.Threshold:
44         derived_from: tosca.nodes.Root
45         properties:
46             closedLoopControlName:
47                 type: string
48                 required: true
49             version:
50                 type: string
51                 required: true
52                 default: "1.0.2"
53             fieldPath:
54                 type: string
55                 required: true
56             thresholdValue:
57                 type: integer
58                 required: true
59             direction:
60                 type: string
61                 required: true
62             severity:
63                 type: string
64                 required: true
65