aboutsummaryrefslogtreecommitdiffstats
path: root/ONAP-REST/src/test/resources/TESTMODEL-v1806.yml
blob: 8f35e6fc178269d47a2b6cfb228828e7f55a25eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
tosca_definitions_version: tosca_simple_yaml_1_0_0

node_types: 
    
    # policy root node
    policy.nodes.Root:
        derived_from: tosca.nodes.Root
        properties:
            policyName:
                type: string
                required: true
            policyVersion:
                type: string
                required: true
            policyScope:
                type: string
                required: true
            policyDescription:
                type: string
                required: false

    # virtual policy node for naming 
    policy.nodes.naming-model:
        derived_from: policy.nodes.Root
        properties:
            Correlation Priority:
                type: string
                required: true
            Correlation Window:
                type: String
                required: true
            Email Notification for failures:
                type: String
                required: true
            Select Server Scope: # Need Dictionary
                type: String
                required: true
            Parent Correlation Name:
                type: String
                required: true
            Parent Correlation Traversal: # Need Dictionary
                type: String
                required: true
            triggerSignature:
                type: list
                required: true
                entry_schema:
                    - type:policy.data.resource-model-entity 
            logicalConnector: 
                type: list
                required: true
                entry_schema:
                    type: string
                    constraints:
                       - valid_values: ["OR", "AND"]                    
data_types:
    # custom data type
    policy.data.resource-model-entity:
        derived_from: tosca.nodes.Root
        properties:
            signatures:
                    type: policy.data.element
                    required: false        

    policy.data.element:
        derived_from: tosca.nodes.Root
        properties:
            alarmSignatures:
                type: list
                required: true
                entry_schema:
                    type: policy.data.range
             
    policy.data.range:
        derived_from: tosca.nodes.Root
        properties:
            traversal:
                type: string
                required: true
            alarmSignature:
                type: list
                required: true
                entry_schema:
                    type: policy.data.alarms

    policy.data.alarms:
        derived_from: tosca.nodes.Root
        properties:
            VnfType:
                type: list
                required: true
                entry_schema:
                    type: string
                    constraints:
                       - valid_values: ["dictionary:GocVNFType#Rules"]  
            Contains:
                type: list
                required: true
                entry_schema:
                    type: string
                    constraints:
                       - valid_values: ["OR", "AND", "CONTAINS", "EQUALS", "NOTEQUALS", "ENDSWITH", "STARTSWITH"]
            FilterValue:
                type: string
                required: true     

JSON_MODEL: signatures.alarmSignatures.alarmSignature