# mulesoft-chargeback : This repository is created as Proof of Concept to prove out the chargeback model for MuleSoft Platform
Let's get Started !!!!
Let's take a fictitious use where we have two clients or groups in a company, Ecommerce and Mobile apps call respective experience api in mulesoft platform to submit/get an order to/from a common backend system (eg. SAP or OMS) . Mobile App calls Mobile Order EAPI ( Experience API ) and Ecommerce App calls Ecom Order EAPI (Experience API) to submit/get or perform crud operations. Each of experience API in turn calls common Order SAPI (system API) to perform respective crud operation
In our prototype app we used the mule4 correlation ID configuration to pass the correlation ID down with a prefix of the calling group (e.g, mobile or ecom). This ID is logged with the standard JSON Logger to Splunk. An OOB platform API can pull the full set of application and core configurations to compute the bills
Download all application source jar files and import in Anypoint Studio (version 7)
- Download and Import order-sapi.jar file in Anypoint Studio
- Download and Import ecommerce-order-eapi.jar file in Anypoint Studio
- Download and Import mobile-order-eapi.jar file in Anypoint Studio
Make sure you are able to build and run applications in your studion or local server
- order sapi is default running on url : localhost:8081/api/orders/123
- ecommerce eapi is default running on url : localhost:8082/ecomapi/orders/123
- mobile eapi is default running on url : localhost:8083/mobileapi/orders/123
https://dev.splunk.com/enterprise/dev_license
- Set up Http and TCP Event Collectors
-
Dowload and Import app_vcore.json file ( this json file contains app level app cores utilized, remaining and total for group and environment). This data can be created using cloud hub api to get cores for each app in an environment
-
Create and Save Table View
-
Create Dashboard and Configure