change required for new release
[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   policy_0:
26     type: dcae.nodes.policy
27     properties:
28       policy_model: policy.nodes.holmes
29       policy_filter: "DCAE.Config_Holmes.*"
30   docker_host_host:
31     type: dcae.nodes.SelectedDockerHost
32     properties:
33       docker_host_override:
34         get_input: docker_host_override
35       location_id:
36         get_input: dcae_service_location
37   holmes-rule_homes-rule:
38     type: dcae.nodes.DockerContainerForComponentsUsingDmaap
39     properties:
40       application_config:
41         holmes.default.rule.volte.scenario1: 'package dcae.ves.test
42
43           import org.onap.some.related.packages;
44
45           rule"SameVNF_Relation_Rule"
46
47           salience 120
48
49           no-loop true
50
51           when
52
53           $root : VesAlarm(
54
55           $sourceId: sourceId, sourceId != null && !sourceId.equals(""),
56
57           specificProblem in ( "LSS_cpiPCSCFFailReg(121297)", "LSS_cpiSIPRetransmitInvite(120267)" ),
58
59           $eventId: eventId)
60
61           $child : VesAlarm( eventId != $eventId,
62
63           CorrelationUtil.getInstance().isTopologicallyRelated(sourceId, $sourceId),
64
65           specificProblem in ("LSS_externalLinkDown(4271)","LSS_failedAttachReqsRateExceeded(4272)"),
66
67           this after [-60s, 60s] $root)
68
69           then
70
71           DmaapService.publishResult(...);
72
73           end'
74         holmes.default.rule.volte.scenario2: 'package dcae.ves.test
75
76           import org.onap.some.related.packages;
77
78           rule"SameVNF_Relation_Rule_1"
79
80           salience 120
81
82           no-loop true
83
84           when
85
86           $root : VesAlarm(
87
88           $sourceId: sourceId, sourceId != null && !sourceId.equals(""),
89
90           specificProblem in ( "LSS_cpiPCSCFFailReg(121297)", "LSS_cpiSIPRetransmitInvite(120267)" ),
91
92           $eventId: eventId)
93
94           $child : VesAlarm( eventId != $eventId,
95
96           CorrelationUtil.getInstance().isTopologicallyRelated(sourceId, $sourceId),
97
98           specificProblem in ("LSS_externalLinkDown(4271)","LSS_failedAttachReqsRateExceeded(4272)"),
99
100           this after [-60s, 60s] $root)
101
102           then
103
104           DmaapService.publishResult(...);
105
106           end'
107         services_calls:
108         - msb_config:
109             concat:
110             - '{{'
111             - get_property:
112               - SELF
113               - msb_config
114               - node_name
115             - '}}'
116         streams_publishes: []
117         streams_subscribes:
118         - sec_measurement_unsecure:
119             aaf_password:
120               get_input: topic0_aaf_password
121             aaf_username:
122               get_input: topic0_aaf_username
123             dmaap_info: <<topic0>>
124             type: message_router
125         - sec_measurement:
126             aaf_password:
127               get_input: topic1_aaf_password
128             aaf_username:
129               get_input: topic1_aaf_username
130             dmaap_info: <<topic1>>
131             type: message_router
132       docker_config:
133         healthcheck:
134           endpoint: api/holmes-rule-mgmt/v1/healthcheck
135           interval: 15s
136           timeout: 1s
137           type: http
138         ports:
139         - 9101:9101
140       image: nexus3.onap.org:10001/onap/holmes/rule-manamgement:latest
141       location_id:
142         get_input: dcae_service_location
143       service_component_type: dcae-analytics-holmes-rule-manamgement
144       streams_publishes: []
145       streams_subscribes:
146       - client_role:
147           get_input: topic0_client_role
148         location:
149           get_input: dcae_service_location
150         name: topic0
151         type: message_router
152       - client_role:
153           get_input: topic1_client_role
154         location:
155           get_input: dcae_service_location
156         name: topic1
157         type: message_router
158     relationships:
159     - target: docker_host_host
160       type: dcae.relationships.component_contained_in
161     - target: topic0
162       type: dcae.relationships.subscribe_to_events
163     - target: topic1
164       type: dcae.relationships.subscribe_to_events
165     - target: policy_0
166       type: dcae.relationships.depends_on
167   topic0:
168     type: dcae.nodes.Topic
169     properties:
170       topic_name: ''
171   topic1:
172     type: dcae.nodes.Topic
173     properties:
174       topic_name: ''