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