<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Aura – </title>
    <link>/docs/developers-workspace/monitoring/billing-module/</link>
    <description>Recent content on Aura</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    
	  <atom:link href="/docs/developers-workspace/monitoring/billing-module/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Docs: </title>
      <link>/docs/developers-workspace/monitoring/billing-module/operation/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/developers-workspace/monitoring/billing-module/operation/</guid>
      <description>
        
        
        &lt;h1 id=&#34;aura-billing-module-operation&#34;&gt;Aura Billing Module operation&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;This document contains:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;An overview of &lt;strong&gt;Aura Billing Module&lt;/strong&gt; functional operation&lt;/li&gt;
&lt;li&gt;Tasks to be executed by OBs to bring &lt;strong&gt;Aura Billing Module&lt;/strong&gt; into use&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;

&lt;h2 id=&#34;aura-billing-module-operational-flowchart&#34;&gt;Aura Billing Module operational flowchart&lt;/h2&gt;
&lt;p&gt;&lt;em&gt;Figure 1&lt;/em&gt; schematically shows how &lt;strong&gt;Aura Billing Module&lt;/strong&gt; operates, where three different instances come into play:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Aura: OB managed environment&lt;/li&gt;
&lt;li&gt;Aura: Global Team managed environment&lt;/li&gt;
&lt;li&gt;Kernel&lt;/li&gt;
&lt;/ul&gt;
&lt;p align=&#34;center&#34;&gt;  
  &lt;img width=&#34;1000&#34; height=&#34;1000&#34; src=&#34;../../../../images/monitoring/aura-analytics/aura-billing-module-operation.png&#34;&gt;&lt;br&gt;  
  &lt;i&gt;Figure 1. Aura Billing Module operation &lt;/i&gt;  
&lt;/p&gt; 
&lt;p&gt;The operational processes executed by the &lt;strong&gt;Aura Billing Module&lt;/strong&gt; are outlined below. In each step, the tasks that must be carried out by the OBs in order to bring it into use, are described.&lt;/p&gt;
&lt;h3 id=&#34;1-data-generation&#34;&gt;1. Data generation&lt;/h3&gt;
&lt;p&gt;This task takes place in Aura&amp;rsquo;s OB managed environment.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Aura components automatically generate logs every time a user/service interacts with Aura in local environment.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;These logs are pre-processed, cleaned and converted into datasets, in Avro format.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;These are the required Avro-formatted datasets for the &lt;strong&gt;Aura Billing Module&lt;/strong&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../docs/components/kpi-entities/aura-entities-definition/entities-avro-format/audit/&#34;&gt;Aura_Audit&lt;/a&gt;, that stores the minimum information needed for generating the &lt;strong&gt;Liceo&lt;/strong&gt; invoices.​&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../docs/components/kpi-entities/aura-entities-definition/entities-avro-format/dimensions/&#34;&gt;Aura dimensional entities&lt;/a&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;D_Aura_App schema definition: List of possible Apps defined in Aura.&lt;/li&gt;
&lt;li&gt;D_Aura_Channel: List of possible channels defined in Aura.&lt;/li&gt;
&lt;li&gt;D_Aura_Component: List of possible components defined in Aura.&lt;/li&gt;
&lt;li&gt;D_Aura_Preset: List of possible presets defined in Aura.&lt;/li&gt;
&lt;li&gt;D_Aura_Recognizer: List of possible recognizers defined by Aura.&lt;/li&gt;
&lt;li&gt;D_Aura_Skill: List of possible skills defined in Aura.&lt;br&gt;
&lt;br&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../docs/components/kpi-entities/aura-entities-definition/entities-avro-format/gateway-message/&#34;&gt;Aura Gateway Message&lt;/a&gt;: summary of Aura interactions handled by &lt;em&gt;&lt;strong&gt;aura-gateway-api&lt;/strong&gt;&lt;/em&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;2-data-publication-in-kernel&#34;&gt;2. Data publication in Kernel&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;The latest versions of the previous Avro-formatted datasets must be published into &lt;strong&gt;Kernel&lt;/strong&gt; productive environment by the &lt;strong&gt;Kernel&lt;/strong&gt; team.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&#34;td-card card border me-4&#34;&gt;
&lt;div class=&#34;card-header&#34;&gt;
      &lt;strong&gt;Tasks for OBs&lt;/strong&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        
&lt;i class=&#34;fa-solid fa-square-check fa-xl&#34; style=&#34;color: #1d9124;&#34;&gt;&lt;/i&gt; &lt;b&gt;2.1.&lt;/b&gt; Ask the &lt;b&gt;Kernel&lt;/b&gt; Team to publish the datasets in &lt;b&gt;Kernel&lt;/b&gt; productive environment with the latest version.
&lt;br&gt;&lt;br&gt;
&lt;i class=&#34;fa-solid fa-square-check fa-xl&#34; style=&#34;color: #1d9124;&#34;&gt;&lt;/i&gt; &lt;b&gt;2.2.&lt;/b&gt; When correctly published, you can check them in the repository: &lt;a href=&#34;https://github.com/Telefonica/4p-datasets&#34;&gt;4p-datasets&lt;/i&gt;&lt;/a&gt;
&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;

