Please ensure you take snapshots before making changes
There are 2 options , the preferred option would be option 1, but please find more details on both options below:
- Option 1: Change "timeZoneUsedInMeteringCalculation" property in $ALIVE_BASE/user/conf/analytics/advanced.properties to your chosen timezone and then use the /api/chargeback/bills public API. For below example we are setting the pricing engine timezone to use Europe/Tallinn
-
- Open ssh as root to Aria Operations primary node
- Open $ALIVE_BASE/user/conf/analytics/advanced.properties file
- Add in the property timeZoneUsedInMeteringCalculation=Europe/Tallinn
- Restart the analytics service via "service vmware-vcops restart analytics" command
- Try generate the bill again using /api/chargeback/bills public API
Note if you upgrade to a later version of Aria Operations that you check $ALIVE_BASE/user/conf/analytics/advanced.properties is still in tact, you may need to update this file again with your chosen timezone again.
- Option 2: Use /internal/metering/price with the internal API instead of the public API this will consider the startTime and endTime and it will provide the price and usage metrics in response. However internal APIs may not be supported in Future Releases.

The preferred option to apply would be option 1.