12105a4468d85de67474d257de6f59f5057073aa
[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         "_admin": {
4                 "created": 1562374395.5216513,
5                 "modified": 1562374395.5216513,
6                 "onboardingState": "ONBOARDED",
7                 "operationalState": "ENABLED",
8                 "projects_read": [
9                         "775be778-0f51-495a-b865-a23ab20a080f"
10                 ],
11                 "projects_write": [
12                         "775be778-0f51-495a-b865-a23ab20a080f"
13                 ],
14                 "storage": {
15                         "descriptor": "cirros_vnf/cirros_vdu_alarm_vnfd.yaml",
16                         "folder": "cb0da948-7bce-474d-bbcb-6bfce545d397",
17                         "fs": "local",
18                         "path": "/app/storage/",
19                         "pkg-dir": "cirros_vnf",
20                         "zipfile": "package.tar.gz"
21                 },
22                 "type": "vnfd",
23                 "usageState": "NOT_IN_USE",
24                 "userDefinedData": {
25                 }
26         },
27         "_id": "cb0da948-7bce-474d-bbcb-6bfce545d397",
28         "connection-point": [
29                 {
30                         "name": "eth0",
31                         "type": "VPORT"
32                 }
33         ],
34         "description": "Simple Ubuntu VNF with metric collectors and scaling group",
35         "id": "ubuntu_vdu_alarm_vnf",
36         "logo": "ubuntu-64.png",
37         "mgmt-interface": {
38                 "cp": "eth0"
39         },
40         "monitoring-param": [
41                 {
42                         "aggregation-type": "AVERAGE",
43                         "id": "ubuntu_vnf_cpu_util",
44                         "name": "ubuntu_vnf_cpu_util",
45                         "vdu-monitoring-param": {
46                                 "vdu-monitoring-param-ref": "ubuntu_vnfd-VM_cpu_util",
47                                 "vdu-ref": "ubuntu_vnfd-VM"
48                         }
49                 },
50                 {
51                         "aggregation-type": "AVERAGE",
52                         "id": "ubuntu_vnf_average_memory_utilization",
53                         "name": "ubuntu_vnf_average_memory_utilization",
54                         "vdu-monitoring-param": {
55                                 "vdu-monitoring-param-ref": "ubuntu_vnfd-VM_average_memory_utilization",
56                                 "vdu-ref": "ubuntu_vnfd-VM"
57                         }
58                 },
59                 {
60                         "aggregation-type": "AVERAGE",
61                         "id": "ubuntu_vnf_disk_read_ops",
62                         "name": "ubuntu_vnf_disk_read_ops",
63                         "vdu-monitoring-param": {
64                                 "vdu-monitoring-param-ref": "ubuntu_vnfd-VM_disk_read_ops",
65                                 "vdu-ref": "ubuntu_vnfd-VM"
66                         }
67                 },
68                 {
69                         "aggregation-type": "AVERAGE",
70                         "id": "ubuntu_vnf_disk_write_ops",
71                         "name": "ubuntu_vnf_disk_write_ops",
72                         "vdu-monitoring-param": {
73                                 "vdu-monitoring-param-ref": "ubuntu_vnfd-VM_disk_write_ops",
74                                 "vdu-ref": "ubuntu_vnfd-VM"
75                         }
76                 },
77                 {
78                         "aggregation-type": "AVERAGE",
79                         "id": "ubuntu_vnf_disk_read_bytes",
80                         "name": "ubuntu_vnf_disk_read_bytes",
81                         "vdu-monitoring-param": {
82                                 "vdu-monitoring-param-ref": "ubuntu_vnfd-VM_disk_read_bytes",
83                                 "vdu-ref": "ubuntu_vnfd-VM"
84                         }
85                 },
86                 {
87                         "aggregation-type": "AVERAGE",
88                         "id": "ubuntu_vnf_disk_write_bytes",
89                         "name": "ubuntu_vnf_disk_write_bytes",
90                         "vdu-monitoring-param": {
91                                 "vdu-monitoring-param-ref": "ubuntu_vnfd-VM_disk_write_bytes",
92                                 "vdu-ref": "ubuntu_vnfd-VM"
93                         }
94                 },
95                 {
96                         "aggregation-type": "AVERAGE",
97                         "id": "ubuntu_vnf_packets_in_dropped",
98                         "name": "ubuntu_vnf_packets_in_dropped",
99                         "vdu-monitoring-param": {
100                                 "vdu-monitoring-param-ref": "ubuntu_vnfd-VM_packets_in_dropped",
101                                 "vdu-ref": "ubuntu_vnfd-VM"
102                         }
103                 },
104                 {
105                         "aggregation-type": "AVERAGE",
106                         "id": "ubuntu_vnf_packets_out_dropped",
107                         "name": "ubuntu_vnf_packets_out_dropped",
108                         "vdu-monitoring-param": {
109                                 "vdu-monitoring-param-ref": "ubuntu_vnfd-VM_packets_out_dropped",
110                                 "vdu-ref": "ubuntu_vnfd-VM"
111                         }
112                 },
113                 {
114                         "aggregation-type": "AVERAGE",
115                         "id": "ubuntu_vnf_packets_received",
116                         "name": "ubuntu_vnf_packets_received",
117                         "vdu-monitoring-param": {
118                                 "vdu-monitoring-param-ref": "ubuntu_vnfd-VM_packets_received",
119                                 "vdu-ref": "ubuntu_vnfd-VM"
120                         }
121                 },
122                 {
123                         "aggregation-type": "AVERAGE",
124                         "id": "ubuntu_vnf_packets_sent",
125                         "name": "ubuntu_vnf_packets_sent",
126                         "vdu-monitoring-param": {
127                                 "vdu-monitoring-param-ref": "ubuntu_vnfd-VM_packets_sent",
128                                 "vdu-ref": "ubuntu_vnfd-VM"
129                         }
130                 }
131         ],
132         "name": "ubuntu_vdu_alarm_vnf",
133         "scaling-group-descriptor": [
134                 {
135                         "min-instance-count": 0,
136                         "name": "cpu_autoscaling_descriptor",
137                         "scaling-policy": [
138                                 {
139                                         "cooldown-time": 120,
140                                         "name": "cpu_scaling_policy",
141                                         "scaling-criteria": [
142                                                 {
143                                                         "name": "cpu_autoscaling_criteria",
144                                                         "scale-in-relational-operation": "LT",
145                                                         "scale-in-threshold": "20.0000000000",
146                                                         "scale-out-relational-operation": "GT",
147                                                         "scale-out-threshold": "80.0000000000",
148                                                         "vnf-monitoring-param-ref": "ubuntu_vnf_cpu_util"
149                                                 }
150                                         ],
151                                         "scaling-type": "automatic"
152                                 }
153                         ],
154                         "vdu": [
155                                 {
156                                         "vdu-id-ref": "ubuntu_vnfd-VM"
157                                 }
158                         ]
159                 }
160         ],
161         "short-name": "ubuntu_vdu_alarm_vnf",
162         "vdu": [
163                 {
164                         "alarm": [
165                                 {
166                                         "actions": {
167                                                 "alarm": [
168                                                         {
169                                                                 "url": "https://webhook.site/e65ad8a0-53b5-4d7f-bd50-c1a50b260871"
170                                                         }
171                                                 ],
172                                                 "insufficient-data": [
173                                                         {
174                                                                 "url": "https://webhook.site/e65ad8a0-53b5-4d7f-bd50-c1a50b260871"
175                                                         }
176                                                 ],
177                                                 "ok": [
178                                                         {
179                                                                 "url": "https://webhook.site/e65ad8a0-53b5-4d7f-bd50-c1a50b260871"
180                                                         }
181                                                 ]
182                                         },
183                                         "alarm-id": "alarm-1",
184                                         "operation": "LT",
185                                         "value": "20.0000",
186                                         "vnf-monitoring-param-ref": "ubuntu_vnf_cpu_util"
187                                 }
188                         ],
189                         "count": "1",
190                         "description": "ubuntu_vnfd-VM",
191                         "id": "ubuntu_vnfd-VM",
192                         "image": "ubuntu",
193                         "interface": [
194                                 {
195                                         "external-connection-point-ref": "eth0",
196                                         "name": "eth0",
197                                         "virtual-interface": {
198                                                 "bandwidth": "0",
199                                                 "type": "VIRTIO",
200                                                 "vpci": "0000:00:0a.0"
201                                         }
202                                 }
203                         ],
204                         "monitoring-param": [
205                                 {
206                                         "id": "ubuntu_vnfd-VM_cpu_util",
207                                         "nfvi-metric": "cpu_utilization"
208                                 },
209                                 {
210                                         "id": "ubuntu_vnfd-VM_average_memory_utilization",
211                                         "nfvi-metric": "average_memory_utilization"
212                                 },
213                                 {
214                                         "id": "ubuntu_vnfd-VM_disk_read_ops",
215                                         "nfvi-metric": "disk_read_ops"
216                                 },
217                                 {
218                                         "id": "ubuntu_vnfd-VM_disk_write_ops",
219                                         "nfvi-metric": "disk_write_ops"
220                                 },
221                                 {
222                                         "id": "ubuntu_vnfd-VM_disk_read_bytes",
223                                         "nfvi-metric": "disk_read_bytes"
224                                 },
225                                 {
226                                         "id": "ubuntu_vnfd-VM_disk_write_bytes",
227                                         "nfvi-metric": "disk_write_bytes"
228                                 },
229                                 {
230                                         "id": "ubuntu_vnfd-VM_packets_in_dropped",
231                                         "nfvi-metric": "packets_in_dropped"
232                                 },
233                                 {
234                                         "id": "ubuntu_vnfd-VM_packets_out_dropped",
235                                         "nfvi-metric": "packets_out_dropped"
236                                 },
237                                 {
238                                         "id": "ubuntu_vnfd-VM_packets_received",
239                                         "nfvi-metric": "packets_received"
240                                 },
241                                 {
242                                         "id": "ubuntu_vnfd-VM_packets_sent",
243                                         "nfvi-metric": "packets_sent"
244                                 }
245                         ],
246                         "name": "ubuntu_vnfd-VM",
247                         "vm-flavor": {
248                                 "memory-mb": "4096",
249                                 "storage-gb": "20",
250                                 "vcpu-count": 4
251                         }
252                 }
253         ],
254         "vendor": "OSM",
255         "version": "1.0"
256 }