&lt;h3 id=&#34;3-kernel-apps-configuration-to-writeread-datasets&#34;&gt;3. Kernel apps configuration to write/read datasets&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Two &lt;strong&gt;Kernel&lt;/strong&gt; applications (clients) must be created/configured by the &lt;strong&gt;Kernel&lt;/strong&gt; team to allow the use of &lt;strong&gt;Kernel&lt;/strong&gt; resources:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;aura-bot-[&lt;em&gt;environment&lt;/em&gt;]&lt;/strong&gt;: already existing app in &lt;strong&gt;Kernel&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;aura-billing-[&lt;em&gt;environment&lt;/em&gt;]&lt;/strong&gt;: new application&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Specifically, the applications must be configured with concrete scopes that provide permissions to write/read the datasets.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;i class=&#34;fa-solid fa-circle-info fa-xl&#34; style=&#34;color: #3267c3;&#34;&gt;&lt;/i&gt; The obligation to indicate the exact version in the configuration is removed. Therefore, in the following deployments, the version number indicated in the scope will be eliminated. For example, the configuration of the Brazil OB will have to be updated when a new scope change is made. For example: data:Aura_Audit:6:read &amp;mdash;&amp;gt; data:Aura_Audit:read.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&#34;td-card card border me-4&#34;&gt;
&lt;div class=&#34;card-header&#34;&gt;
      &lt;strong&gt;Tasks for OBs&lt;/strong&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        

&lt;i class=&#34;fa-solid fa-square-check fa-xl&#34; style=&#34;color: #1d9124;&#34;&gt;&lt;/i&gt; &lt;b&gt;3.1. Configure aura-bot Kernel application to write datasets&lt;/b&gt;&lt;br&gt;&lt;br&gt;

&lt;i class=&#34;fa-solid fa-circle fa-2xs&#34;&gt;&lt;/i&gt; Ask the &lt;b&gt;Kernel&lt;/b&gt; Team to create a &lt;b&gt;list of scopes&lt;/b&gt; in the &lt;b&gt;aura-bot&lt;/b&gt; application for your intended environment.&lt;br&gt;&lt;br&gt;

    -  admin:datasets:read&lt;br&gt;  
    -  data:read&lt;br&gt;  
    -  data:write&lt;br&gt;  
    -  data:Aura_Audit:read&lt;br&gt;
    -  data:Aura_Audit:write&lt;br&gt;
    -  data:Aura_Gateway_Message:read&lt;br&gt;
    -  data:Aura_Gateway_Message:write&lt;br&gt;
    -  data:D_Aura_App:read&lt;br&gt;
    -  data:D_Aura_App:write&lt;br&gt;
    -  data:D_Aura_Channel:read&lt;br&gt;
    -  data:D_Aura_Channel:write&lt;br&gt;
    -  data:D_Aura_Component:read&lt;br&gt;
    -  data:D_Aura_Component:write&lt;br&gt;
    -  data:D_Aura_Preset:read&lt;br&gt;
    -  data:D_Aura_Preset:write&lt;br&gt;
    -  data:D_Aura_Recognizer:read&lt;br&gt;
    -  data:D_Aura_Recognizer:write&lt;br&gt;
    -  data:D_Aura_Skill:read&lt;br&gt;
    -  data:D_Aura_Skill:write&lt;br&gt;
    -  data:D_Gbl_Brand:read&lt;br&gt;
    -  data:D_Gbl_Contact_Channel:read&lt;br&gt;
    -  data:D_Gbl_Country:read&lt;br&gt;
&lt;i class=&#34;fa-solid fa-circle-info&#34; style=&#34;color: #3267c3;&#34;&gt;&lt;/i&gt; The scopes are associated with a specific version of the dataset, that will increase and vary with time.
&lt;br&gt;&lt;br&gt;

&lt;i class=&#34;fa-solid fa-square-check fa-xl&#34; style=&#34;color: #1d9124;&#34;&gt;&lt;/i&gt; &lt;b&gt;3.2. Create a new app for Aura Billing Module and configure it to write datasets&lt;/b&gt;&lt;br&gt;&lt;br&gt;

&lt;i class=&#34;fa-solid fa-circle fa-2xs&#34;&gt;&lt;/i&gt; Ask the &lt;b&gt;Kernel&lt;/b&gt; Team to create a new application &lt;b&gt;aura-billing&lt;/b&gt; in &lt;b&gt;Kernel&lt;/b&gt; for your intended environment &lt;br&gt;&lt;br&gt;  

&lt;i class=&#34;fa-solid fa-circle fa-2xs&#34;&gt;&lt;/i&gt; Ask the &lt;b&gt;Kernel&lt;/b&gt; Team to create a &lt;b&gt;purpose&lt;/b&gt; for this application. For instance, &lt;i&gt;aura-kpi-data-read-purpose&lt;/i&gt;&lt;br&gt;&lt;br&gt; 

