[DCAEGEN2] Vulnerability addressal for TCAgen2
[dcaegen2/analytics/tca-gen2.git] / dcae-analytics / dpo / tcagen2-componentspec-v3-policy.json
1 {
2   "self": {
3     "name": "dcae-tcagen2",
4     "version": "1.3.2",
5     "description": "TCAGen2 Docker Application",
6     "component_type": "docker"
7   },
8   "streams": {
9     "subscribes": [
10       {
11         "config_key": "tca_handle_in",
12         "format": "VES_specification",
13         "version": "5.28.4",
14         "type": "message_router"
15       }
16     ],
17     "publishes": [
18       {
19         "config_key": "tca_handle_out",
20         "format": "DCAE_CL_Output",
21         "version": "1.0.1",
22         "type": "message_router"
23       }
24     ]
25   },
26   "services": {
27     "calls": [
28       {
29         "config_key": "aai_broker_handle",
30         "verb": "GET",
31         "request": {
32           "format": "tca.aai",
33           "version": "1.0.0"
34         },
35         "response": {
36           "format": "tca.aai",
37           "version": "1.0.0"
38         }
39       }
40     ],
41     "provides": []
42   },
43   "auxilary": {
44     "helm": {
45       "service": {
46         "type": "ClusterIP",
47         "name": "dcae-tcagen2",
48         "ports": [
49          {
50             "name": "http",
51             "port": 9091
52          }
53         ]
54       }
55     },
56     "healthcheck": {
57       "type": "HTTP",
58       "interval": "30s",
59       "timeout": "10s",
60       "port": 9091,
61       "endpoint": "/actuator/health"
62     },
63     "ports": [
64       "9091:0"
65     ],
66     "log_info": {
67         "log_directory": "/opt/logs/dcae-analytics-tca"
68      },
69     "tls_info":{
70         "cert_directory":"/opt/app/dcae-certificate/",
71         "use_tls":true
72      }
73   },
74   "artifacts": [
75     {
76       "uri": "onap/org.onap.dcaegen2.analytics.tca-gen2.dcae-analytics-tca-web:1.3.2",
77       "type": "docker image"
78     }
79   ],
80   "policy_info":{
81     "policy": [
82     {
83       "node_label": "tca_policy_00",
84       "policy_model_id": "onap.policies.monitoring.cdap.tca.hi.lo.app",
85       "policy_id": "onap.vfirewall.tca"
86     },
87     {
88       "node_label":"tca_policy_01",
89       "policy_model_id":"onap.policies.monitoring.cdap.tca.hi.lo.app",
90       "policy_id":"onap.vdns.tca"
91     }
92     ]
93   },
94   "parameters": [
95     {
96       "name": "spring.data.mongodb.uri",
97       "value": "mongodb://dcae-mongohost/dcae-tcagen2",
98       "description": "Mongodb database uri",
99       "designer_editable": true,
100       "sourced_at_deployment": true,
101       "policy_editable": false,
102       "type": "string",
103       "required": true
104     },
105     {
106       "name": "streams_publishes",
107       "value": "{\"tca_handle_out\":{\"dmaap_info\":{\"topic_url\":\"http:\/\/message-router:3904\/events\/unauthenticated.DCAE_CL_OUTPUT\"},\"type\":\"message_router\"}}",
108       "description": "standard http port collector will open for listening;",
109       "sourced_at_deployment": false,
110       "policy_editable": false,
111       "designer_editable": false
112     },
113     {
114       "name": "streams_subscribes",
115       "value": "{\"tca_handle_in\":{\"dmaap_info\":{\"topic_url\":\"http:\/\/message-router:3904\/events\/unauthenticated.VES_MEASUREMENT_OUTPUT\"},\"type\":\"message_router\"}}",
116       "description": "standard http port collector will open for listening;",
117       "sourced_at_deployment": false,
118       "policy_editable": false,
119       "designer_editable": false
120     },
121     {
122       "name": "tca.policy",
123       "value" : "{\"domain\":\"measurementsForVfScaling\",\"metricsPerEventName\":[{\"eventName\":\"vFirewallBroadcastPackets\",\"controlLoopSchemaType\":\"VM\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":300,\"direction\":\"LESS_OR_EQUAL\",\"severity\":\"MAJOR\",\"closedLoopEventStatus\":\"ONSET\"},{\"closedLoopControlName\":\"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":700,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]},{\"eventName\":\"vLoadBalancer\",\"controlLoopSchemaType\":\"VM\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta\",\"thresholdValue\":300,\"direction\":\"GREATER_OR_EQUAL\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]},{\"eventName\":\"Measurement_vGMUX\",\"controlLoopSchemaType\":\"VNF\",\"policyScope\":\"DCAE\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyVersion\":\"v0.0.1\",\"thresholds\":[{\"closedLoopControlName\":\"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\",\"thresholdValue\":0,\"direction\":\"EQUAL\",\"severity\":\"MAJOR\",\"closedLoopEventStatus\":\"ABATED\"},{\"closedLoopControlName\":\"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\",\"version\":\"1.0.2\",\"fieldPath\":\"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\",\"thresholdValue\":0,\"direction\":\"GREATER\",\"severity\":\"CRITICAL\",\"closedLoopEventStatus\":\"ONSET\"}]}]}",
124       "description": "Threshold Crossing Alert Policy JSON as string",
125       "designer_editable": false,
126       "sourced_at_deployment": false,
127       "policy_editable": true,
128       "type": "string",
129       "required": true
130     },
131     {
132       "name": "tca.processing_batch_size",
133       "value": 10000,
134       "description": "Batch size for TCA Application Transaction",
135       "designer_editable": true,
136       "sourced_at_deployment": false,
137       "policy_editable": false,
138       "type": "number",
139       "required": false
140     },
141     {
142       "name": "tca.enable_abatement",
143       "value": true,
144       "description": "Enables / Disables TCA Alerts Abatement",
145       "designer_editable": true,
146       "sourced_at_deployment": false,
147       "policy_editable": false,
148       "type": "boolean",
149       "required": false
150     },
151     {
152       "name": "tca.enable_ecomp_logging",
153       "value": true,
154       "description": "Enables / Disables ECOMP Logging",
155       "designer_editable": true,
156       "sourced_at_deployment": false,
157       "policy_editable": false,
158       "type": "boolean",
159       "required": false
160     },
161     {
162       "name": "tca.aai.enable_enrichment",
163       "value": true,
164       "description": "Enables / Disables TCA A&AI Enrichment",
165       "designer_editable": true,
166       "sourced_at_deployment": true,
167       "policy_editable": false,
168       "type": "boolean",
169       "required": false
170     },
171     {
172       "name": "tca.aai.url",
173       "value": "http://aai.onap.svc.cluster.local",
174       "description": "A&AI Enrichment Service URL. Required only if A&AI Enrichment is enabled",
175       "designer_editable": true,
176       "sourced_at_deployment": true,
177       "policy_editable": false,
178       "type": "string",
179       "required": false
180     },
181     {
182       "name": "tca.aai.username",
183       "value": "DCAE",
184       "description": "A&AI Enrichment Service basic authentication user name",
185       "designer_editable": true,
186       "sourced_at_deployment": true,
187       "policy_editable": false,
188       "type": "string",
189       "required": false
190     },
191     {
192       "name": "tca.aai.password",
193       "value": "DCAE",
194       "description": "A&AI Enrichment Service basic authentication user password",
195       "designer_editable": true,
196       "sourced_at_deployment": true,
197       "policy_editable": false,
198       "type": "string",
199       "required": false
200     },
201     {
202       "name": "tca.aai.generic_vnf_path",
203       "value": "aai/v11/network/generic-vnfs/generic-vnf",
204       "description": "A&AI Enrichment Service VNF query endpoint path",
205       "designer_editable": true,
206       "sourced_at_deployment": false,
207       "policy_editable": false,
208       "type": "string",
209       "required": false
210     },
211     {
212       "name": "tca.aai.node_query_path",
213       "value": "aai/v11/search/nodes-query",
214       "description": "A&AI Enrichment Service Node query endpoint path",
215       "designer_editable": true,
216       "sourced_at_deployment": false,
217       "policy_editable": false,
218       "type": "string",
219       "required": false
220     },
221     {
222       "name": "streams_subscribes.tca_handle_in.consumer_group",
223       "value": "cg1",
224       "description": "Subscriber consumer group",
225       "designer_editable": true,
226       "sourced_at_deployment": false,
227       "policy_editable": false,
228       "type": "string",
229       "required": false
230     },
231     {
232       "name": "streams_subscribes.tca_handle_in.consumer_ids[0]",
233       "value": "c0",
234       "description": "Subscriber first consumer id",
235       "designer_editable": true,
236       "sourced_at_deployment": false,
237       "policy_editable": false,
238       "type": "string",
239       "required": false
240     },
241     {
242       "name": "streams_subscribes.tca_handle_in.consumer_ids[1]",
243       "value": "c1",
244       "description": "Subscriber second consumer id",
245       "designer_editable": true,
246       "sourced_at_deployment": false,
247       "policy_editable": false,
248       "type": "string",
249       "required": false
250     },
251     {
252       "name": "streams_subscribes.tca_handle_in.message_limit",
253       "value": 50000,
254       "description": "Maximum message fetched by TCA Subscriber",
255       "designer_editable": true,
256       "sourced_at_deployment": false,
257       "policy_editable": false,
258       "type": "number",
259       "required": true
260     },
261     {
262       "name": "streams_subscribes.tca_handle_in.timeout",
263       "value": -1,
264       "description": "Timeout for TCA Subscriber",
265       "designer_editable": true,
266       "sourced_at_deployment": false,
267       "policy_editable": false,
268       "type": "number",
269       "required": false
270     },
271     {
272       "name": "streams_subscribes.tca_handle_in.polling.fixed_rate",
273       "value": 0,
274       "description": "Subscriber fixed polling interval in milliseconds. Value of 0 indicated auto adjusting polling will be used",
275       "designer_editable": true,
276       "sourced_at_deployment": false,
277       "policy_editable": false,
278       "type": "number",
279       "required": false
280     },
281     {
282       "name": "streams_subscribes.tca_handle_in.polling.auto_adjusting.min",
283       "value": 30000,
284       "description": "Subscriber Auto Adjusting polling minimum interval in milliseconds",
285       "designer_editable": true,
286       "sourced_at_deployment": false,
287       "policy_editable": false,
288       "type": "number",
289       "required": false
290     },
291     {
292       "name": "streams_subscribes.tca_handle_in.polling.auto_adjusting.step_up",
293       "value": 10000,
294       "description": "Subscriber Auto Adjusting polling step up delta in milliseconds when message is not found",
295       "designer_editable": true,
296       "sourced_at_deployment": false,
297       "policy_editable": false,
298       "type": "number",
299       "required": false
300     },
301     {
302       "name": "streams_subscribes.tca_handle_in.polling.auto_adjusting.max",
303       "value": 60000,
304       "description": "Subscriber Auto Adjusting polling maximum interval in milliseconds",
305       "designer_editable": true,
306       "sourced_at_deployment": false,
307       "policy_editable": false,
308       "type": "number",
309       "required": false
310     },
311     {
312       "name": "streams_subscribes.tca_handle_in.polling.auto_adjusting.step_down",
313       "value": 30000,
314       "description": "Subscriber Auto Adjusting polling step down delta in milliseconds when message is found",
315       "designer_editable": true,
316       "sourced_at_deployment": false,
317       "policy_editable": false,
318       "type": "number",
319       "required": false
320     }
321   ]
322 }
323