Home > Cloud Cruiser 3 > Setting Up Collection > Native collectors > HP Cloud Service Automation > Time and date

Time and date

Table of contents
No headers

Each request contains all the current pricing and options selected along with a start time. It is Cloud Cruiser’s task to figure out the end time for each. Another request (modification) on the same subscription, or a cancellation request, will terminate a previous request. Otherwise, the request is assumed to still be in effect.

The convertSnapshotToPeriod transform fills in missing usage start or usage end, depending on configuration.

The following sample XML piece converts service requests to subscription periods:

<bean class="com.cloudcruiser.batch.transform.ConvertSnapshotToPeriod">
  <property name="active" value="true" />
  <property name="keyIdentifiers" value="id" />
  <property name="useBeginState" value="true" />
</bean>

The XPathOutputMapping bean can be used to specify the ending date, as in the following XML example:

<bean class="com.cloudcruiser.batch.collect.XPathOutputMapping">
  <property name="xpathExpression" value="completedOn[string‐length()=29]" />
  <property name="accumulateOnly" value="true" />
  <property name="outputs">
  <list>
  ...
</bean>
Last modified

Tags

This page has no custom tags.

Classifications

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