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