![]() |
Consumption Analytics Documentation |
Cloud Cruiser is very flexible in its design for customer accounting periods. Any customer in any level of the account structure hierarchy can have a different accounting period. One might start on the 5th of the month and go to the 4th of the next month, while another starts on the 1st and runs to the end of the month, while still another runs from the 15th of one month to the 14th of the next. Therefore, based on the selection date when the alert_process.xml
job runs, different accounts could be in different accounting periods.
The alert task can be run two modes: Default and Specific Accounting Period . Each mode handles accounting periods differently.
In the Default mode, a database query for every customer that has an alert defined will be executed. First the database is queried for all alert definitions. Then for each definition, the appropriate accounting period is determined (based on the selection date and the customer’s accounting day) and then the database is queried to aggregate the usage for that period for that customer. Alert levels are then checked and the appropriate actions taken.
This is the most database intensive mode, but it is also the most precise.
In the Specific Accounting Period mode, the user specifies a specific accounting period and year through the alert_process.xml
file. Then one database aggregation query is issued for the specific accounting period, regardless if it is the current customers accounting period (the customer’s accounting day is not used in this mode).
For example, for a specific accounting period, you can have the following:
<property name="accountingYear" value="2012"/> <property name="accountingPeriod" value="07"/>
If you specify an accounting period, any date selection made when running the job will be ignored.
If you have customers with different accounting periods, the results might not be what you expect. Based on this data
Customer | Accounting Day |
---|---|
A-AA | 1 |
A-BB | 10 |
A-CC | 14 |
With a selection date of 7/13/2012, the following processing will occur in Default mode:
With a selection date of 7/13/2012, using an accounting period 07 and accounting year 2012, the following processing will occur in Specific Accounting Period mode:
The following default options are typically used in the alert_process.xml
file:
Argument | Value | Default |
---|---|---|
|
| N/A. Used for Specific Accounting Period processing mode. |
|
| N/A. Used for Specific Accounting Period processing mode. |
|
|
|
|
|
|
|
|
|
|
|
|
(c) Copyright 2017-2020 Hewlett Packard Enterprise Development LP