Add license to policy-engine files
[policy/engine.git] / POLICY-SDK-APP / src / test / resources / policy_tosca_tca-v1707.yml
1 #
2 #============LICENSE_START==================================================
3 #  ONAP Policy Engine
4 #===========================================================================
5 #  Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
6 #===========================================================================
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
10 #
11 #         http://www.apache.org/licenses/LICENSE-2.0
12 #
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 #============LICENSE_END==================================================
19 #
20
21 tosca_definitions_version: tosca_simple_yaml_1_0_0
22
23 node_types: 
24     # policy root node
25     policy.nodes.Root:
26         derived_from: tosca.nodes.Root
27         properties:
28             policyName:
29                 type: string
30                 required: true
31             policyVersion:
32                 type: string
33                 required: true
34             policyScope:
35                 type: string
36                 required: true
37             policyDescription:
38                 type: string
39                 required: false
40
41     # virtual policy node for string matcher
42     policy.nodes.tca:
43         derived_from: policy.nodes.Root
44         properties:
45             functionalRole:
46                 type: string
47                 required: true
48                 default: "ClosedLoop_F5-d925ed73-8231-4d02-9545-db4e101f88f8" 
49             policyName:
50                 type: string
51                 required: true
52                 default: "configuration.dcae.microservice.tca.xml"
53             policyVersion:
54                 type: string
55                 required: true
56                 default: "v0.0.1"
57             threshholds:
58                 type: list
59                 entry_schema:
60                     - type:policy.data.Threshold                    
61             
62 data_types:
63     policy.data.Threshold:
64         derived_from: tosca.nodes.Root
65         properties:
66             closedLoopControlName:
67                 type: string
68                 required: true
69             version:
70                 type: string
71                 required: true
72                 default: "1.0.2"
73             fieldPath:
74                 type: string
75                 required: true
76             thresholdValue:
77                 type: integer
78                 required: true
79             direction:
80                 type: string
81                 required: true
82             severity:
83                 type: string
84                 required: true
85