Merge "CsarInstaller introduction"
[clamp.git] / src / test / resources / example / sdc / blueprint-dcae / holmes.yaml
1 tosca_definitions_version: cloudify_dsl_1_3
2 imports:
3 - http://www.getcloudify.org/spec/cloudify/3.4/types.yaml
4 - https://nexus01.research.att.com:8443/repository/solutioning01-mte2-raw/type_files/docker/2.3.0+t.0.4/node-type.yaml
5 - https://nexus01.research.att.com:8443/repository/solutioning01-mte2-raw/type_files/relationship/1.0.0/node-type.yaml
6 - http://nexus01.research.att.com:8081/repository/solutioning01-mte2-raw/type_files/dmaap/1.2.0/dmaap.yaml
7 inputs:
8   dcae_service_location:
9     type: string
10   docker_host_override:
11     type: string
12   topic0_aaf_password:
13     type: string
14   topic0_aaf_username:
15     type: string
16   topic0_client_role:
17     type: string
18   topic1_aaf_password:
19     type: string
20   topic1_aaf_username:
21     type: string
22   topic1_client_role:
23     type: string
24 node_templates:
25   docker_host_host:
26     type: dcae.nodes.SelectedDockerHost
27     properties:
28       docker_host_override:
29         get_input: docker_host_override
30       location_id:
31         get_input: dcae_service_location
32   holmes-rule_homes-rule:
33     type: dcae.nodes.DockerContainerForComponentsUsingDmaap
34     properties:
35       application_config:
36         holmes.default.rule.volte.scenario1: 'package dcae.ves.test
37
38           import org.onap.some.related.packages;
39
40           rule"SameVNF_Relation_Rule"
41
42           salience 120
43
44           no-loop true
45
46           when
47
48           $root : VesAlarm(
49
50           $sourceId: sourceId, sourceId != null && !sourceId.equals(""),
51
52           specificProblem in ( "LSS_cpiPCSCFFailReg(121297)", "LSS_cpiSIPRetransmitInvite(120267)" ),
53
54           $eventId: eventId)
55
56           $child : VesAlarm( eventId != $eventId,
57
58           CorrelationUtil.getInstance().isTopologicallyRelated(sourceId, $sourceId),
59
60           specificProblem in ("LSS_externalLinkDown(4271)","LSS_failedAttachReqsRateExceeded(4272)"),
61
62           this after [-60s, 60s] $root)
63
64           then
65
66           DmaapService.publishResult(...);
67
68           end'
69         holmes.default.rule.volte.scenario2: 'package dcae.ves.test
70
71           import org.onap.some.related.packages;
72
73           rule"SameVNF_Relation_Rule_1"
74
75           salience 120
76
77           no-loop true
78
79           when
80
81           $root : VesAlarm(
82
83           $sourceId: sourceId, sourceId != null && !sourceId.equals(""),
84
85           specificProblem in ( "LSS_cpiPCSCFFailReg(121297)", "LSS_cpiSIPRetransmitInvite(120267)" ),
86
87           $eventId: eventId)
88
89           $child : VesAlarm( eventId != $eventId,
90
91           CorrelationUtil.getInstance().isTopologicallyRelated(sourceId, $sourceId),
92
93           specificProblem in ("LSS_externalLinkDown(4271)","LSS_failedAttachReqsRateExceeded(4272)"),
94
95           this after [-60s, 60s] $root)
96
97           then
98
99           DmaapService.publishResult(...);
100
101           end'
102         services_calls:
103         - msb_config:
104             concat:
105             - '{{'
106             - get_property:
107               - SELF
108               - msb_config
109               - node_name
110             - '}}'
111         streams_publishes: []
112         streams_subscribes:
113         - sec_measurement_unsecure:
114             aaf_password:
115               get_input: topic0_aaf_password
116             aaf_username:
117               get_input: topic0_aaf_username
118             dmaap_info: <<topic0>>
119             type: message_router
120         - sec_measurement:
121             aaf_password:
122               get_input: topic1_aaf_password
123             aaf_username:
124               get_input: topic1_aaf_username
125             dmaap_info: <<topic1>>
126             type: message_router
127       docker_config:
128         healthcheck:
129           endpoint: api/holmes-rule-mgmt/v1/healthcheck
130           interval: 15s
131           timeout: 1s
132           type: http
133         ports:
134         - 9101:9101
135       image: nexus3.onap.org:10001/onap/holmes/rule-manamgement:latest
136       location_id:
137         get_input: dcae_service_location
138       service_component_type: dcae-analytics-holmes-rule-manamgement
139       streams_publishes: []
140       streams_subscribes:
141       - client_role:
142           get_input: topic0_client_role
143         location:
144           get_input: dcae_service_location
145         name: topic0
146         type: message_router
147       - client_role:
148           get_input: topic1_client_role
149         location:
150           get_input: dcae_service_location
151         name: topic1
152         type: message_router
153     relationships:
154     - target: docker_host_host
155       type: dcae.relationships.component_contained_in
156     - target: topic0
157       type: dcae.relationships.subscribe_to_events
158     - target: topic1
159       type: dcae.relationships.subscribe_to_events
160   topic0:
161     type: dcae.nodes.Topic
162     properties:
163       topic_name: ''
164   topic1:
165     type: dcae.nodes.Topic
166     properties:
167       topic_name: ''