Commit includes ControlLoopPolicy API and bugfixes
[policy/engine.git] / ECOMP-ControlloopPolicy / src / test / resources / v2.0.0 / Demo-1.0.0-HeatTemplates / service-57e66ea70ed645c7970f-template.yml
1 tosca_definitions_version: tosca_simple_yaml_1_0
2 metadata:
3   invariantUUID: 5cfe6f4a-41bc-4247-8674-ebd4b98e35cc
4   UUID: 0f40bba5-986e-4b3c-803f-ddd1b7b25f24
5   name: 57e66ea7-0ed6-45c7-970f
6   description: catalog service description
7   type: Service
8   category: Network L1-3
9   serviceEcompNaming: false
10   serviceHoming: false
11 imports:
12 - eace9331-04d4-43b4-96b8:
13     file: resource-Eace933104d443b496b8-template.yml
14 topology_template:
15   node_templates:
16     eace9331-04d4-43b4-96b8 1:
17       type: org.openecomp.resource.vf.Eace933104d443b496b8
18       metadata:
19         invariantUUID: 06fe411e-d006-4ac3-8b0e-fb4f13cd78d3
20         UUID: 172ce7c5-c2e4-4f8d-b66c-edb49e8e548a
21         version: '1.0'
22         name: eace9331-04d4-43b4-96b8
23         description: vendor software product
24         type: VF
25         category: Generic
26         subcategory: Abstract
27   substitution_mappings:
28     node_type: org.openecomp.service.57e66ea70ed645c7970f
29     capabilities:
30       eace9331-04d4-43b4-96b8 1.memory.resident:
31         type: org.openecomp.capabilities.metric.Ceilometer
32         description: Volume of RAM used by the instance on the physical machine
33         occurrences:
34         - 1
35         - UNBOUNDED
36         properties:
37           initiator:
38             type: string
39             default: source
40           network_name:
41             type: string
42             default: PRIVATE
43             required: false
44           description:
45             type: string
46             description: Description of the metric
47             required: false
48           type:
49             type: string
50             default: Gauge
51             description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc.
52             required: true
53           ports:
54             type: map
55             required: false
56             entry_schema:
57               type: PortSpec
58           secure:
59             type: boolean
60             default: false
61           port_name:
62             type: string
63             required: false
64           unit:
65             type: string
66             default: MB
67             description: Unit of the metric value
68             required: true
69           protocol:
70             type: string
71             default: tcp
72           port:
73             type: PortDef
74             required: false
75           name:
76             type: string
77             default: memory.resident
78             description: Ceilometer metric type name to monitor. (The name ceilometer is using)
79             required: true
80           category:
81             type: string
82             default: compute
83             description: Category of the metric, for an example, compute, disk, network, storage and etc.
84             required: false
85           url_path:
86             type: string
87             required: false
88       eace9331-04d4-43b4-96b8 1.os:
89         type: tosca.capabilities.OperatingSystem
90         occurrences:
91         - 1
92         - UNBOUNDED
93         properties:
94           distribution:
95             type: string
96             required: false
97           type:
98             type: string
99             required: false
100           version:
101             type: version
102             required: false
103           architecture:
104             type: string
105             required: false
106       eace9331-04d4-43b4-96b8 1.binding:
107         type: tosca.capabilities.network.Bindable
108         occurrences:
109         - 0
110         - UNBOUNDED
111       eace9331-04d4-43b4-96b8 1.host:
112         type: tosca.capabilities.Container
113         occurrences:
114         - 1
115         - UNBOUNDED
116         valid_source_types:
117         - tosca.nodes.SoftwareComponent
118         properties:
119           num_cpus:
120             type: integer
121             required: false
122           disk_size:
123             type: scalar-unit.size
124             required: false
125           cpu_frequency:
126             type: scalar-unit.frequency
127             required: false
128           mem_size:
129             type: scalar-unit.size
130             required: false
131       eace9331-04d4-43b4-96b8 1.instance:
132         type: org.openecomp.capabilities.metric.Ceilometer
133         description: Existence of instance
134         occurrences:
135         - 1
136         - UNBOUNDED
137         properties:
138           initiator:
139             type: string
140             default: source
141           network_name:
142             type: string
143             default: PRIVATE
144             required: false
145           description:
146             type: string
147             description: Description of the metric
148             required: false
149           type:
150             type: string
151             default: Gauge
152             description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc.
153             required: true
154           ports:
155             type: map
156             required: false
157             entry_schema:
158               type: PortSpec
159           secure:
160             type: boolean
161             default: false
162           port_name:
163             type: string
164             required: false
165           unit:
166             type: string
167             default: instance
168             description: Unit of the metric value
169             required: true
170           protocol:
171             type: string
172             default: tcp
173           port:
174             type: PortDef
175             required: false
176           name:
177             type: string
178             default: instance
179             description: Ceilometer metric type name to monitor. (The name ceilometer is using)
180             required: true
181           category:
182             type: string
183             default: compute
184             description: Category of the metric, for an example, compute, disk, network, storage and etc.
185             required: false
186           url_path:
187             type: string
188             required: false
189       eace9331-04d4-43b4-96b8 1.scalable:
190         type: tosca.capabilities.Scalable
191         occurrences:
192         - 1
193         - UNBOUNDED
194         properties:
195           max_instances:
196             type: integer
197             default: 1
198           min_instances:
199             type: integer
200             default: 1
201           default_instances:
202             type: integer
203       eace9331-04d4-43b4-96b8 1.memory:
204         type: org.openecomp.capabilities.metric.Ceilometer
205         description: Volume of RAM allocated to the instance
206         occurrences:
207         - 1
208         - UNBOUNDED
209         properties:
210           initiator:
211             type: string
212             default: source
213           network_name:
214             type: string
215             default: PRIVATE
216             required: false
217           description:
218             type: string
219             description: Description of the metric
220             required: false
221           type:
222             type: string
223             default: Gauge
224             description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc.
225             required: true
226           ports:
227             type: map
228             required: false
229             entry_schema:
230               type: PortSpec
231           secure:
232             type: boolean
233             default: false
234           port_name:
235             type: string
236             required: false
237           unit:
238             type: string
239             default: MB
240             description: Unit of the metric value
241             required: true
242           protocol:
243             type: string
244             default: tcp
245           port:
246             type: PortDef
247             required: false
248           name:
249             type: string
250             default: memory
251             description: Ceilometer metric type name to monitor. (The name ceilometer is using)
252             required: true
253           category:
254             type: string
255             default: compute
256             description: Category of the metric, for an example, compute, disk, network, storage and etc.
257             required: false
258           url_path:
259             type: string
260             required: false
261       eace9331-04d4-43b4-96b8 1.feature:
262         type: tosca.capabilities.Node
263         occurrences:
264         - 1
265         - UNBOUNDED
266       eace9331-04d4-43b4-96b8 1.vcpus:
267         type: org.openecomp.capabilities.metric.Ceilometer
268         description: Average disk latency
269         occurrences:
270         - 1
271         - UNBOUNDED
272         properties:
273           initiator:
274             type: string
275             default: source
276           network_name:
277             type: string
278             default: PRIVATE
279             required: false
280           description:
281             type: string
282             description: Description of the metric
283             required: false
284           type:
285             type: string
286             default: Gauge
287             description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc.
288             required: true
289           ports:
290             type: map
291             required: false
292             entry_schema:
293               type: PortSpec
294           secure:
295             type: boolean
296             default: false
297           port_name:
298             type: string
299             required: false
300           unit:
301             type: string
302             default: ms
303             description: Unit of the metric value
304             required: true
305           protocol:
306             type: string
307             default: tcp
308           port:
309             type: PortDef
310             required: false
311           name:
312             type: string
313             default: vcpus
314             description: Ceilometer metric type name to monitor. (The name ceilometer is using)
315             required: true
316           category:
317             type: string
318             default: compute
319             description: Category of the metric, for an example, compute, disk, network, storage and etc.
320             required: false
321           url_path:
322             type: string
323             required: false
324       eace9331-04d4-43b4-96b8 1.cpu_util:
325         type: org.openecomp.capabilities.metric.Ceilometer
326         description: Average CPU utilization
327         occurrences:
328         - 1
329         - UNBOUNDED
330         properties:
331           initiator:
332             type: string
333             default: source
334           network_name:
335             type: string
336             default: PRIVATE
337             required: false
338           description:
339             type: string
340             description: Description of the metric
341             required: false
342           type:
343             type: string
344             default: Gauge
345             description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc.
346             required: true
347           ports:
348             type: map
349             required: false
350             entry_schema:
351               type: PortSpec
352           secure:
353             type: boolean
354             default: false
355           port_name:
356             type: string
357             required: false
358           unit:
359             type: string
360             default: '%'
361             description: Unit of the metric value
362             required: true
363           protocol:
364             type: string
365             default: tcp
366           port:
367             type: PortDef
368             required: false
369           name:
370             type: string
371             default: cpu_util
372             description: Ceilometer metric type name to monitor. (The name ceilometer is using)
373             required: true
374           category:
375             type: string
376             default: compute
377             description: Category of the metric, for an example, compute, disk, network, storage and etc.
378             required: false
379           url_path:
380             type: string
381             required: false
382       eace9331-04d4-43b4-96b8 1.cpu.delta:
383         type: org.openecomp.capabilities.metric.Ceilometer
384         description: CPU time used since previous datapoint
385         occurrences:
386         - 1
387         - UNBOUNDED
388         properties:
389           initiator:
390             type: string
391             default: source
392           network_name:
393             type: string
394             default: PRIVATE
395             required: false
396           description:
397             type: string
398             description: Description of the metric
399             required: false
400           type:
401             type: string
402             default: Delta
403             description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc.
404             required: true
405           ports:
406             type: map
407             required: false
408             entry_schema:
409               type: PortSpec
410           secure:
411             type: boolean
412             default: false
413           port_name:
414             type: string
415             required: false
416           unit:
417             type: string
418             default: ns
419             description: Unit of the metric value
420             required: true
421           protocol:
422             type: string
423             default: tcp
424           port:
425             type: PortDef
426             required: false
427           name:
428             type: string
429             default: cpu.delta
430             description: Ceilometer metric type name to monitor. (The name ceilometer is using)
431             required: true
432           category:
433             type: string
434             default: compute
435             description: Category of the metric, for an example, compute, disk, network, storage and etc.
436             required: false
437           url_path:
438             type: string
439             required: false
440       eace9331-04d4-43b4-96b8 1.attachment:
441         type: tosca.capabilities.Attachment
442         occurrences:
443         - 1
444         - UNBOUNDED
445       eace9331-04d4-43b4-96b8 1.cpu:
446         type: org.openecomp.capabilities.metric.Ceilometer
447         description: CPU time used
448         occurrences:
449         - 1
450         - UNBOUNDED
451         properties:
452           initiator:
453             type: string
454             default: source
455           network_name:
456             type: string
457             default: PRIVATE
458             required: false
459           description:
460             type: string
461             description: Description of the metric
462             required: false
463           type:
464             type: string
465             default: Cumulative
466             description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc.
467             required: true
468           ports:
469             type: map
470             required: false
471             entry_schema:
472               type: PortSpec
473           secure:
474             type: boolean
475             default: false
476           port_name:
477             type: string
478             required: false
479           unit:
480             type: string
481             default: ns
482             description: Unit of the metric value
483             required: true
484           protocol:
485             type: string
486             default: tcp
487           port:
488             type: PortDef
489             required: false
490           name:
491             type: string
492             default: cpu
493             description: Ceilometer metric type name to monitor. (The name ceilometer is using)
494             required: true
495           category:
496             type: string
497             default: compute
498             description: Category of the metric, for an example, compute, disk, network, storage and etc.
499             required: false
500           url_path:
501             type: string
502             required: false
503       eace9331-04d4-43b4-96b8 1.instance:type:
504         type: org.openecomp.capabilities.metric.Ceilometer
505         description: Existence of instance <type> (OpenStack types)
506         occurrences:
507         - 1
508         - UNBOUNDED
509         properties:
510           initiator:
511             type: string
512             default: source
513           network_name:
514             type: string
515             default: PRIVATE
516             required: false
517           description:
518             type: string
519             description: Description of the metric
520             required: false
521           type:
522             type: string
523             default: Gauge
524             description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc.
525             required: true
526           ports:
527             type: map
528             required: false
529             entry_schema:
530               type: PortSpec
531           secure:
532             type: boolean
533             default: false
534           port_name:
535             type: string
536             required: false
537           unit:
538             type: string
539             default: instance
540             description: Unit of the metric value
541             required: true
542           protocol:
543             type: string
544             default: tcp
545           port:
546             type: PortDef
547             required: false
548           name:
549             type: string
550             default: instance:type
551             description: Ceilometer metric type name to monitor. (The name ceilometer is using)
552             required: true
553           category:
554             type: string
555             default: compute
556             description: Category of the metric, for an example, compute, disk, network, storage and etc.
557             required: false
558           url_path:
559             type: string
560             required: false
561       eace9331-04d4-43b4-96b8 1.link:
562         type: tosca.capabilities.network.Linkable
563         occurrences:
564         - 0
565         - UNBOUNDED
566       eace9331-04d4-43b4-96b8 1.memory.usage:
567         type: org.openecomp.capabilities.metric.Ceilometer
568         description: Volume of RAM used by the instance from the amount of its allocated memory
569         occurrences:
570         - 1
571         - UNBOUNDED
572         properties:
573           initiator:
574             type: string
575             default: source
576           network_name:
577             type: string
578             default: PRIVATE
579             required: false
580           description:
581             type: string
582             description: Description of the metric
583             required: false
584           type:
585             type: string
586             default: Gauge
587             description: Type of the metric value, for an example, Cumulative, Delta, Gauge and etc.
588             required: true
589           ports:
590             type: map
591             required: false
592             entry_schema:
593               type: PortSpec
594           secure:
595             type: boolean
596             default: false
597           port_name:
598             type: string
599             required: false
600           unit:
601             type: string
602             default: MB
603             description: Unit of the metric value
604             required: true
605           protocol:
606             type: string
607             default: tcp
608           port:
609             type: PortDef
610             required: false
611           name:
612             type: string
613             default: memory.usage
614             description: Ceilometer metric type name to monitor. (The name ceilometer is using)
615             required: true
616           category:
617             type: string
618             default: compute
619             description: Category of the metric, for an example, compute, disk, network, storage and etc.
620             required: false
621           url_path:
622             type: string
623             required: false
624       eace9331-04d4-43b4-96b8 1.endpoint:
625         type: tosca.capabilities.Endpoint.Admin
626         occurrences:
627         - 1
628         - UNBOUNDED
629         properties:
630           port_name:
631             type: string
632             required: false
633           protocol:
634             type: string
635             default: tcp
636           port:
637             type: PortDef
638             required: false
639           initiator:
640             type: string
641             default: source
642           network_name:
643             type: string
644             default: PRIVATE
645             required: false
646           secure:
647             type: boolean
648             default: true
649           ports:
650             type: map
651             required: false
652             entry_schema:
653               type: PortSpec
654           url_path:
655             type: string
656             required: false
657     requirements:
658       eace9331-04d4-43b4-96b8 1.local_storage:
659         occurrences:
660         - 0
661         - UNBOUNDED
662         capability: tosca.capabilities.Attachment
663         node: tosca.nodes.BlockStorage
664         relationship: tosca.relationships.AttachesTo
665       eace9331-04d4-43b4-96b8 1.dependency:
666         occurrences:
667         - 0
668         - UNBOUNDED
669         capability: tosca.capabilities.Node
670         node: tosca.nodes.Root
671         relationship: tosca.relationships.DependsOn
672       eace9331-04d4-43b4-96b8 1.link:
673         occurrences:
674         - 1
675         - 1
676         capability: tosca.capabilities.network.Linkable
677         relationship: tosca.relationships.network.LinksTo