blob: 96994563b0e1e9e1fe4738b1e5ac04bc7d71a517 [file] [log] [blame]
Lusheng Ji8fe70932017-10-11 22:08:26 +00001tosca_definitions_version: cloudify_dsl_1_3
2imports:
3 - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/type_files/dockerplugin/2/dockerplugin_types.yaml
4 - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/type_files/cdapcloudify/14/cdapcloudify_types.yaml
5 - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/type_files/dcaepolicyplugin/1/dcaepolicyplugin_types.yaml
Hansen, Tony (th1395)68765fc2018-04-27 00:37:31 +00006 - {{ ONAPTEMPLATE_RAWREPOURL_org_onap_dcaegen2_platform_plugins_releases }}/relationshipplugin/1.0.0/relationshipplugin_types.yaml
Lusheng Ji8fe70932017-10-11 22:08:26 +00007
8inputs:
9 connected_broker_dns_name:
10 type: string
11 default: cdap_broker
an48280b2698b2017-11-01 09:54:14 -040012 aaiEnrichmentHost:
13 type: string
14 enableAAIEnrichment:
15 type: string
16 default: false
17 subscriberHostName:
18 type: string
19 publisherHostName:
Lusheng Ji8fe70932017-10-11 22:08:26 +000020 type: string
21node_templates:
Lusheng Ji8fe70932017-10-11 22:08:26 +000022 tca_tca:
23 type: dcae.nodes.MicroService.cdap
24 properties:
25 app_config:
26 appDescription: DCAE Analytics Threshold Crossing Alert Application
27 appName: dcae-tca
28 tcaAlertsAbatementTableName: TCAAlertsAbatementTable
29 tcaAlertsAbatementTableTTLSeconds: '1728000'
30 tcaSubscriberOutputStreamName: TCASubscriberOutputStream
31 tcaVESAlertsTableName: TCAVESAlertsTable
32 tcaVESAlertsTableTTLSeconds: '1728000'
33 tcaVESMessageStatusTableName: TCAVESMessageStatusTable
34 tcaVESMessageStatusTableTTLSeconds: '86400'
35 thresholdCalculatorFlowletInstances: '2'
36 app_preferences:
an48280b2698b2017-11-01 09:54:14 -040037 aaiEnrichmentHost:
38 get_input: aaiEnrichmentHost
Lusheng Ji8fe70932017-10-11 22:08:26 +000039 aaiEnrichmentIgnoreSSLCertificateErrors: 'true'
40 aaiEnrichmentPortNumber: '8443'
41 aaiEnrichmentProtocol: https
Lusheng Ji8fe70932017-10-11 22:08:26 +000042 aaiEnrichmentUserName: DCAE
43 aaiEnrichmentUserPassword: DCAE
44 aaiVMEnrichmentAPIPath: /aai/v11/search/nodes-query
45 aaiVNFEnrichmentAPIPath: /aai/v11/network/generic-vnfs/generic-vnf
an48280b2698b2017-11-01 09:54:14 -040046 enableAAIEnrichment:
47 get_input: enableAAIEnrichment
Lusheng Ji8fe70932017-10-11 22:08:26 +000048 enableAlertCEFFormat: 'false'
49 publisherContentType: application/json
an48280b2698b2017-11-01 09:54:14 -040050 publisherHostName:
51 get_input: publisherHostName
52 publisherHostPort: '3904'
Lusheng Ji8fe70932017-10-11 22:08:26 +000053 publisherMaxBatchSize: '1'
54 publisherMaxRecoveryQueueSize: '100000'
55 publisherPollingInterval: '20000'
an48280b2698b2017-11-01 09:54:14 -040056 publisherProtocol: http
57 publisherTopicName: unauthenticated.DCAE_CL_OUTPUT
Lusheng Ji8fe70932017-10-11 22:08:26 +000058 subscriberConsumerGroup: OpenDCAE-c12
59 subscriberConsumerId: c12
60 subscriberContentType: application/json
an48280b2698b2017-11-01 09:54:14 -040061 subscriberHostName:
62 get_input: subscriberHostName
63 subscriberHostPort: '3904'
Lusheng Ji8fe70932017-10-11 22:08:26 +000064 subscriberMessageLimit: '-1'
65 subscriberPollingInterval: '30000'
an48280b2698b2017-11-01 09:54:14 -040066 subscriberProtocol: http
Lusheng Ji8fe70932017-10-11 22:08:26 +000067 subscriberTimeoutMS: '-1'
Lusheng Ji42f95082018-05-11 11:16:27 -040068 subscriberTopicName: unauthenticated.VES_MEASUREMENT_OUTPUT
Vijay02d875c2017-10-17 15:49:33 +000069 tca_policy: '{"domain":"measurementsForVfScaling","metricsPerEventName":[{"eventName":"vFirewallBroadcastPackets","controlLoopSchemaType":"VNF","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.vNicUsageArray[*].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.vNicUsageArray[*].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.vNicUsageArray[*].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"}]}]}'
Lusheng Ji8fe70932017-10-11 22:08:26 +000070 artifact_name: dcae-analytics-cdap-tca
71 artifact_version: 2.0.0
72 connections:
73 streams_publishes: []
74 streams_subscribes: []
Lusheng Ji4865d6d2017-11-14 22:39:50 -050075 jar_url: https://nexus.onap.org/service/local/repositories/releases/content/org/onap/dcaegen2/analytics/tca/dcae-analytics-cdap-tca/2.0.0/dcae-analytics-cdap-tca-2.0.0.jar
Lusheng Ji8fe70932017-10-11 22:08:26 +000076 namespace: cdap_tca_hi_lo
77 programs:
78 - program_id: TCAVESCollectorFlow
79 program_type: flows
80 - program_id: TCADMaaPMRSubscriberWorker
81 program_type: workers
82 - program_id: TCADMaaPMRPublisherWorker
83 program_type: workers
84 service_component_type: cdap_app_tca
85 streamname: TCASubscriberOutputStream
Lusheng Ji8fe70932017-10-11 22:08:26 +000086 interfaces:
87 cloudify.interfaces.lifecycle:
88 create:
89 inputs:
90 connected_broker_dns_name:
91 get_input: connected_broker_dns_name
92