Cloud Cruiser became HPE Consumption Analytics on Nov. 1st. You'll still see the old name in places while we update this site.

 

 

Consumption Analytics Documentation

Home > Cloud Cruiser 4 > Administering > Jobs > Disabling and enabling the charge step in jobs

Disabling and enabling the charge step in jobs

Table of contents
No headers

HPE Consumption Analytics Portal includes an option to toggle whether charge jobs run. This enables you to test your HPE Consumption Analytics Portal implementation as you are working, without generating charge records that would otherwise need to be removed each time you run an ETL workbook.

To ensure optimum database performance, we recommend you disable automatic charge and create a batch job to run during off-peak hours. For more information about scheduling jobs, see Running jobs from the Cloud Cruiser Portal.

To disable or enable charge jobs

  1. Navigate to Administration > Configuration > General > Billing.
  2. Toggle Charge Enabled to Yes if you want charge jobs enabled, or No if you want charge jobs disabled.
  3. Click Save.

If you want to override that global setting for any specific job, open your job's XML file and set the ignoreChargeEnabledFlag parameter to true. For example:

​<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:batch="http://www.springframework.org/schema/batch"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
                           http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch-2.1.xsd">
    <bean id="processInfo" class="com.cloudcruiser.batch.ProcessInfo">
        <property name="processName" value="charge" />
    </bean>
    <batch:job id="Charge" parent="ccjob">
        <batch:step id="charge">
            <batch:tasklet>
                <bean class="com.cloudcruiser.batch.charge.ChargeTasklet">
                    <property name="active" value="true" />
                    
                    <!-- if true, include monthly charge; otherwise, skip them -->
                    <property name="processMonthlyCharges" value="true" />
                    <!-- if true, will always run charge, even if the "Charge Enabled" configuration  -->
                    <!-- is set to "no." Default value is false -->
                    <property name="ignoreChargeEnabledFlag" value="true" />
                </bean>
            </batch:tasklet>
        </batch:step>
    </batch:job>
</beans>
Last modified

Tags

Classifications

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