![]() |
Consumption Analytics Documentation |
A feed configuration bean for use with the
HPIOCollector
that extends the basic
XmlFeedConfig
to provide an option for inclusion of subscription instance data.
<bean class=”com.cloudcruiser.batch.collect.hp.HPIOFeedConfig”>
<bean id="feedConfig" class="com.cloudcruiser.batch.collect.hp.HPIOFeedConfig">
<!-- no outputs will result in default collection mappings -->
</bean>
<bean id="feedConfig" class="com.cloudcruiser.batch.collect.hp.HPIOFeedConfig">
<property name="outputs">
<list>
<bean class="com.cloudcruiser.batch.collect.OutputField">
<property name="cctype" value="IDENTIFIER" />
<property name="input" value="name" />
<property name="label" value="ServiceName" />
</bean>
<bean class="com.cloudcruiser.batch.collect.OutputField">
<property name="cctype" value="IDENTIFIER" />
<property name="input" value="billingCode" />
<property name="label" value="BillingCode" />
</bean>
<bean class="com.cloudcruiser.batch.collect.OutputField">
<property name="cctype" value="IDENTIFIER" />
<property name="input" value="ownerName" />
<property name="label" value="Owner" />
</bean>
<!-- example using template 'fixed cost' instead of aggregate service cost -->
<bean class="com.cloudcruiser.batch.collect.OutputField">
<property name="cctype" value="RESOURCE" />
<property name="labelInput" value="basedOnTemplate" />
<property name="costInput" value="fixedCost.value" />
<property name="value" value="1"/>
</bean>
</list>
</property>
<!-- example of XPath output mapping for one-to-many subcomponent relations -->
<property name="xpathOutputs">
<list>
<bean class="com.cloudcruiser.batch.collect.XPathOutputMapping">
<property name="xpathExpression" value="logicalServerGroups/logicalServers" />
<property name="outputs">
<list>
<bean class="com.cloudcruiser.batch.collect.OutputField">
<property name="cctype" value="IDENTIFIER" />
<property name="input" value="name" />
<property name="label" value="ServerName" />
</bean>
<bean class="com.cloudcruiser.batch.collect.OutputField">
<property name="cctype" value="IDENTIFIER" />
<property name="input" value="hostname" />
<property name="label" value="HostName" />
</bean>
<!-- nested element (does not support more than one) -->
<bean class="com.cloudcruiser.batch.collect.OutputField">
<property name="cctype" value="IDENTIFIER" />
<property name="input" value="logicalNetworkInterfaces.logicalIPAddress.address" />
<property name="label" value="IPAddress" />
</bean>
<!-- pass through cost for static resource -->
<bean class="com.cloudcruiser.batch.collect.OutputField">
<property name="cctype" value="RESOURCE" />
<property name="label" value="LogicalServer" />
<property name="cost" value="cost.value" />
<property name="value" value="1" />
</bean>
</list>
</property>
</bean>
</list>
</property>
</bean>
(c) Copyright 2017-2020 Hewlett Packard Enterprise Development LP