blob: cd8ebd8fd1fa82d1899a87cd648f496c3218cb24 [file] [log] [blame]
Determe, Sebastien (sd378r)0ad329e2017-09-28 15:25:59 +02001tosca_definitions_version: cloudify_dsl_1_3
2imports: ['http://www.getcloudify.org/spec/cloudify/3.4/types.yaml', 'https://nexus01.research.att.com:8443/repository/solutioning01-mte2-raw/type_files/docker/2.2.0/node-type.yaml',
3 'https://nexus01.research.att.com:8443/repository/solutioning01-mte2-raw/type_files/relationship/1.0.0/node-type.yaml',
4 'http://nexus01.research.att.com:8081/repository/solutioning01-mte2-raw/type_files/dmaap/dmaap_mr.yaml']
5inputs:
6 location_id: {type: string}
7 service_id: {type: string}
8node_templates:
9 cdap_host_host:
10 type: dcae.nodes.StreamingAnalytics.SelectedCDAPInfrastructure
11 properties:
12 location_id: {get_input: location_id}
13 scn_override: cdap_broker.solutioning-central.dcae.att.com
14 interfaces:
15 cloudify.interfaces.lifecycle: {}
16 tca_tca:
17 type: dcae.nodes.MicroService.cdap
18 properties:
19 app_config: {appDescription: DCAE Analytics Threshold Crossing Alert Application,
20 appName: dcae-tca, tcaSubscriberOutputStreamName: TCASubscriberOutputStream,
21 tcaVESAlertsTableName: TCAVESAlertsTable, tcaVESAlertsTableTTLSeconds: '1728000',
22 tcaVESMessageStatusTableName: TCAVESMessageStatusTable, tcaVESMessageStatusTableTTLSeconds: '86400',
23 thresholdCalculatorFlowletInstances: '2'}
24 app_preferences: {publisherContentType: application/json, publisherHostName: mrlocal-mtnjftle01.homer.att.com,
25 publisherHostPort: '3905', publisherMaxBatchSize: '10', publisherMaxRecoveryQueueSize: '100000',
26 publisherPollingInterval: '20000', publisherProtocol: https, publisherTopicName: com.att.dcae.dmaap.mtnje2.DcaeTestVESPub,
27 publisherUserName: m00502@tca.af.dcae.att.com, publisherUserPassword: Te5021abc,
28 subscriberConsumerGroup: OpenDCAE-c12, subscriberConsumerId: c12, subscriberContentType: application/json,
29 subscriberHostName: mrlocal-mtnjftle01.homer.att.com, subscriberHostPort: '3905',
30 subscriberMessageLimit: '-1', subscriberPollingInterval: '20000', subscriberProtocol: https,
31 subscriberTimeoutMS: '-1', subscriberTopicName: com.att.dcae.dmaap.mtnje2.DcaeTestVESSub,
32 subscriberUserName: m00502@tca.af.dcae.att.com, subscriberUserPassword: Te5021abc,
33 tca_policy: '{"cdap-tca-hi-lo_policy":{"domain":"measurementsForVfScaling","metricsPerEventName":[{"eventName":"vFirewallBroadcastPackets","policyScope":"DCAE","policyName":"example_model01.ClosedLoop_FRWL_SIG_fad4dcae_e498_11e6_852e_0050568c4ccf_TCA_1jy9to4","policyVersion":"v0.0.1","thresholds":[{"closedLoopControlName":"ClosedLoop_FRWL_SIG_fad4dcae_e498_11e6_852e_0050568c4ccf_null","controlLoopSchema":"VNF","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta","thresholdValue":123,"direction":"GREATER_OR_EQUAL","severity":"MAJOR","closedLoopEventStatus":"ONSET"},{"closedLoopControlName":"ClosedLoop_FRWL_SIG_fad4dcae_e498_11e6_852e_0050568c4ccf_null","controlLoopSchema":"VNF","version":"1.0.2","fieldPath":"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta","thresholdValue":123,"direction":"GREATER_OR_EQUAL","severity":"MAJOR","closedLoopEventStatus":"ONSET"}]}]}}'}
34 artifact_name: dcae-analytics-tca
35 artifact_version: 1.0.0
36 connections:
37 streams_publishes: []
38 streams_subscribes: []
39 jar_url: http://somejar
40 location_id: {get_input: location_id}
41 namespace: cdap_tca_hi_lo
42 programs:
43 - {program_id: TCAVESCollectorFlow, program_type: flows}
44 - {program_id: TCADMaaPMRSubscriberWorker, program_type: workers}
45 - {program_id: TCADMaaPMRPublisherWorker, program_type: workers}
46 service_component_type: cdap_app_tca
47 service_id: {get_input: service_id}
48 streamname: TCASubscriberOutputStream
49 relationships:
50 - {target: cdap_host_host, type: dcae.relationships.component_contained_in}