Back to top
 
 
 

Declaring Discrete Usage Type

Usage type has an optional attribute, discrete. The possible values are either "true" or "false". If the value is not defined, it is set to "false" by default and the usage type will be "metered". While creating a product, usage type of same kind (either metered or discrete) can be combined or excluded.
<UsageType name="DISCRETE_USAGE_TYPE" uom="discrete_uom" discrete="true"/>  
The unit of measure (uom) of a UsageType has an optional attribute, discrete. The possible values are either "true" or "false". If the value is not defined, it is set to "false" by default. If the uom has the discrete attribute set to "true", it will not have any scales. The scales will be ignored, If specified.
Note: A uom can be either discrete or metered but not both.

The UsageType and uom must have same value for the discrete attribute, if specified. The values of the discrete attribute of UsageType and the corresponding uom are compared.

The following is a valid example of the discrete attribute values specified for the UsageType and uom:
<UsageType name="DISCRETE_USAGE_TYPE" uom="discrete_uom" discrete="true"/>  .  .  .  .  <uom raw="discrete_uom" discrete="true"/>  

Invalid declaration of discrete usage type

The connector will not get registered and the service will be down if
  • a UsageType has a different value for the discrete attribute from the corresponding uom. The following are invalid examples of the discrete attribute values specified for the UsageType and uom:
    <UsageType name="DISCRETE_USAGE_TYPE" uom="discrete_uom" discrete="true"/>  .  .  .  .  <uom raw="discrete_uom" discrete="false"/>  
    <UsageType name="DISCRETE_USAGE_TYPE" uom="discrete_uom"/>  .  .  .  .  <uom raw="discrete_uom" discrete="true"/>  
    <UsageType name="DISCRETE_USAGE_TYPE_1" uom="discrete_uom" discrete="true"/>  <UsageType name="DISCRETE_USAGE_TYPE_2" uom="discrete_uom"/>  .  .  .  .  <uom raw="discrete_uom" discrete="true"/>  
  • If the discrete attribute is set to true for an existing UsageType. Refer the following example.
    <UsageType name="ROOT_VOLUME" uom="Byte-Hours" discrete="true">  
 

Comments