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