Fixes VIO collection
[osm/MON.git] / osm_mon / tests / unit / collector / vnf_collectors / vmware / vmware_mocks / vrops_resources.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         "links": [
4                 {
5                         "href": "/suite-api/api/resources?resourceKind=VirtualMachine&page=0&pageSize=1000",
6                         "name": "current",
7                         "rel": "SELF"
8                 },
9                 {
10                         "href": "/suite-api/api/resources?resourceKind=VirtualMachine&page=0&pageSize=1000",
11                         "name": "first",
12                         "rel": "RELATED"
13                 },
14                 {
15                         "href": "/suite-api/api/resources?resourceKind=VirtualMachine&page=0&pageSize=1000",
16                         "name": "last",
17                         "rel": "RELATED"
18                 }
19         ],
20         "pageInfo": {
21                 "page": 0,
22                 "pageSize": 1000,
23                 "totalCount": 130
24         },
25         "resourceList": [
26                 {
27                         "badges": [
28                                 {
29                                         "color": "GREEN",
30                                         "score": 0.0,
31                                         "type": "RISK"
32                                 },
33                                 {
34                                         "color": "GREEN",
35                                         "score": 100.0,
36                                         "type": "CAPACITY_REMAINING"
37                                 },
38                                 {
39                                         "color": "GREEN",
40                                         "score": 100.0,
41                                         "type": "EFFICIENCY"
42                                 },
43                                 {
44                                         "color": "GREEN",
45                                         "score": 0.0,
46                                         "type": "WORKLOAD"
47                                 },
48                                 {
49                                         "color": "GREEN",
50                                         "score": 366.0,
51                                         "type": "TIME_REMAINING"
52                                 },
53                                 {
54                                         "color": "GREY",
55                                         "score": -1.0,
56                                         "type": "COMPLIANCE"
57                                 },
58                                 {
59                                         "color": "GREEN",
60                                         "score": 100.0,
61                                         "type": "HEALTH"
62                                 }
63                         ],
64                         "creationTime": 1559557138756,
65                         "dtEnabled": true,
66                         "identifier": "VROPS-UUID-1",
67                         "links": [
68                                 {
69                                         "href": "/suite-api/api/resources/01ffd926-f8eb-4153-bb59-4d3da4ce7982",
70                                         "name": "linkToSelf",
71                                         "rel": "SELF"
72                                 },
73                                 {
74                                         "href": "/suite-api/api/resources/01ffd926-f8eb-4153-bb59-4d3da4ce7982/relationships",
75                                         "name": "relationsOfResource",
76                                         "rel": "RELATED"
77                                 },
78                                 {
79                                         "href": "/suite-api/api/resources/01ffd926-f8eb-4153-bb59-4d3da4ce7982/properties",
80                                         "name": "propertiesOfResource",
81                                         "rel": "RELATED"
82                                 },
83                                 {
84                                         "href": "/suite-api/api/alerts?resourceId=01ffd926-f8eb-4153-bb59-4d3da4ce7982",
85                                         "name": "alertsOfResource",
86                                         "rel": "RELATED"
87                                 },
88                                 {
89                                         "href": "/suite-api/api/symptoms?resourceId=01ffd926-f8eb-4153-bb59-4d3da4ce7982",
90                                         "name": "symptomsOfResource",
91                                         "rel": "RELATED"
92                                 },
93                                 {
94                                         "href": "/suite-api/api/resources/01ffd926-f8eb-4153-bb59-4d3da4ce7982/statkeys",
95                                         "name": "statKeysOfResource",
96                                         "rel": "RELATED"
97                                 },
98                                 {
99                                         "href": "/suite-api/api/resources/01ffd926-f8eb-4153-bb59-4d3da4ce7982/stats/latest",
100                                         "name": "latestStatsOfResource",
101                                         "rel": "RELATED"
102                                 },
103                                 {
104                                         "href": "/suite-api/api/resources/01ffd926-f8eb-4153-bb59-4d3da4ce7982/properties",
105                                         "name": "latestPropertiesOfResource",
106                                         "rel": "RELATED"
107                                 },
108                                 {
109                                         "href": "/suite-api/api/credentials/",
110                                         "name": "credentialsOfResource",
111                                         "rel": "RELATED"
112                                 }
113                         ],
114                         "relatedResources": [
115                         ],
116                         "resourceHealth": "GREEN",
117                         "resourceHealthValue": 100.0,
118                         "resourceKey": {
119                                 "adapterKindKey": "VMWARE",
120                                 "name": "52a28e3c-4e5b-4408-b8e3-7755a4222774-vc-HNILML",
121                                 "resourceIdentifiers": [
122                                         {
123                                                 "identifierType": {
124                                                         "dataType": "STRING",
125                                                         "isPartOfUniqueness": false,
126                                                         "name": "VMEntityInstanceUUID"
127                                                 },
128                                                 "value": "VMWARE-UUID-VM-1"
129                                         },
130                                         {
131                                                 "identifierType": {
132                                                         "dataType": "STRING",
133                                                         "isPartOfUniqueness": false,
134                                                         "name": "VMEntityName"
135                                                 },
136                                                 "value": "52a28e3c-4e5b-4408-b8e3-7755a4222774-vc-HNILML"
137                                         },
138                                         {
139                                                 "identifierType": {
140                                                         "dataType": "STRING",
141                                                         "isPartOfUniqueness": true,
142                                                         "name": "VMEntityObjectID"
143                                                 },
144                                                 "value": "VMWARE-OID-VM-1"
145                                         },
146                                         {
147                                                 "identifierType": {
148                                                         "dataType": "STRING",
149                                                         "isPartOfUniqueness": true,
150                                                         "name": "VMEntityVCID"
151                                                 },
152                                                 "value": "1ec8501f-dce7-4e0b-8f8b-19ba7060d33c"
153                                         }
154                                 ],
155                                 "resourceKindKey": "VirtualMachine"
156                         },
157                         "resourceStatusStates": [
158                                 {
159                                         "adapterInstanceId": "fcf7ba35-72f0-4d36-a12d-45a0c4065e17",
160                                         "resourceState": "STARTED",
161                                         "resourceStatus": "DATA_RECEIVING",
162                                         "statusMessage": ""
163                                 }
164                         ]
165                 },
166                 {
167                         "badges": [
168                                 {
169                                         "color": "GREEN",
170                                         "score": 0.0,
171                                         "type": "RISK"
172                                 },
173                                 {
174                                         "color": "GREEN",
175                                         "score": 100.0,
176                                         "type": "CAPACITY_REMAINING"
177                                 },
178                                 {
179                                         "color": "GREEN",
180                                         "score": 100.0,
181                                         "type": "EFFICIENCY"
182                                 },
183                                 {
184                                         "color": "GREEN",
185                                         "score": 0.0,
186                                         "type": "WORKLOAD"
187                                 },
188                                 {
189                                         "color": "GREEN",
190                                         "score": 366.0,
191                                         "type": "TIME_REMAINING"
192                                 },
193                                 {
194                                         "color": "GREY",
195                                         "score": -1.0,
196                                         "type": "COMPLIANCE"
197                                 },
198                                 {
199                                         "color": "GREEN",
200                                         "score": 100.0,
201                                         "type": "HEALTH"
202                                 }
203                         ],
204                         "creationTime": 1559557138756,
205                         "dtEnabled": true,
206                         "identifier": "VROPS-UUID-2",
207                         "links": [
208                                 {
209                                         "href": "/suite-api/api/resources/01ffd926-f8eb-4153-bb59-4d3da4ce7982",
210                                         "name": "linkToSelf",
211                                         "rel": "SELF"
212                                 },
213                                 {
214                                         "href": "/suite-api/api/resources/01ffd926-f8eb-4153-bb59-4d3da4ce7982/relationships",
215                                         "name": "relationsOfResource",
216                                         "rel": "RELATED"
217                                 },
218                                 {
219                                         "href": "/suite-api/api/resources/01ffd926-f8eb-4153-bb59-4d3da4ce7982/properties",
220                                         "name": "propertiesOfResource",
221                                         "rel": "RELATED"
222                                 },
223                                 {
224                                         "href": "/suite-api/api/alerts?resourceId=01ffd926-f8eb-4153-bb59-4d3da4ce7982",
225                                         "name": "alertsOfResource",
226                                         "rel": "RELATED"
227                                 },
228                                 {
229                                         "href": "/suite-api/api/symptoms?resourceId=01ffd926-f8eb-4153-bb59-4d3da4ce7982",
230                                         "name": "symptomsOfResource",
231                                         "rel": "RELATED"
232                                 },
233                                 {
234                                         "href": "/suite-api/api/resources/01ffd926-f8eb-4153-bb59-4d3da4ce7982/statkeys",
235                                         "name": "statKeysOfResource",
236                                         "rel": "RELATED"
237                                 },
238                                 {
239                                         "href": "/suite-api/api/resources/01ffd926-f8eb-4153-bb59-4d3da4ce7982/stats/latest",
240                                         "name": "latestStatsOfResource",
241                                         "rel": "RELATED"
242                                 },
243                                 {
244                                         "href": "/suite-api/api/resources/01ffd926-f8eb-4153-bb59-4d3da4ce7982/properties",
245                                         "name": "latestPropertiesOfResource",
246                                         "rel": "RELATED"
247                                 },
248                                 {
249                                         "href": "/suite-api/api/credentials/",
250                                         "name": "credentialsOfResource",
251                                         "rel": "RELATED"
252                                 }
253                         ],
254                         "relatedResources": [
255                         ],
256                         "resourceHealth": "GREEN",
257                         "resourceHealthValue": 100.0,
258                         "resourceKey": {
259                                 "adapterKindKey": "VMWARE",
260                                 "name": "52a28e3c-4e5b-4408-b8e3-7755a4222774-vc-HNILML",
261                                 "resourceIdentifiers": [
262                                         {
263                                                 "identifierType": {
264                                                         "dataType": "STRING",
265                                                         "isPartOfUniqueness": false,
266                                                         "name": "VMEntityInstanceUUID"
267                                                 },
268                                                 "value": "VMWARE-UUID-VM-2"
269                                         },
270                                         {
271                                                 "identifierType": {
272                                                         "dataType": "STRING",
273                                                         "isPartOfUniqueness": false,
274                                                         "name": "VMEntityName"
275                                                 },
276                                                 "value": "52a28e3c-4e5b-4408-b8e3-7755a4222774-vc-HNILML"
277                                         },
278                                         {
279                                                 "identifierType": {
280                                                         "dataType": "STRING",
281                                                         "isPartOfUniqueness": true,
282                                                         "name": "VMEntityObjectID"
283                                                 },
284                                                 "value": "VMWARE-OID-VM-2"
285                                         },
286                                         {
287                                                 "identifierType": {
288                                                         "dataType": "STRING",
289                                                         "isPartOfUniqueness": true,
290                                                         "name": "VMEntityVCID"
291                                                 },
292                                                 "value": "1ec8501f-dce7-4e0b-8f8b-19ba7060d33c"
293                                         }
294                                 ],
295                                 "resourceKindKey": "VirtualMachine"
296                         },
297                         "resourceStatusStates": [
298                                 {
299                                         "adapterInstanceId": "fcf7ba35-72f0-4d36-a12d-45a0c4065e17",
300                                         "resourceState": "STARTED",
301                                         "resourceStatus": "DATA_RECEIVING",
302                                         "statusMessage": ""
303                                 }
304                         ]
305                 },
306                 {
307                         "badges": [
308                                 {
309                                         "color": "GREEN",
310                                         "score": 0.0,
311                                         "type": "RISK"
312                                 },
313                                 {
314                                         "color": "GREEN",
315                                         "score": 100.0,
316                                         "type": "CAPACITY_REMAINING"
317                                 },
318                                 {
319                                         "color": "GREEN",
320                                         "score": 100.0,
321                                         "type": "EFFICIENCY"
322                                 },
323                                 {
324                                         "color": "GREEN",
325                                         "score": 0.0,
326                                         "type": "WORKLOAD"
327                                 },
328                                 {
329                                         "color": "GREEN",
330                                         "score": 366.0,
331                                         "type": "TIME_REMAINING"
332                                 },
333                                 {
334                                         "color": "GREY",
335                                         "score": -1.0,
336                                         "type": "COMPLIANCE"
337                                 },
338                                 {
339                                         "color": "GREEN",
340                                         "score": 100.0,
341                                         "type": "HEALTH"
342                                 }
343                         ],
344                         "creationTime": 1559557138756,
345                         "dtEnabled": true,
346                         "identifier": "VROPS-UUID-3",
347                         "links": [
348                                 {
349                                         "href": "/suite-api/api/resources/01ffd926-f8eb-4153-bb59-4d3da4ce7982",
350                                         "name": "linkToSelf",
351                                         "rel": "SELF"
352                                 },
353                                 {
354                                         "href": "/suite-api/api/resources/01ffd926-f8eb-4153-bb59-4d3da4ce7982/relationships",
355                                         "name": "relationsOfResource",
356                                         "rel": "RELATED"
357                                 },
358                                 {
359                                         "href": "/suite-api/api/resources/01ffd926-f8eb-4153-bb59-4d3da4ce7982/properties",
360                                         "name": "propertiesOfResource",
361                                         "rel": "RELATED"
362                                 },
363                                 {
364                                         "href": "/suite-api/api/alerts?resourceId=01ffd926-f8eb-4153-bb59-4d3da4ce7982",
365                                         "name": "alertsOfResource",
366                                         "rel": "RELATED"
367                                 },
368                                 {
369                                         "href": "/suite-api/api/symptoms?resourceId=01ffd926-f8eb-4153-bb59-4d3da4ce7982",
370                                         "name": "symptomsOfResource",
371                                         "rel": "RELATED"
372                                 },
373                                 {
374                                         "href": "/suite-api/api/resources/01ffd926-f8eb-4153-bb59-4d3da4ce7982/statkeys",
375                                         "name": "statKeysOfResource",
376                                         "rel": "RELATED"
377                                 },
378                                 {
379                                         "href": "/suite-api/api/resources/01ffd926-f8eb-4153-bb59-4d3da4ce7982/stats/latest",
380                                         "name": "latestStatsOfResource",
381                                         "rel": "RELATED"
382                                 },
383                                 {
384                                         "href": "/suite-api/api/resources/01ffd926-f8eb-4153-bb59-4d3da4ce7982/properties",
385                                         "name": "latestPropertiesOfResource",
386                                         "rel": "RELATED"
387                                 },
388                                 {
389                                         "href": "/suite-api/api/credentials/",
390                                         "name": "credentialsOfResource",
391                                         "rel": "RELATED"
392                                 }
393                         ],
394                         "relatedResources": [
395                         ],
396                         "resourceHealth": "GREEN",
397                         "resourceHealthValue": 100.0,
398                         "resourceKey": {
399                                 "adapterKindKey": "VMWARE",
400                                 "name": "52a28e3c-4e5b-4408-b8e3-7755a4222774-vc-HNILML",
401                                 "resourceIdentifiers": [
402                                         {
403                                                 "identifierType": {
404                                                         "dataType": "STRING",
405                                                         "isPartOfUniqueness": false,
406                                                         "name": "VMEntityInstanceUUID"
407                                                 },
408                                                 "value": "VMWARE-UUID-VM-3"
409                                         },
410                                         {
411                                                 "identifierType": {
412                                                         "dataType": "STRING",
413                                                         "isPartOfUniqueness": false,
414                                                         "name": "VMEntityName"
415                                                 },
416                                                 "value": "52a28e3c-4e5b-4408-b8e3-7755a4222774-vc-HNILML"
417                                         },
418                                         {
419                                                 "identifierType": {
420                                                         "dataType": "STRING",
421                                                         "isPartOfUniqueness": true,
422                                                         "name": "VMEntityObjectID"
423                                                 },
424                                                 "value": "VMWARE-OID-VM-3"
425                                         },
426                                         {
427                                                 "identifierType": {
428                                                         "dataType": "STRING",
429                                                         "isPartOfUniqueness": true,
430                                                         "name": "VMEntityVCID"
431                                                 },
432                                                 "value": "1ec8501f-dce7-4e0b-8f8b-19ba7060d33c"
433                                         }
434                                 ],
435                                 "resourceKindKey": "VirtualMachine"
436                         },
437                         "resourceStatusStates": [
438                                 {
439                                         "adapterInstanceId": "fcf7ba35-72f0-4d36-a12d-45a0c4065e17",
440                                         "resourceState": "STARTED",
441                                         "resourceStatus": "DATA_RECEIVING",
442                                         "statusMessage": ""
443                                 }
444                         ]
445                 }
446         ]
447 }