![]() |
Consumption Analytics Documentation |
Fills in missing usage start or usage end depending on configuration.
NOTE: For event data that contains the future state of resources, it is recommended to use the
ConvertEventsToAllocations
transform instead of
ConvertSnapshotToPeriod
. For example, a modify event that contains information on resources after the modification took place.
<bean class=”com.cloudcruiser.batch.transform.ConvertSnapshotToPeriod”>
<property name="keyIdentifiers" value="keyIdentifiers " /> |
|
Sets one or more identifier names used to correlate records. Ideally, this would only be |
|
<property name="stickyIdentifiers" value="false" /> |
|
Sets a flag to control adding missing identifiers from records already processed for same key values. Set to |
|
<property name="stickyResources" value="false" /> |
|
Sets a flag to control adding missing resources from records already processed for same key values. Set to |
|
<property name="useBeginState" value="true" /> |
|
Sets which snapshot record for a period dictates state for that period. By default, the ending snapshot is assumed to hold state that applies to the period. Set to For more information, see See useBeginState Table.. |
The following table compares the default behavior with
convertSnapshotToPeriod
’s
useBeginState
property is set to
true
.
The period of interest is assumed to be the select date for the job (24 hours). If no provision record exists in the data for a particular set of key identifiers, then resources are assumed to have existed at start of day (00:00:00).
Resources are only assumed to have existed up to the last snapshot in the records processed. Only the allocations that are determined to have existed on select date are accounted for.
The following sample XML piece converts service requests to subscription periods, where provider correlation records should be excluded from this transform because their start times may throw off period resolution intended for requests:
<bean class="com.cloudcruiser.batch.transform.ConvertSnapshotToPeriod">
<property name="active" value="true" />
<property name="keyIdentifiers" value="id" />
<property name="useBeginState" value="true" />
</bean>
(c) Copyright 2017-2020 Hewlett Packard Enterprise Development LP