blob: 6522885ff5b912c15c66ad9426548d2880aa9076 [file] [log] [blame]
Determe, Sebastien (sd378r)ccb71522018-03-16 19:49:13 +01001tosca_definitions_version: cloudify_dsl_1_3
2imports:
3- http://dockercentral.it.att.com:8093/nexus/repository/rawcentral/com.att.dcae.controller/type_files/dockerplugin/2.4.0+t.0.8/node-type.yaml
4- http://dockercentral.it.att.com:8093/nexus/repository/rawcentral/com.att.dcae.controller/type_files/dmaap/1.2.0+t.0.9/dmaap.yaml
5- http://dockercentral.it.att.com:8093/nexus/repository/rawcentral/com.att.dcae.controller/type_files/relationship/1.0.0+t.0.1/relationship-types.yaml
6inputs:
7 commonEventHeader.domain:
8 type: string
9 commonEventHeader.version:
10 type: string
11 dcae_service_location:
12 type: string
13 docker_host_override:
14 type: string
15 default: ''
16 elementType:
17 type: string
18 feed_id:
19 type: string
20 mappingType:
21 type: string
22 measurementsForVfScalingFields.measurementsForVfScalingVersion:
23 type: string
24 phases.docker_map.phaseName:
25 type: string
26 topic1_aaf_password:
27 type: string
28 topic1_aaf_username:
29 type: string
30 topic1_client_role:
31 type: string
32node_templates:
33 DockerMap_n.1519416493392.3_DockerMap:
34 type: dcae.nodes.DockerContainerForComponentsUsingDmaap
35 properties:
36 application_config:
37 commonEventHeader.domain:
38 get_input: commonEventHeader.domain
39 commonEventHeader.version:
40 get_input: commonEventHeader.version
41 csvToVesJson: '{"processing":[{"phase":"pmossFoiPhase","filter":{"class":"Contains","string":"${file}","value":"NOKvMRF"},"processors":[{"class":"LogEvent","title":"PM-FOIEvent-Received","logName":"com.att.gfp.dcae.eventProcessor.input","logLevel":"DEBUG"},{"class":"RunPhase","phase":"vFoiNokRunPhase"}]},{"phase":"vFoiNokRunPhase","comments":"generic parsing","processors":[{"replace":",","field":"data","class":"ReplaceText","find":";"},{"replace":",","field":"file","class":"ReplaceText","find":"_"}]},{"phase":"vFoiNokRunPhase","filter":{"class":"Contains","string":"${data[1]}","value":"Begin date"},"processors":[{"class":"ExtractText","field":"event.commonEventHeader.startEpochMicrosec","value":"${data[1]}","regex":".*Begin date,([^,]*),.*"},{"class":"DateFormatter","value":"${event.commonEventHeader.startEpochMicrosec}","fromFormat":"MM/dd/yy HH:mm:ss a","fromTz":"GMT","toField":"event.commonEventHeader.startEpochMicrosec","toFormat":"#ms","toTz":"#ms"}]},{"phase":"vFoiNokRunPhase","filter":{"class":"Contains","string":"${data[2]}","value":"End date"},"processors":[{"class":"ExtractText","field":"event.commonEventHeader.lastEpochMicrosec","value":"${data[2]}","regex":".*End date,([^,]*),.*"},{"class":"DateFormatter","value":"${event.commonEventHeader.lastEpochMicrosec}","fromFormat":"MM/dd/yy HH:mm:ss a","fromTz":"GMT","toField":"event.commonEventHeader.lastEpochMicrosec","toFormat":"#ms","toTz":"#ms"},{"class":"DateFormatter","value":"${event.commonEventHeader.lastEpochMicrosec}","fromFormat":"#ms","fromTz":"#ms","toField":"event.commonEventHeader.internalHeaderFields.DATETIMEUTC","toFormat":"yyyyMMddHHmmss","toTz":"GMT"}]},{"phase":"vFoiNokRunPhase","processors":[{"class":"ExtractText","field":"event.measurementsForVfScalingFields.additionalMeasurements.arrayOfFields[0].value","value":"${data[7]}","regex":".*CpuSys,+(\\d+,){3}.*"},{"class":"ReplaceText","replace":"","field":"event.measurementsForVfScalingFields.additionalMeasurements.arrayOfFields[0].value","find":","},{"class":"ExtractText","field":"event.measurementsForVfScalingFields.additionalMeasurements.arrayOfFields[1].value","value":"${data[5]}","regex":".*CpuUsage,+(\\d+,){3}.*"},{"class":"ReplaceText","replace":"","field":"event.measurementsForVfScalingFields.additionalMeasurements.arrayOfFields[1].value","find":","},{"class":"ExtractText","field":"event.measurementsForVfScalingFields.additionalMeasurements.arrayOfFields[2].value","value":"${data[7]}","regex":".*CpuSys,+(\\d+,){2}.*"},{"class":"ReplaceText","replace":"","field":"event.measurementsForVfScalingFields.additionalMeasurements.arrayOfFields[2].value","find":","},{"class":"ExtractText","field":"event.measurementsForVfScalingFields.additionalMeasurements.arrayOfFields[3].value","value":"${data[5]}","regex":".*CpuUsage,+(\\d+,){2}.*"},{"class":"ReplaceText","replace":"","field":"event.measurementsForVfScalingFields.additionalMeasurements.arrayOfFields[3].value","find":","}]},{"phase":"vFoiNokRunPhase","processors":[{"class":"ExtractText","field":"event.commonEventHeader.eventName","value":"${file}","regex":"([^,]*),.*"},{"class":"ExtractText","field":"event.commonEventHeader.reportingEntityName","value":"${file}","regex":".*,([^,]*)\\..*"}]},{"phase":"vFoiNokRunPhase","comments":"generic parsing","processors":[{"class":"Set","updates":{"event.commonEventHeader.lastEpochMicrosec":"${event.commonEventHeader.lastEpochMicrosec}000","event.commonEventHeader.startEpochMicrosec":"${event.commonEventHeader.startEpochMicrosec}000","event.commonEventHeader.domain":"measurementsForVfScaling","event.commonEventHeader.eventName":"Mfvs_${event.commonEventHeader.eventName}","event.commonEventHeader.eventType":"csv2ves","event.commonEventHeader.priority":"Normal","event.commonEventHeader.sequence":0,"event.commonEventHeader.sourceName":"${event.commonEventHeader.reportingEntityName}","event.commonEventHeader.version":3.0,"event.commonEventHeader.eventId":"%{now.ms}","event.commonEventHeader.internalHeaderFields.dbTableSuffix":"","event.measurementsForVfScalingFields.measurementInterval":900,"event.measurementsForVfScalingFields.measurementsForVfScalingVersion":2.0,"event.measurementsForVfScalingFields.additionalMeasurements.name":"csv2ves","event.measurementsForVfScalingFields.additionalMeasurements.arrayOfFields[0].name":"CpuSysMax","event.measurementsForVfScalingFields.additionalMeasurements.arrayOfFields[1].name":"CpuUsageMax","event.measurementsForVfScalingFields.additionalMeasurements.arrayOfFields[2].name":"CpuSysAverage","event.measurementsForVfScalingFields.additionalMeasurements.arrayOfFields[3].name":"CpuUsageAverage"}},{"class":"DateFormatter","value":"${event.commonEventHeader.eventId}","fromFormat":"#ms","fromTz":"#ms","toField":"event.commonEventHeader.eventId","toFormat":"yyyyMMddHHmmssSSS","toTz":"GMT"}]},{"phase":"vFoiNokRunPhase","processors":[{"class":"Clear","fields":["data","file"]},{"class":"LogText","logLevel":"INFO","logText":"Finished-PM-FOIEvent-parsing"},{"class":"LogEvent","title":"PM-FOIEvent-Received-Output"},{"class":"RunPhase","phase":"foiEventToDmaapPhase"}]}]}'
42 elementType:
43 get_input: elementType
44 isSelfServeComponent: 'True'
45 mappingType:
46 get_input: mappingType
47 measurementsForVfScalingFields.measurementsForVfScalingVersion:
48 get_input: measurementsForVfScalingFields.measurementsForVfScalingVersion
49 phases.docker_map.phaseName:
50 get_input: phases.docker_map.phaseName
51 services_calls: {}
52 streams_publishes:
53 DCAE-VES-PM-EVENT:
54 aaf_password:
55 get_input: topic1_aaf_password
56 aaf_username:
57 get_input: topic1_aaf_username
58 dmaap_info: <<topic1_n.1519416493404.5>>
59 type: message_router
60 streams_subscribes:
61 DCAE_PM_DATA_C_M:
62 dmaap_info: <<feed_n.1519416394214.2>>
63 type: data_router
64 useDtiConfig: 'False'
65 docker_config:
66 healthcheck:
67 interval: 300s
68 script: /opt/app/vec/bin/common/HealthCheck_DockerMap.sh
69 timeout: 15s
70 type: docker
71 volumes:
72 - container:
73 bind: /opt/app/dcae-certificate
74 host:
75 path: /opt/app/dcae-certificate
76 - container:
77 bind: /opt/app/dmd/log/AGENT
78 host:
79 path: /opt/logs/DCAE/dockermap/dmd/AGENT
80 - container:
81 bind: /opt/app/dmd/log/WATCHER
82 host:
83 path: /opt/logs/DCAE/dockermap/dmd/WATCHER
84 - container:
85 bind: /opt/app/vec/logs/DCAE
86 host:
87 path: /opt/logs/DCAE/dockermap/dockermap-logs
88 - container:
89 bind: /opt/app/vec/archive/data
90 host:
91 path: /opt/data/DCAE/dockermap/dockermap-archive
92 image: dockercentral.it.att.com:5100/com.att.dcae.controller/dcae-controller-dockermap:18.02-004
93 location_id:
94 get_input: dcae_service_location
95 service_component_type: dcae.collectors.docker.map.pm
96 streams_publishes:
97 - client_role:
98 get_input: topic1_client_role
99 location:
100 get_input: dcae_service_location
101 name: topic1_n.1519416493404.5
102 type: message_router
103 streams_subscribes:
104 - location:
105 get_input: dcae_service_location
106 name: feed_n.1519416394214.2
107 type: data_router
108 relationships:
109 - target: docker_host_host
110 type: dcae.relationships.component_contained_in
111 - target: feed_n.1519416394214.2
112 type: dcae.relationships.subscribe_to_files
113 - target: topic1_n.1519416493404.5
114 type: dcae.relationships.publish_events
115 docker_host_host:
116 type: dcae.nodes.SelectedDockerHost
117 properties:
118 docker_host_override:
119 get_input: docker_host_override
120 location_id:
121 get_input: dcae_service_location
122 feed_n.1519416394214.2:
123 type: dcae.nodes.ExistingFeed
124 properties:
125 feed_id:
126 get_input: feed_id
127 topic1_n.1519416493404.5:
128 type: dcae.nodes.Topic
129 properties:
130 topic_name: DCAE-VES-PM-EVENT-v1