Reduce Resource Consumption
[osm/MON.git] / osm_mon / tests / unit / collector / vnf_collectors / vmware / osm_mocks / VNFD.json
1 {
2         "_admin": {
3                 "created": 1561567611.6193357,
4                 "modified": 1561567611.6193357,
5                 "onboardingState": "ONBOARDED",
6                 "operationalState": "ENABLED",
7                 "projects_read": [
8                         "admin"
9                 ],
10                 "projects_write": [
11                         "admin"
12                 ],
13                 "storage": {
14                         "descriptor": "cirros_vnf/cirros_vdu_alarm_vnfd.yaml",
15                         "folder": "9d116df6-6fa7-4a5b-b284-a67f554c1261",
16                         "fs": "local",
17                         "path": "/app/storage/",
18                         "pkg-dir": "cirros_vnf",
19                         "zipfile": "cirros_vdu_alarm_vnfd.tar.gz"
20                 },
21                 "type": "vnfd",
22                 "usageState": "NOT_IN_USE",
23                 "userDefinedData": {
24                 }
25         },
26         "_id": "9d116df6-6fa7-4a5b-b284-a67f554c1261",
27         "connection-point": [
28                 {
29                         "name": "eth0",
30                         "type": "VPORT"
31                 }
32         ],
33         "description": "Simple VNF example with a cirros and a VNF alarm",
34         "id": "cirros_vdu_alarm_vnf",
35         "logo": "cirros-64.png",
36         "mgmt-interface": {
37                 "cp": "eth0"
38         },
39         "monitoring-param": [
40                 {
41                         "aggregation-type": "AVERAGE",
42                         "id": "cirros_vnf_cpu_util",
43                         "name": "cirros_vnf_cpu_util",
44                         "vdu-monitoring-param": {
45                                 "vdu-monitoring-param-ref": "cirros_vnfd-VM_cpu_util",
46                                 "vdu-ref": "cirros_vnfd-VM"
47                         }
48                 },
49                 {
50                         "aggregation-type": "AVERAGE",
51                         "id": "cirros_vnf_average_memory_utilization",
52                         "name": "cirros_vnf_average_memory_utilization",
53                         "vdu-monitoring-param": {
54                                 "vdu-monitoring-param-ref": "cirros_vnfd-VM_average_memory_utilization",
55                                 "vdu-ref": "cirros_vnfd-VM"
56                         }
57                 }
58         ],
59         "name": "cirros_vdu_alarm_vnf",
60         "short-name": "cirros_vdu_alarm_vnf",
61         "vdu": [
62                 {
63                         "alarm": [
64                                 {
65                                         "actions": {
66                                                 "alarm": [
67                                                         {
68                                                                 "url": "https://webhook.site/e65ad8a0-53b5-4d7f-bd50-c1a50b260871"
69                                                         }
70                                                 ],
71                                                 "insufficient-data": [
72                                                         {
73                                                                 "url": "https://webhook.site/e65ad8a0-53b5-4d7f-bd50-c1a50b260871"
74                                                         }
75                                                 ],
76                                                 "ok": [
77                                                         {
78                                                                 "url": "https://webhook.site/e65ad8a0-53b5-4d7f-bd50-c1a50b260871"
79                                                         }
80                                                 ]
81                                         },
82                                         "alarm-id": "alarm-1",
83                                         "operation": "LT",
84                                         "value": "20.0000",
85                                         "vnf-monitoring-param-ref": "cirros_vnf_cpu_util"
86                                 }
87                         ],
88                         "count": "1",
89                         "description": "cirros_vnfd-VM",
90                         "id": "cirros_vnfd-VM",
91                         "image": "ubuntu",
92                         "interface": [
93                                 {
94                                         "external-connection-point-ref": "eth0",
95                                         "name": "eth0",
96                                         "virtual-interface": {
97                                                 "bandwidth": "0",
98                                                 "type": "VIRTIO",
99                                                 "vpci": "0000:00:0a.0"
100                                         }
101                                 }
102                         ],
103                         "monitoring-param": [
104                                 {
105                                         "id": "cirros_vnfd-VM_cpu_util",
106                                         "nfvi-metric": "cpu_utilization"
107                                 },
108                                 {
109                                         "id": "cirros_vnfd-VM_average_memory_utilization",
110                                         "nfvi-metric": "average_memory_utilization"
111                                 }
112                         ],
113                         "name": "cirros_vnfd-VM",
114                         "vm-flavor": {
115                                 "memory-mb": "256",
116                                 "storage-gb": "2",
117                                 "vcpu-count": 1
118                         }
119                 }
120         ],
121         "vendor": "OSM",
122         "version": "1.0"
123 }