blob: 7b9a95a23e438171ce77bca997d086079f0cfcc2 [file] [log] [blame]
sebdet4946e5b2019-07-10 12:32:36 +02001{
sebdet493c3832019-07-15 17:26:18 +02002 "name": "LOOP_Jbv1z_v1_0_ResourceInstanceName1_tca",
sebdet4946e5b2019-07-10 12:32:36 +02003 "dcaeBlueprintId": "typeId-3a942643-a8f7-4e54-b2c1-eea8daba2b17",
4 "globalPropertiesJson": {
5 "dcaeDeployParameters": {
6 "location_id": "",
7 "service_id": "",
8 "policy_id": "TCA_h2NMX_v1_0_ResourceInstanceName1_tca"
9 }
10 },
xuegao289e8e12019-11-08 13:10:36 +010011 "modelService": {
sebdet4946e5b2019-07-10 12:32:36 +020012 "serviceDetails": {
13 "serviceType": "",
14 "namingPolicy": "",
15 "environmentContext": "General_Revenue-Bearing",
16 "serviceEcompNaming": "true",
17 "serviceRole": "",
18 "name": "vLoadBalancerMS",
19 "description": "vLBMS",
20 "invariantUUID": "30ec5b59-4799-48d8-ac5f-1058a6b0e48f",
21 "ecompGeneratedNaming": "true",
22 "category": "Network L4+",
23 "type": "Service",
24 "UUID": "63cac700-ab9a-4115-a74f-7eac85e3fce0",
25 "instantiationType": "A-la-carte"
26 },
27 "resourceDetails": {
28 "CP": {},
29 "VL": {},
30 "VF": {
31 "vLoadBalancerMS 0": {
32 "resourceVendor": "Test",
33 "resourceVendorModelNumber": "",
34 "name": "vLoadBalancerMS",
35 "description": "vLBMS",
36 "invariantUUID": "1a31b9f2-e50d-43b7-89b3-a040250cf506",
37 "subcategory": "Load Balancer",
38 "category": "Application L4+",
39 "type": "VF",
40 "UUID": "b4c4f3d7-929e-4b6d-a1cd-57e952ddc3e6",
41 "version": "1.0",
42 "resourceVendorRelease": "1.0",
43 "customizationUUID": "465246dc-7748-45f4-a013-308d92922552"
44 }
45 },
46 "CR": {},
47 "VFC": {},
48 "PNF": {},
49 "Service": {},
50 "CVFC": {},
51 "Service Proxy": {},
52 "Configuration": {},
53 "AllottedResource": {},
54 "VFModule": {
55 "Vloadbalancerms..vpkg..module-1": {
56 "vfModuleModelInvariantUUID": "ca052563-eb92-4b5b-ad41-9111768ce043",
57 "vfModuleModelVersion": "1",
58 "vfModuleModelName": "Vloadbalancerms..vpkg..module-1",
59 "vfModuleModelUUID": "1e725ccc-b823-4f67-82b9-4f4367070dbc",
60 "vfModuleModelCustomizationUUID": "1bffdc31-a37d-4dee-b65c-dde623a76e52",
61 "min_vf_module_instances": 0,
62 "vf_module_label": "vpkg",
63 "max_vf_module_instances": 1,
64 "vf_module_type": "Expansion",
65 "isBase": false,
66 "initial_count": 0,
67 "volume_group": false
68 },
69 "Vloadbalancerms..vdns..module-3": {
70 "vfModuleModelInvariantUUID": "4c10ba9b-f88f-415e-9de3-5d33336047fa",
71 "vfModuleModelVersion": "1",
72 "vfModuleModelName": "Vloadbalancerms..vdns..module-3",
73 "vfModuleModelUUID": "4fa73b49-8a6c-493e-816b-eb401567b720",
74 "vfModuleModelCustomizationUUID": "bafcdab0-801d-4d81-9ead-f464640a38b1",
75 "min_vf_module_instances": 0,
76 "vf_module_label": "vdns",
77 "max_vf_module_instances": 50,
78 "vf_module_type": "Expansion",
79 "isBase": false,
80 "initial_count": 0,
81 "volume_group": false
82 },
83 "Vloadbalancerms..base_template..module-0": {
84 "vfModuleModelInvariantUUID": "921f7c96-ebdd-42e6-81b9-1cfc0c9796f3",
85 "vfModuleModelVersion": "1",
86 "vfModuleModelName": "Vloadbalancerms..base_template..module-0",
87 "vfModuleModelUUID": "63734409-f745-4e4d-a38b-131638a0edce",
88 "vfModuleModelCustomizationUUID": "86baddea-c730-4fb8-9410-cd2e17fd7f27",
89 "min_vf_module_instances": 1,
90 "vf_module_label": "base_template",
91 "max_vf_module_instances": 1,
92 "vf_module_type": "Base",
93 "isBase": true,
94 "initial_count": 1,
95 "volume_group": false
96 },
97 "Vloadbalancerms..vlb..module-2": {
98 "vfModuleModelInvariantUUID": "a772a1f4-0064-412c-833d-4749b15828dd",
99 "vfModuleModelVersion": "1",
100 "vfModuleModelName": "Vloadbalancerms..vlb..module-2",
101 "vfModuleModelUUID": "0f5c3f6a-650a-4303-abb6-fff3e573a07a",
102 "vfModuleModelCustomizationUUID": "96a78aad-4ffb-4ef0-9c4f-deb03bf1d806",
103 "min_vf_module_instances": 0,
104 "vf_module_label": "vlb",
105 "max_vf_module_instances": 1,
106 "vf_module_type": "Expansion",
107 "isBase": false,
108 "initial_count": 0,
109 "volume_group": false
110 }
111 }
112 }
113 },
114 "lastComputedState": "DESIGN",
115 "components": {
116 "POLICY": {
117 "componentState": {
118 "stateName": "NOT_SENT",
119 "description": "The policies defined have NOT yet been created on the policy engine"
120 }
121 },
122 "DCAE": {
123 "componentState": {
124 "stateName": "BLUEPRINT_DEPLOYED",
125 "description": "The DCAE blueprint has been found in the DCAE inventory but not yet instancianted for this loop"
126 }
127 }
128 },
129 "operationalPolicies": [
130 {
131 "name": "OPERATIONAL_h2NMX_v1_0_ResourceInstanceName1_tca",
132 "configurationsJson": {
133 "guard_policies": {
134 "guard.minmax.new": {
135 "recipe": "",
136 "clname": "LOOP_h2NMX_v1_0_ResourceInstanceName1_tca",
137 "actor": "",
138 "targets": "",
139 "min": "gg",
140 "max": "gg",
141 "limit": "",
142 "timeUnits": "",
143 "timeWindow": "",
144 "guardActiveStart": "00:00:00Z",
145 "guardActiveEnd": "00:00:01Z"
146 }
147 },
148 "operational_policy": {
149 "controlLoop": {
150 "trigger_policy": "new",
151 "timeout": "0",
152 "abatement": "false",
153 "controlLoopName": "LOOP_h2NMX_v1_0_ResourceInstanceName1_tca"
154 },
155 "policies": [
156 {
157 "id": "new",
158 "recipe": "",
159 "retry": "0",
160 "timeout": "0",
161 "actor": "",
162 "payload": "",
163 "success": "",
164 "failure": "",
165 "failure_timeout": "",
166 "failure_retries": "",
167 "failure_exception": "",
168 "failure_guard": "",
169 "target": {
170 "type": "VM",
171 "resourceID": ""
172 }
173 }
174 ]
175 }
176 }
177 }
178 ],
179 "microServicePolicies": [
180 {
181 "name": "TCA_h2NMX_v1_0_ResourceInstanceName1_tca",
182 "modelType": "onap.policies.monitoring.cdap.tca.hi.lo.app",
183 "properties": {
184 "domain": "measurementsForVfScaling",
185 "metricsPerEventName": [
186 {
187 "policyVersion": "ff",
188 "thresholds": [
189 {
190 "severity": "CRITICAL",
191 "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
192 "thresholdValue": 0,
193 "closedLoopEventStatus": "ONSET",
194 "closedLoopControlName": "ff",
195 "version": "ff",
196 "direction": "LESS"
197 }
198 ],
199 "policyName": "ff",
200 "controlLoopSchemaType": "VM",
201 "policyScope": "ff",
202 "eventName": "ff"
203 }
204 ]
205 },
206 "shared": false,
207 "jsonRepresentation": {
208 "schema": {
209 "uniqueItems": "true",
210 "format": "tabs-top",
211 "type": "array",
212 "title": "TCA Policy JSON",
213 "items": {
214 "type": "object",
215 "title": "TCA Policy JSON",
216 "required": [
217 "domain",
218 "metricsPerEventName"
219 ],
220 "properties": {
221 "domain": {
222 "propertyOrder": 1001,
223 "default": "measurementsForVfScaling",
224 "title": "Domain name to which TCA needs to be applied",
225 "type": "string"
226 },
227 "metricsPerEventName": {
228 "propertyOrder": 1002,
229 "uniqueItems": "true",
230 "format": "tabs-top",
231 "title": "Contains eventName and threshold details that need to be applied to given eventName",
232 "type": "array",
233 "items": {
234 "type": "object",
235 "required": [
236 "controlLoopSchemaType",
237 "eventName",
238 "policyName",
239 "policyScope",
240 "policyVersion",
241 "thresholds"
242 ],
243 "properties": {
244 "policyVersion": {
245 "propertyOrder": 1007,
246 "title": "TCA Policy Scope Version",
247 "type": "string"
248 },
249 "thresholds": {
250 "propertyOrder": 1008,
251 "uniqueItems": "true",
252 "format": "tabs-top",
253 "title": "Thresholds associated with eventName",
254 "type": "array",
255 "items": {
256 "type": "object",
257 "required": [
258 "closedLoopControlName",
259 "closedLoopEventStatus",
260 "direction",
261 "fieldPath",
262 "severity",
263 "thresholdValue",
264 "version"
265 ],
266 "properties": {
267 "severity": {
268 "propertyOrder": 1013,
269 "title": "Threshold Event Severity",
270 "type": "string",
271 "enum": [
272 "CRITICAL",
273 "MAJOR",
274 "MINOR",
275 "WARNING",
276 "NORMAL"
277 ]
278 },
279 "fieldPath": {
280 "propertyOrder": 1012,
281 "title": "Json field Path as per CEF message which needs to be analyzed for TCA",
282 "type": "string",
283 "enum": [
284 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
285 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
286 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
287 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
288 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
289 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
290 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
291 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
292 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
293 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
294 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
295 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
296 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
297 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
298 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
299 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
300 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
301 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
302 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
303 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
304 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
305 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
306 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
307 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
308 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
309 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
310 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
311 "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
312 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
313 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
314 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
315 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
316 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
317 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
318 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
319 "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
320 "$.event.measurementsForVfScalingFields.meanRequestLatency",
321 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
322 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
323 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
324 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
325 "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
326 "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
327 ]
328 },
329 "thresholdValue": {
330 "propertyOrder": 1014,
331 "title": "Threshold value for the field Path inside CEF message",
332 "type": "integer"
333 },
334 "closedLoopEventStatus": {
335 "propertyOrder": 1010,
336 "title": "Closed Loop Event Status of the threshold",
337 "type": "string",
338 "enum": [
339 "ONSET",
340 "ABATED"
341 ]
342 },
343 "closedLoopControlName": {
344 "propertyOrder": 1009,
345 "title": "Closed Loop Control Name associated with the threshold",
346 "type": "string"
347 },
348 "version": {
349 "propertyOrder": 1015,
350 "title": "Version number associated with the threshold",
351 "type": "string"
352 },
353 "direction": {
354 "propertyOrder": 1011,
355 "title": "Direction of the threshold",
356 "type": "string",
357 "enum": [
358 "LESS",
359 "LESS_OR_EQUAL",
360 "GREATER",
361 "GREATER_OR_EQUAL",
362 "EQUAL"
363 ]
364 }
365 }
366 }
367 },
368 "policyName": {
369 "propertyOrder": 1005,
370 "title": "TCA Policy Scope Name",
371 "type": "string"
372 },
373 "controlLoopSchemaType": {
374 "propertyOrder": 1003,
375 "title": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
376 "type": "string",
377 "enum": [
378 "VM",
379 "VNF"
380 ]
381 },
382 "policyScope": {
383 "propertyOrder": 1006,
384 "title": "TCA Policy Scope",
385 "type": "string"
386 },
387 "eventName": {
388 "propertyOrder": 1004,
389 "title": "Event name to which thresholds need to be applied",
390 "type": "string"
391 }
392 }
393 }
394 }
395 }
396 }
397 }
398 }
399 }
400 ],
401 "loopLogs": [
402 {
403 "id": 2,
404 "logType": "INFO",
405 "logComponent": "CLAMP",
406 "message": "Micro Service policies UPDATED",
407 "logInstant": "2019-07-08T09:44:53Z"
408 },
409 {
410 "id": 1,
411 "logType": "INFO",
412 "logComponent": "CLAMP",
413 "message": "Operational and Guard policies UPDATED",
414 "logInstant": "2019-07-08T09:44:37Z"
415 }
416 ]
417}