&lt;i class=&#34;fa-solid fa-circle fa-2xs&#34;&gt;&lt;/i&gt; Ask the &lt;b&gt;Kernel&lt;/b&gt; Team to assign to this purpose the following scopes:&lt;br&gt;

    - admin:datasets:read&lt;br&gt;  
    - data:read&lt;br&gt;  
    - data:write&lt;br&gt; 
    - data:Aura_Audit:read&lt;br&gt;
    - data:Aura_Gateway_Message:read&lt;br&gt;
    - data:D_Aura_App:read&lt;br&gt;
    - data:D_Aura_Channel:read&lt;br&gt;
    - data:D_Aura_Component:read&lt;br&gt;
    - data:D_Aura_Preset:read&lt;br&gt;
    - data:D_Aura_Recognizer:read&lt;br&gt;
    - data:D_Aura_Skill:read&lt;br&gt;
    - data:D_Gbl_Brand:read&lt;br&gt;
    - data:D_Gbl_Contact_Channel:read&lt;br&gt;
    - data:D_Gbl_Country:read&lt;br&gt;
&lt;br&gt;

&lt;i class=&#34;fa-solid fa-square-check fa-xl&#34; style=&#34;color: #1d9124;&#34;&gt;&lt;/i&gt; &lt;b&gt;3.3. Access the Kernel applications&lt;/b&gt;&lt;br&gt;&lt;br&gt;  
Once the &lt;b&gt;Kernel&lt;/b&gt; team has created the app with the above-mentioned purposes and scopes, two parameters for securely accessing the app will be provided:&lt;br&gt;
    - &lt;b&gt;client_id&lt;/b&gt;: unique identifier of the consuming app acting as Kernel API client.&lt;br&gt;
    - &lt;b&gt;client_secret&lt;/b&gt;: password.&lt;br&gt;
This allows &lt;b&gt;Kernel&lt;/b&gt; to securely identify, authenticate and authorize any access requested from this app.

&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;

&lt;h3 id=&#34;4-data-processing&#34;&gt;4. Data processing&lt;/h3&gt;
&lt;p&gt;Data processing is executed with &lt;strong&gt;Azure Databricks&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;In this process, the information from the &lt;strong&gt;Kernel&lt;/strong&gt; datasets is recovered and read by the &lt;strong&gt;Aura Billing Module&lt;/strong&gt;, that uses algorithms to assign a unitary cost to each concept that composes the invoice  to calculate the total amount of this invoice.&lt;/p&gt;
&lt;div class=&#34;td-card card border me-4&#34;&gt;
&lt;div class=&#34;card-header&#34;&gt;
      &lt;strong&gt;Tasks for OBs&lt;/strong&gt;
    &lt;/div&gt;
&lt;div class=&#34;card-body&#34;&gt;
    &lt;p class=&#34;card-text&#34;&gt;
        

&lt;i class=&#34;fa-solid fa-square-check fa-xl&#34; style=&#34;color: #1d9124;&#34;&gt;&lt;/i&gt; &lt;b&gt;4.1. Enable Aura components&lt;/b&gt;&lt;br&gt;&lt;br&gt;

&lt;i class=&#34;fa-solid fa-circle fa-2xs&#34;&gt;&lt;/i&gt; Check that  &lt;a href=&#34;../../../../docs/components/kpi-entities/aura-kpis-uploader/kpis-uploader-use/&#34;&gt;Aura KPIs Uploader&lt;/i&gt;&lt;/a&gt;, the component in charge of the management of KPIs entities and KPIs dimensions in Aura, is in use. &lt;br&gt;&lt;br&gt;

&lt;i class=&#34;fa-solid fa-circle fa-2xs&#34;&gt;&lt;/i&gt; Check that &lt;a href=&#34;../../../../docs/components/kpi-entities/aura-databricks-jobs/aura-databricks-jobs-use/&#34;&gt;Aura Databricks Jobs&lt;/i&gt;&lt;/a&gt;, component used to import Avro-formatted files into a Kernel dataset, is enabled in Aura installer. &lt;br&gt;&lt;br&gt;

&lt;i class=&#34;fa-solid fa-circle fa-2xs&#34;&gt;&lt;/i&gt; Configure Azure Common:&lt;br&gt;
      - To avoid data files migrations between releases, KPI files are now stored in an Azure common storage that is not release dependent.&lt;br&gt;
    - The default value of days for KPIs uploading is changed to 30 days. Due to that, the variable &lt;i&gt;fourth_platform.conversations.days_to_find&lt;/i&gt; must be removed from OB deployments, because it will be configured by the installer.
&lt;br&gt;&lt;br&gt;

&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;

&lt;h3 id=&#34;5-data-consumption&#34;&gt;5. Data consumption&lt;/h3&gt;
&lt;p&gt;This step refers to the generation of the &lt;strong&gt;Liceo&lt;/strong&gt; invoices and its storage in &lt;strong&gt;Azure Storage Explorer&lt;/strong&gt; in &lt;code&gt;xlsx&lt;/code&gt; format.&lt;/p&gt;
&lt;p&gt;These invoices will be available for download by the &lt;strong&gt;Aura Global Team&lt;/strong&gt;, to be sent to the OBs.&lt;/p&gt;

      </description>
    </item>
    
  </channel>
</rss>
