-
Notifications
You must be signed in to change notification settings - Fork 86
Create a Resource Provider
Abacus provides example implementations of the provisioning and account plugins for demo and test purposes. Abacus Integrators must replace these implementations with custom code to satisfy the requirements, processes and product standards in their organization.
Check with your Abacus Integrator on plans creation.
If you want to experiment with the example provisioning and account plugins for local development, follow the steps below:
-
add the metering, rating and pricing plan files under plans directory. If new files are created, they should be added to git, otherwise they will be automatically removed during rebuild by
git clean -df -
change the plan mappings for the three plans
-
rebuild the project with:
cd ~/workspace/cf-abacus npm run rebuild npm start
The example provisioning plugin will return 404 with "x-app-name":"abacus-provisioning-plugin" in case it cannot find a plan by resource_type and provisioning plan_id:
{
"message": {
"statusCode": 404,
"headers": {
... headers ...
"x-app-name": "abacus-provisioning-plugin",
... more headers ...
}
},
"statusCode": 404,
"headers": {
... headers ...
"x-app-name": "abacus-provisioning-plugin",
... more headers ...
}
}
Please check the network issues section for hints on how to implement the network connectivity to Abacus.
In order to create a Resource provider, the following Abacus entities should be defined:
First the measures should be defined, then the metrics, and finally, decide on what type of plans to use. Once all of the above is defined, the plan can be created.
To update the aggregated values Abacus uses formulas defined in a "plan". We reference to the plan, using the plan_id and resource_instance_id.
We need to develop and upload the plan to Abacus, so let's start by creating our first plan ...
| << Under the Hood | Create a Plan >> |
|---|
ABOUT | RESOURCE PROVIDER | ABACUS INTEGRATOR
*Abacus icon made by Freepik from www.flaticon.com
