13.11 Usage Record Property Defaults

It is possible to set defaults for usage record properties when they are not specified in the usage data for a charge, reservation or quote. There are two cases which must be considered -- when the property has an object associated with it and when the property does not.

If a property does not have an object associated with it, simply set the DefaultValue attribute for the property's UsageRecord Attribute object to the desired value.

Example 14. Setting a system-wide simple default class of batch for usage functions
$ goldsh Attribute Modify Object==UsageRecord Name==Class DefaultValue=batch
Successfully modified 1 attribute

If a property does have an object associated with it, you will need to both set the DefaultValue attribute for the property's UsageRecord Attribute object to the desired value AND set the DefaultValue attribute for the corresponding object to the desired value.

Example 15. Setting a system-wide simple default machine of cloud for usage functions
$ goldsh Attribute Modify Object==UsageRecord Name==Machine DefaultValue=cloud
Successfully modified 1 attribute
					
$ goldsh Attribute Modify Object==UsageRecord Name==Machine DefaultValue=cloud
Successfully modified 1 attribute	

See Global Object-based Defaults for more information about setting default values for objects. See Local Attribute-based Defaults for more information about setting default values for attributes.

(Undefined variable: MyVariables.!CopyrightInfo!)