Fix vROps monitoring problems related to SOL006 migration
[osm/MON.git] / osm_mon / tests / unit / collector / vnf_collectors / vmware / osm_mocks / VNFD.json
1 {
2         "_copyright_comment": "Copyright 2016-2019 VMware Inc.  This file is part of ETSI OSM  All Rights Reserved. Licensed under the Apache License, Version 2.0 (the 'License'); you may  not use this file except in compliance with the License. You may obtain a copy of the License at   http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. For those usages not covered by the Apache License, Version 2.0 please contact:  osslegalrouting@vmware.com",
3         "_id": "cb0da948-7bce-474d-bbcb-6bfce545d397",
4         "id": "ubuntu_vdu_alarm_vnf",
5         "_admin": {
6                 "created": 1562374395.5216513,
7                 "modified": 1562374395.5216513,
8                 "onboardingState": "ONBOARDED",
9                 "operationalState": "ENABLED",
10                 "projects_read": [
11                         "775be778-0f51-495a-b865-a23ab20a080f"
12                 ],
13                 "projects_write": [
14                         "775be778-0f51-495a-b865-a23ab20a080f"
15                 ],
16                 "storage": {
17                         "descriptor": "cirros_vnf/cirros_vdu_alarm_vnfd.yaml",
18                         "folder": "cb0da948-7bce-474d-bbcb-6bfce545d397",
19                         "fs": "local",
20                         "path": "/app/storage/",
21                         "pkg-dir": "cirros_vnf",
22                         "zipfile": "package.tar.gz"
23                 },
24                 "type": "vnfd",
25                 "usageState": "NOT_IN_USE",
26                 "userDefinedData": {
27                 }
28         },
29         "product-name": "ubuntu_vdu_alarm_vnf",
30         "version": "1.0",
31         "vdu": [
32                 {
33                         "id": "ubuntu_vnfd-VM",
34                         "name": "ubuntu_vnfd-VM",
35                         "int-cpd": [
36                                 {
37                                         "virtual-network-interface-requirement": [
38                                                 {
39                                                         "name": "vdu-eth0"
40                                                 }
41                                         ],
42                                         "id": "vdu-eth0-int"
43                                 }
44                         ],
45                         "virtual-compute-desc": "ubuntu_vnfd-VM-compute",
46                         "virtual-storage-desc": [
47                                 "ubuntu_vnfd-VM-storage"
48                         ],
49                         "sw-image-desc": "ubuntu",
50                         "monitoring-parameter": [
51                                 {
52                                         "id": "ubuntu_vnf_cpu_util",
53                                         "name": "ubuntu_vnf_cpu_util",
54                                         "performance-metric": "cpu_utilization"
55                                 },
56                                 {
57                                         "id": "ubuntu_vnf_average_memory_utilization",
58                                         "name": "ubuntu_vnf_average_memory_utilization",
59                                         "performance-metric": "average_memory_utilization"
60                                 },
61                                 {
62                                         "id": "ubuntu_vnf_packets_sent",
63                                         "name": "ubuntu_vnf_packets_sent",
64                                         "performance-metric": "packets_sent"
65                                 },
66                                 {
67                                         "id": "ubuntu_vnf_packets_received",
68                                         "name": "ubuntu_vnf_packets_received",
69                                         "performance-metric": "packets_received"
70                                 },
71                                 {
72                                         "id": "ubuntu_vnf_disk_read_ops",
73                                         "name": "ubuntu_vnf_disk_read_ops",
74                                         "performance-metric": "disk_read_ops"
75                                 },
76                                 {
77                                         "id": "ubuntu_vnf_disk_write_ops",
78                                         "name": "ubuntu_vnf_disk_write_ops",
79                                         "performance-metric": "disk_write_ops"
80                                 },
81                                 {
82                                         "id": "ubuntu_vnf_disk_read_bytes",
83                                         "name": "ubuntu_vnf_disk_read_bytes",
84                                         "performance-metric": "disk_read_bytes"
85                                 },
86                                 {
87                                         "id": "ubuntu_vnf_disk_write_bytes",
88                                         "name": "ubuntu_vnf_disk_write_bytes",
89                                         "performance-metric": "disk_write_bytes"
90                                 },
91                                 {
92                                         "id": "ubuntu_vnf_packets_out_dropped",
93                                         "name": "ubuntu_vnf_packets_out_dropped",
94                                         "performance-metric": "packets_out_dropped"
95                                 },
96                                 {
97                                         "id": "ubuntu_vnf_packets_in_dropped",
98                                         "name": "ubuntu_vnf_packets_in_dropped",
99                                         "performance-metric": "packets_in_dropped"
100                                 }
101                         ],
102                         "alarm": [
103                                 {
104                                         "alarm-id": "alarm-1",
105                                         "vnf-monitoring-param-ref": "ubuntu_vnf_cpu_util",
106                                         "actions": {
107                                                 "ok": [
108                                                         {
109                                                                 "url": "https://webhook.site/e65ad8a0-53b5-4d7f-bd50-c1a50b260871"
110                                                         }
111                                                 ],
112                                                 "insufficient-data": [
113                                                         {
114                                                                 "url": "https://webhook.site/e65ad8a0-53b5-4d7f-bd50-c1a50b260871"
115                                                         }
116                                                 ],
117                                                 "alarm": [
118                                                         {
119                                                                 "url": "https://webhook.site/e65ad8a0-53b5-4d7f-bd50-c1a50b260871"
120                                                         }
121                                                 ]
122                                         },
123                                         "operation": "LT",
124                                         "value": "20.0000"
125                                 }
126                         ]
127                 }
128         ],
129         "virtual-compute-desc": [
130                 {
131                         "id": "ubuntu_vnfd-VM-compute",
132                         "virtual-cpu": {
133                                 "num-virtual-cpu": 4
134                         },
135                         "virtual-memory": {
136                                 "size": 4
137                         }
138                 }
139         ],
140         "virtual-storage-desc": [
141                 {
142                         "id": "ubuntu_vnfd-VM-storage",
143                         "size-of-storage": 20
144                 }
145         ],
146         "sw-image-desc": [
147                 {
148                         "id": "ubuntu",
149                         "name": "ubuntu",
150                         "image": "ubuntu"
151                 }
152         ],
153         "ext-cpd": [
154                 {
155                         "int-cpd": {
156                                 "vdu-id": "ubuntu_vnfd-VM",
157                                 "cpd": "vdu-eth0-int"
158                         },
159                         "id": "vnf-cp0-ext"
160                 }
161         ],
162         "df": [
163                 {
164                         "id": "default-df",
165                         "vdu-profile": [
166                                 {
167                                         "id": "ubuntu_vnfd-VM",
168                                         "min-number-of-instances": 1,
169                                         "max-number-of-instances": 2
170                                 }
171                         ],
172                         "instantiation-level": [
173                                 {
174                                         "id": "default-instantiation-level",
175                                         "vdu-level": [
176                                                 {
177                                                         "vdu-id": "ubuntu_vnfd-VM",
178                                                         "number-of-instances": 1
179                                                 }
180                                         ]
181                                 }
182                         ],
183                         "scaling-aspect": [
184                                 {
185                                         "id": "cpu_autoscaling_descriptor",
186                                         "name": "cpu_autoscaling_descriptor",
187                                         "max-scale-level": 1,
188                                         "aspect-delta-details": {
189                                                 "deltas": [
190                                                         {
191                                                                 "id": "vdu_autoscale-delta",
192                                                                 "vdu-delta": [
193                                                                         {
194                                                                                 "id": "ubuntu_vnfd-VM",
195                                                                                 "number-of-instances": 1
196                                                                         }
197                                                                 ]
198                                                         }
199                                                 ]
200                                         },
201                                         "scaling-policy": [
202                                                 {
203                                                         "name": "cpu_scaling_policy",
204                                                         "scaling-type": "automatic",
205                                                         "threshold-time": 10,
206                                                         "cooldown-time": 120,
207                                                         "scaling-criteria": [
208                                                                 {
209                                                                         "name": "cpu_autoscaling_criteria",
210                                                                         "scale-in-threshold": "20.0000000000",
211                                                                         "scale-in-relational-operation": "LT",
212                                                                         "scale-out-threshold": "80.0000000000",
213                                                                         "scale-out-relational-operation": "GT",
214                                                                         "vnf-monitoring-param-ref": "ubuntu_vnf_cpu_util"
215                                                                 }
216                                                         ]
217                                                 }
218                                         ]
219                                 }
220                         ]
221                 }
222         ],
223         "description": "Simple Ubuntu VNF with metric collectors and scaling group",
224         "mgmt-cp": "vnf-cp0-ext"
225 }