eh552t | 5f539dc | 2019-04-09 17:12:03 +0200 | [diff] [blame] | 1 | { |
| 2 | "name": "TCA_iYTIP_v1_0_ResourceInstanceName1_tca", |
| 3 | "modelType": "onap.policy.monitoring.cdap.tca.hi.lo.app", |
| 4 | "properties": { |
| 5 | "domain": "measurementsForVfScaling", |
| 6 | "metricsPerEventName": [{ |
| 7 | "policyVersion": "version1.11", |
| 8 | "thresholds": [], |
| 9 | "policyName": "Scope1", |
| 10 | "controlLoopSchemaType": "VNF", |
| 11 | "policyScope": "Policyscope1", |
| 12 | "eventName": "Event1" |
| 13 | }] |
| 14 | }, |
| 15 | "shared": false, |
| 16 | "jsonRepresentation": { |
| 17 | "schema": { |
| 18 | "uniqueItems": "true", |
| 19 | "format": "tabs-top", |
| 20 | "type": "array", |
| 21 | "title": "TCA Policy JSON", |
| 22 | "items": { |
| 23 | "type": "object", |
| 24 | "title": "TCA Policy JSON", |
| 25 | "required": [ |
| 26 | "domain", |
| 27 | "metricsPerEventName" |
| 28 | ], |
| 29 | "properties": { |
| 30 | "domain": { |
| 31 | "propertyOrder": 1001, |
| 32 | "default": "measurementsForVfScaling", |
| 33 | "title": "Domain name to which TCA needs to be applied", |
| 34 | "type": "string" |
| 35 | }, |
| 36 | "metricsPerEventName": { |
| 37 | "propertyOrder": 1002, |
| 38 | "uniqueItems": "true", |
| 39 | "format": "tabs-top", |
| 40 | "title": "Contains eventName and threshold details that need to be applied to given eventName", |
| 41 | "type": "array", |
| 42 | "items": { |
| 43 | "type": "object", |
| 44 | "required": [ |
| 45 | "controlLoopSchemaType", |
| 46 | "eventName", |
| 47 | "policyName", |
| 48 | "policyScope", |
| 49 | "policyVersion", |
| 50 | "thresholds" |
| 51 | ], |
| 52 | "properties": { |
| 53 | "policyVersion": { |
| 54 | "propertyOrder": 1007, |
| 55 | "title": "TCA Policy Scope Version", |
| 56 | "type": "string" |
| 57 | }, |
| 58 | "thresholds": { |
| 59 | "propertyOrder": 1008, |
| 60 | "uniqueItems": "true", |
| 61 | "format": "tabs-top", |
| 62 | "title": "Thresholds associated with eventName", |
| 63 | "type": "array", |
| 64 | "items": { |
| 65 | "type": "object", |
| 66 | "required": [ |
| 67 | "closedLoopControlName", |
| 68 | "closedLoopEventStatus", |
| 69 | "direction", |
| 70 | "fieldPath", |
| 71 | "severity", |
| 72 | "thresholdValue", |
| 73 | "version" |
| 74 | ], |
| 75 | "properties": { |
| 76 | "severity": { |
| 77 | "propertyOrder": 1013, |
| 78 | "title": "Threshold Event Severity", |
| 79 | "type": "string", |
| 80 | "enum": [ |
| 81 | "CRITICAL", |
| 82 | "MAJOR", |
| 83 | "MINOR", |
| 84 | "WARNING", |
| 85 | "NORMAL" |
| 86 | ] |
| 87 | }, |
| 88 | "fieldPath": { |
| 89 | "propertyOrder": 1012, |
| 90 | "title": "Json field Path as per CEF message which needs to be analyzed for TCA", |
| 91 | "type": "string", |
| 92 | "enum": [ |
| 93 | "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta", |
| 94 | "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta", |
| 95 | "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta", |
| 96 | "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta", |
| 97 | "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta", |
| 98 | "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta", |
| 99 | "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta", |
| 100 | "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated", |
| 101 | "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated", |
| 102 | "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated", |
| 103 | "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated", |
| 104 | "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated", |
| 105 | "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated", |
| 106 | "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated", |
| 107 | "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta", |
| 108 | "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta", |
| 109 | "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta", |
| 110 | "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta", |
| 111 | "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta", |
| 112 | "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta", |
| 113 | "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta", |
| 114 | "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated", |
| 115 | "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated", |
| 116 | "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated", |
| 117 | "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated", |
| 118 | "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated", |
| 119 | "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated", |
| 120 | "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated", |
| 121 | "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle", |
| 122 | "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt", |
| 123 | "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice", |
| 124 | "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq", |
| 125 | "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal", |
| 126 | "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem", |
| 127 | "$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait", |
| 128 | "$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage", |
| 129 | "$.event.measurementsForVfScalingFields.meanRequestLatency", |
| 130 | "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered", |
| 131 | "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached", |
| 132 | "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured", |
| 133 | "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree", |
| 134 | "$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed", |
| 135 | "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value" |
| 136 | ] |
| 137 | }, |
| 138 | "thresholdValue": { |
| 139 | "propertyOrder": 1014, |
| 140 | "title": "Threshold value for the field Path inside CEF message", |
| 141 | "type": "integer" |
| 142 | }, |
| 143 | "closedLoopEventStatus": { |
| 144 | "propertyOrder": 1010, |
| 145 | "title": "Closed Loop Event Status of the threshold", |
| 146 | "type": "string", |
| 147 | "enum": [ |
| 148 | "ONSET", |
| 149 | "ABATED" |
| 150 | ] |
| 151 | }, |
| 152 | "closedLoopControlName": { |
| 153 | "propertyOrder": 1009, |
| 154 | "title": "Closed Loop Control Name associated with the threshold", |
| 155 | "type": "string" |
| 156 | }, |
| 157 | "version": { |
| 158 | "propertyOrder": 1015, |
| 159 | "title": "Version number associated with the threshold", |
| 160 | "type": "string" |
| 161 | }, |
| 162 | "direction": { |
| 163 | "propertyOrder": 1011, |
| 164 | "title": "Direction of the threshold", |
| 165 | "type": "string", |
| 166 | "enum": [ |
| 167 | "LESS", |
| 168 | "LESS_OR_EQUAL", |
| 169 | "GREATER", |
| 170 | "GREATER_OR_EQUAL", |
| 171 | "EQUAL" |
| 172 | ] |
| 173 | } |
| 174 | } |
| 175 | } |
| 176 | }, |
| 177 | "policyName": { |
| 178 | "propertyOrder": 1005, |
| 179 | "title": "TCA Policy Scope Name", |
| 180 | "type": "string" |
| 181 | }, |
| 182 | "controlLoopSchemaType": { |
| 183 | "propertyOrder": 1003, |
| 184 | "title": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM", |
| 185 | "type": "string", |
| 186 | "enum": [ |
| 187 | "VM", |
| 188 | "VNF" |
| 189 | ] |
| 190 | }, |
| 191 | "policyScope": { |
| 192 | "propertyOrder": 1006, |
| 193 | "title": "TCA Policy Scope", |
| 194 | "type": "string" |
| 195 | }, |
| 196 | "eventName": { |
| 197 | "propertyOrder": 1004, |
| 198 | "title": "Event name to which thresholds need to be applied", |
| 199 | "type": "string" |
| 200 | } |
| 201 | } |
| 202 | } |
| 203 | } |
| 204 | } |
| 205 | } |
| 206 | } |
| 207 | } |
| 208 | } |