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