Consumption Analytics Documentation

Home > Documentation for older versions > 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" />

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


This page has no custom tags.


This page has no classifications.

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