Get To Know Togai: Changelog August

1. Enhance Your Event Data with Custom Attributes and Dimensions

Event Enrichments in Togai allow you to add new attributes or dimensions to your event data that aren’t part of the original schema. With the power of jsonLogic syntax, you can compute new values and use them for advanced metering.

Understanding the Basics

Event Enrichments involve two key components:

  • Field Type: Decide whether your enrichment should be an attribute or a dimension within the enhanced event schema.
  • Enrichment Type & Value: Choose between a static value or a dynamic, computed value using a custom formula in jsonLogic syntax. This flexibility enables you to craft complex rules, creating new variables that enrich your ingested events.

Handling Dependencies

Dependencies are variables not present in the original event schema. These can either be static or dynamic values drawn from other settings within Togai.

When Should You Use Enrichments?

Enrichments are ideal for offloading custom event transformations to Togai, eliminating the need to build complex logic on your end. However, it's important to note that enrichments apply transformations only at the individual event level, not for aggregated data. For aggregate transformations, leverage the computations available when setting up your usage meters.

For instance, consider a scenario where you need to calculate a performance value based on read and write rates. If both variables are part of the schema, you can create an attribute enrichment that sums the read and write rates to determine the total GBps for performance billing.

2. Reporting in Togai

Togai offers a reporting capability that lets you create reports and report templates. These reports can be generated as one-time downloads or sent to an external data source. You can also set up scheduled reports to be automatically generated on an hourly, daily, or monthly basis and exported or sent to an external data source.

Custom Reporting

You can use Togai’s on-demand reporting template to create drag-and-drop widgets for custom reporting.

Process of Togai’s on-demand reporting template.

3. UI Widgets: Simplify UI Integration

What Are Togai UI Widgets?

Togai UI Widgets are embeddable JavaScript components that allow you to integrate key Togai views, such as metrics, credit transactions, invoices, and more, directly into your web application. These widgets help you display critical data without the need to develop a custom UI from scratch.

Why Use Togai UI Widgets?

When you want to display customer usage or cost metrics, traditionally, you would need to fetch data from Togai's REST API and build a custom UI that also adapts to any API schema updates. With Togai UI Widgets, you simply install the package, import the required view, and configure it to render the UI with minimal setup. This saves time and reduces the complexity of your development process.

How Does It Work?

Togai UI Widgets are framework-agnostic custom elements built using Vue.js. They can be integrated into your application regardless of the framework you use.

Internationalization Support

Togai UI Widgets support internationalization for static texts, number formatting, date formatting, and currency formatting. The default language is en-US, with support for pt-BR as well. Additional languages can be added based on demand.

Subscribe to our newsletter

Enter your email address to get the latest news on Togai. We don't spam

Scalable & reliable billing infrastructure for usage based pricing

Blog →
Expert insights on billing, monetization, and revenue strategies for businesses.
8 Bits →
Home to bytes & bytes & bytes of content about usage-based pricing broken down - to the very last bit.
chevron-down
Togai
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.