...
...
...
Table of Contents |
---|
...
In addition to the standard resource metrics offered by Abiquo, you can define your own custom accounting resource metrics. These metrics can be defined from existing data in the Abiquo database or from another source. For example, if you have access of OpenFlow or NetFlow network data for your Abiquo environment, you can import consolidated network data into a table/schema that is accessible to the Abiquo database. Then you can create a custom resource definition so that Abiquo will reference the network data and create network usage records in the Abiquo accounting_event_detail table. This will extend the current accounting system to account for network bandwidth usage.
...
Any custom resources defined are processed when the above ‘core’ resources have been processed for a given account period. At that point, the accounting process looks for a well-known custom stored procedure, which if found, is invoked with details of the account period being processed.
The CUSTOM_GENERATE_ACCOUNTING_DATA_V1 Stored Procedure
The CUSTOM_GENERATE_ACCOUNTING_DATA_V1 stored procedure is the entry point for
generating custom accounting data. The procedure should be defined as follows:
...