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