list_charge_item_candidates

Lists the charge items that can be registered to Chargeback.

Format

emcli  list_charge_item_candidates
        -target_type=target_type
        -source_data_type=<metric|config|property>
        [-target_name=target_name]
        [-config_name=config_name]
        [-config_data_source=target_name]
        [-all]
[ ]  indicates that the parameter is optional

Options

  • target_name

    Name of a target type.

  • source_data_type

    Type of source data. Valid values are metric, config, and property.

  • target_name

    If specified, metering and charge data are retrieved only for the named target. If you do not specify a valid target name, or if the specified target has not been enabled, then no data is generated. If this option is not specified, All targets for the specified target-type are included. Required if source_data_type=config.

  • config_name

    Name of a configuration. Required if source_data_type=config.

  • config_data_source

    Data source of the configuration. Required if source_data_type=config.

  • all

    Applies only when source_date=metric. Displays all items, including out-of-box metrics of target type. Without this option, only metric extensions are displayed.

Examples

Example 1

This example lists the metric extensions created for the Oracle Database target type:

emcli list_charge_item_candidates
        -target_type="oracle_database"
        -source_data_type="metric"

Example 2

This example lists the configuration items of the myCustomCCS configuration for an Oracle Database target named myDatabase:

emcli list_charge_item_candidates
        -target_type="oracle_database"
        -source_data_type="config"
        -target_name="myDatabase" 
        -config_name="myCustomCCS"
        -config_data_source="CCSDataSource"