| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| procedures:new_customer_creation [2026/02/25 14:27] – sysadm | procedures:new_customer_creation [2026/02/26 14:43] (current) – gemma.coppeta |
|---|
| * The customer's **name** must be added to the [[https://grafana.ccaas.becloudsolutions.com/d/cedg4a4h1qxa8f/voice-balance-monitor?orgId=1&from=now-6h&to=now&timezone=browser | Voice balance dashboard]] on Grafana. | * The customer's **name** must be added to the [[https://grafana.ccaas.becloudsolutions.com/d/cedg4a4h1qxa8f/voice-balance-monitor?orgId=1&from=now-6h&to=now&timezone=browser | Voice balance dashboard]] on Grafana. |
| * An [[https://grafana.ccaas.becloudsolutions.com/alerting/list |Alert rule]] on Grafana must be created for the new customer. | * An [[https://grafana.ccaas.becloudsolutions.com/alerting/list |Alert rule]] on Grafana must be created for the new customer. |
| * The customer's **name** must be added to the Monitor database in "customers" and "recharges" in the "Monitoring" machine . | * The customer's **name** must be added to the Monitor database. |
| |
| ===== New tenant creation ===== | ===== New tenant creation ===== |
| To create a new {{0:logobecloud.png?30}}tenant you can follow [this guide] | To create a new {{0:logobecloud.png?30}}tenant you can follow the [[new_tenant_creation]] guide. |
| |
| ===== IT Billing ===== | ===== IT Billing ===== |
| ===== BeCloud's Git ===== | ===== BeCloud's Git ===== |
| Once you open {{0:logobecloud.png?30}}[[https://git.ccaas.becloudsolutions.com/BeCloud/CDRs | this link]], you will find yourself in the CDRs repository. \\ | Once you open {{0:logobecloud.png?30}}[[https://git.ccaas.becloudsolutions.com/BeCloud/CDRs | this link]], you will find yourself in the CDRs repository. \\ |
| * Click on [[https://git.ccaas.becloudsolutions.com/BeCloud/CDRs/src/branch/main/numbers.csv | numbers.csv]], then click on the {{0:editgitea.png?25}} //edit// button and add one or more lines with the **number**, customer **name** and the **rate** applied to the number. | * Click on [[https://git.ccaas.becloudsolutions.com/BeCloud/CDRs/src/branch/main/numbers.csv | numbers.csv]], then click on the {{0:editgitea.png?25}} //edit// button and add one or more lines with the **number**, customer's **name** and the **rate** applied to the number. |
| * Click on [[https://git.ccaas.becloudsolutions.com/BeCloud/CDRs/src/branch/main/cdrs.py | cdrs.py]], then click the {{0:editgitea.png?25}} //edit// button and create the **Customer object** with the customer **name** and all **zeros** in the customers array. The zeros will be filled in during the course of the code and represent the inbound/outbound cost for each carrier. \\ Follow this example: <code python>customers = [ | * Click on [[https://git.ccaas.becloudsolutions.com/BeCloud/CDRs/src/branch/main/cdrs.py | cdrs.py]], then click the {{0:editgitea.png?25}} //edit// button and create the **Customer object** with the customer's **name** and all **zeros** in the customers array. The zeros will be filled in during the course of the code and represent the inbound/outbound cost for each carrier. \\ Follow this example: <code python>customers = [ |
| Customer("Name",0,0,0,0,0,0,0,0,0,0,0,0), | Customer("Name",0,0,0,0,0,0,0,0,0,0,0,0), |
| ... | ... |
| ] </code> | ] </code> |
| * Click on the [[https://git.ccaas.becloudsolutions.com/BeCloud/CDRs/src/branch/main/Monthly/ | Monthly folder]] and on [[https://git.ccaas.becloudsolutions.com/BeCloud/CDRs/src/branch/main/Monthly/monthlyResults.py | monthlyResults.py]], then click the {{0:editgitea.png?25}} //edit// button and create the **Result object** with the customer **name**, the name of the **carrier** in **__all caps__** and all **zeros** in the results array. The zeros will be filled in during the code and represent the inbound/outbound cost of BeCloud and the customer. \\ Follow this example: <code python>results = [ | * Click on the [[https://git.ccaas.becloudsolutions.com/BeCloud/CDRs/src/branch/main/Monthly/ | Monthly folder]] and on [[https://git.ccaas.becloudsolutions.com/BeCloud/CDRs/src/branch/main/Monthly/monthlyResults.py | monthlyResults.py]], then click the {{0:editgitea.png?25}} //edit// button and create the **Result object** with the customer's **name**, the name of the **carrier** in **__all caps__** and all **zeros** in the results array. The zeros will be filled in during the code and represent the inbound/outbound cost of BeCloud and the customer. \\ Follow this example: <code python>results = [ |
| Result("Name","CARRIER",0,0,0,0), | Result("Name","CARRIER",0,0,0,0), |
| ... | ... |
| |
| \\ | \\ |
| Once you open {{0:logobecloud.png?30}}[[https://git.ccaas.becloudsolutions.com/BeCloud/Recharges | this link]], you will find yourself in the Recharges repository. \\ Click on [[https://git.ccaas.becloudsolutions.com/BeCloud/Recharges/src/branch/main/recharges.php | recharges.php]], then click the {{0:editgitea.png?25}} //edit// button and add the customer **name** in the customers array. | Once you open {{0:logobecloud.png?30}}[[https://git.ccaas.becloudsolutions.com/BeCloud/Recharges | this link]], you will find yourself in the Recharges repository. \\ Click on [[https://git.ccaas.becloudsolutions.com/BeCloud/Recharges/src/branch/main/recharges.php | recharges.php]], then click the {{0:editgitea.png?25}} //edit// button and add the customer's **name** in the customers array. |
| |
| ===== Grafana ===== | ===== Grafana ===== |
| |
| * Once you open {{0:grafana.png?50}}[[https://grafana.ccaas.becloudsolutions.com/alerting/list| this link]], you will find yourself in the Alert rules list and you have to look to the Balances_monitor. \\ To add a new customer, you have to click the //more// button of an existing alert rule and click on //duplicate// \\ {{0:duplicatealertrulesgrafana.png}} \\ Once you have created the copy, you will need to edit it by **replacing** the field //title// and the value of the column //customer// with the name of the new customer. \\ Here's an example with the customer //"Alidays"//: \\ {{0:titlealertrulesgrafana.png?320}} \\ {{0:customergrafana.png}} \\ Now you can **save** and exit the edit mode. | * Once you open {{0:grafana.png?50}}[[https://grafana.ccaas.becloudsolutions.com/alerting/list| this link]], you will find yourself in the Alert rules list and you have to look to the Balances_monitor. \\ To add a new customer, you have to click the //more// button of an existing alert rule and click on //duplicate// \\ {{0:duplicatealertrulesgrafana.png}} \\ Once you have created the copy, you will need to edit it by **replacing** the field //title// and the value of the column //customer// with the name of the new customer. \\ Here's an example with the customer //"Alidays"//: \\ {{0:titlealertrulesgrafana.png?320}} \\ {{0:customergrafana.png}} \\ Now you can **save** and exit the edit mode. |
| | |
| | |
| | ===== Database ===== |
| | You must add the customer's name to the **“recharges”** and **“customers”** tables in the **Monitor** database of the **Monitoring** machine. |
| |