Cloud Cruiser became HPE Consumption Analytics on Nov. 1st. You'll still see the old name in places while we update this site.

 

 

Consumption Analytics Documentation

Home > Cloud Cruiser 3 > Batch XML Reference > HP collectors > HPIOFeedConfig

HPIOFeedConfig

Table of contents
No headers

A feed configuration bean for use with the HPIOCollector that extends the basic XmlFeedConfig to provide an option for inclusion of subscription instance data.

Class

<bean class=”com.cloudcruiser.batch.collect.hp.HPIOFeedConfig”>

Properties

<property name="dataSourceConfig" value="dataSourceConfig
" />

Sets the connection information necessary to access the API of an HP IO server via HTTP or HTTPS.

<property name="dumpMessages" value="false" />

Sets a flag to enable or disable printing HTTP request and response contents. This is used for debugging.

<property name="feedConfig" ref="feedConfig
" />

Sets the feed configuration for this collector. The feed configuration defines the IO entity to collect and maps results into CC-Record content.

<property name="printEntityXML" value="false" />

Sets a flag to enable or disable printing API results in XML format. The default is false .

Spring Batch XML Examples

<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>
Last modified

Tags

This page has no custom tags.

Classifications

This page has no classifications.
© Copyright 2018 Hewlett Packard Enterprise Development LP