![]() |
Consumption Analytics Documentation |
Converts an unknown resource to a well known resource with the option of preserving the original resource name in a new identifier. This processor might encounter a resource conflict when renaming the unknown resource. If this occurs, a new record is created containing all identifiers from the original record along with the renamed resource and, optionally, one new identifier. The original unknown resource is no longer present in the data either way. When strict processing is enabled, a transform exception occurs if a record does not have any resource matching the given pattern.
<bean class=”com.cloudcruiser.batch.transform.NormalizeUnknownResources”>
<batch:step id="transform" next="charge">
<batch:tasklet>
<bean class="com.cloudcruiser.batch.CCRecordTransformTasklet">
<property name="processors">
<list>
<bean class="com.cloudcruiser.batch.transform.NormalizeUnknownResources">
<property name="active" value="true"/>
<property name="resourcePattern" value="network\.(.*IN.*)"/>
<property name="targetResource" value="internalio"/>
<property name="targetIdentifier" value="network"/>
<property name="exceptionProcessing" value="true"/>
<property name="strict" value="true"/>
</bean>
</list>
</property>
</bean>
</batch:tasklet>
</batch:step>
(c) Copyright 2017-2020 Hewlett Packard Enterprise Development LP