Consumption Analytics Documentation

Home > Documentation for older versions > Cloud Cruiser 3 > Batch XML Reference > Cisco collectors > IACSnapshotCollector


Table of contents
No headers

Collects current service item subscriptions as individual XML documents for mapping to CC-Record content as defined by IACSnapshotFeedConfig . Data is requested from the Service Portal REST API.


<bean class=””>


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

Sets the connection information necessary to access the REST API of a Cisco Service Portal server via HTTP or HTTPS.

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

Sets the feed configuration for this collector. The feed configuration maps XML data per subscription into CC-Record content. A subscription filter can be set to restrict the scope of subscriptions processed.

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

When true , this enables the printing of HTTP request and response contents for debugging. The default is false .

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

Sets URI for HTTP proxy address. For example:

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

When true , this enables the printing of API results in XML format for debugging. The default is false .

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

Sets a resource for writing out each document prior to processing to assist with data mapping and debugging. This should not be left active in a production environment.

The resulting file content may need some attention before it is compatible with an XML editor since there will be multiple root nodes. It is recommended to pull out documents of interest into a separate file for inspection using XML tools. Namespace definitions are not included.

Spring Batch XML Example

<batch:step id="collect">
    <bean class="com.cloudcruiser.batch.CCRecordCollectTasklet">
      <property name="active" value="true" />
      <property name="feedName" value="default" />
      <!-- unique feed file per execution -->
      <property name="singleFeedPerDay" value="false" />
      <property name="collector">
        <bean class="">
          <property name="dataSourceConfig" ref="dataSource" />
          <property name="feedConfig" ref="feedConfig" />
          <property name="dumpMessages" value="false" />
          <property name="printEntityXML" value="false" />
Last modified


This page has no custom tags.


This page has no classifications.

 (c) Copyright 2017-2020 Hewlett Packard Enterprise Development LP