b2bf8bb96ad9dacdc506b269258246054920f1dc
[clamp.git] / src / test / resources / example / sdc / blueprint-dcae / tca.yaml
1 tosca_definitions_version: cloudify_dsl_1_3
2 imports:
3 - http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
4 - https://onap.org:8443/repository/solutioning01-mte2-raw/type_files/docker/2.2.0/node-type.yaml
5 - https://onap.org:8443/repository/solutioning01-mte2-raw/type_files/relationship/1.0.0/node-type.yaml
6 - http://onap.org:8081/repository/solutioning01-mte2-raw/type_files/dmaap/dmaap_mr.yaml
7 inputs:
8   location_id:
9     type: string
10   service_id:
11     type: string
12   policy_id:
13     type: string
14 node_templates:
15   policy_0:
16     type: dcae.nodes.policy
17     properties:
18       policy_id: 
19         get_input: policy_id
20         policy_type_id: onap.policy.monitoring.cdap.tca.hi.lo.app
21   cdap_host_host:
22     type: dcae.nodes.StreamingAnalytics.SelectedCDAPInfrastructure
23     properties:
24       location_id:
25         get_input: location_id
26       scn_override: cdap_broker.solutioning-central.dcae.onap.org
27     interfaces:
28       cloudify.interfaces.lifecycle: {
29         }
30   tca_tca:
31     type: dcae.nodes.MicroService.cdap
32     properties:
33       app_config:
34         appDescription: DCAE Analytics Threshold Crossing Alert Application
35         appName: dcae-tca
36         tcaSubscriberOutputStreamName: TCASubscriberOutputStream
37         tcaVESAlertsTableName: TCAVESAlertsTable
38         tcaVESAlertsTableTTLSeconds: '1728000'
39         tcaVESMessageStatusTableName: TCAVESMessageStatusTable
40         tcaVESMessageStatusTableTTLSeconds: '86400'
41         thresholdCalculatorFlowletInstances: '2'
42       app_preferences:
43         publisherContentType: application/json
44         publisherHostName: mrlocal-mtnjftle01.onap.org
45         publisherHostPort: '3905'
46         publisherMaxBatchSize: '10'
47         publisherMaxRecoveryQueueSize: '100000'
48         publisherPollingInterval: '20000'
49         publisherProtocol: https
50         publisherTopicName: org.onap.dcae.dmaap.mtnje2.DcaeTestVESPub
51         publisherUserName: test@tca.af.dcae.onap.org
52         publisherUserPassword: password
53         subscriberConsumerGroup: OpenDCAE-c12
54         subscriberConsumerId: c12
55         subscriberContentType: application/json
56         subscriberHostName: mrlocal-mtnjftle01.onap.org
57         subscriberHostPort: '3905'
58         subscriberMessageLimit: '-1'
59         subscriberPollingInterval: '20000'
60         subscriberProtocol: https
61         subscriberTimeoutMS: '-1'
62         subscriberTopicName: org.onap.dcae.dmaap.mtnje2.DcaeTestVESSub
63         subscriberUserName: test@tca.af.dcae.onap.org
64         subscriberUserPassword: password
65         tca_policy: null
66       artifact_name: dcae-analytics-tca
67       artifact_version: 1.0.0
68       connections:
69         streams_publishes: [
70           ]
71         streams_subscribes: [
72           ]
73       jar_url: http://somejar
74       location_id:
75         get_input: location_id
76       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       service_id:
86         get_input: service_id
87       streamname: TCASubscriberOutputStream
88     relationships:
89     - target: topic0
90       type: dcae.relationships.subscribe_to_events
91     - target: topic1
92       type: dcae.relationships.publish_events
93     - target: cdap_host_host
94       type: dcae.relationships.component_contained_in
95     - target: policy_0
96       type: dcae.relationships.depends_on
97   topic0:
98     type: dcae.nodes.Topic
99     properties:
100       topic_name: ''
101   topic1:
102     type: dcae.nodes.Topic
103     properties:
104       topic_name: ''
105