- Overview
- The Two Operating Models
- Real-Time Or Event-Level Rating
- Aggregate Rating
- Why Aggregate Rating Exists
- Account And Service Level Aggregation
- Calculation Types
- Sum
- Max
- Mean
- Median
- Last
- Continuous
- Invoicer-Level Aggregation
- Why Invoicer-Level Aggregation Matters
- Aggregate Rating By Invoicer
- Real-Time Vs Batch Rating
- Real-Time
- Batch
- A Practical Way To Think About It
- Business Benefits
- SaaS Example
- Telecom Example
- Infrastructure Example
- When To Use Which Model
- Final Takeaway
Last verified with: 10.8.6.0
Overview #
Advanced Rating & Aggregation in LogiSense Billing gives businesses more control over when usage is priced, how usage is combined before billing, and what quantity is ultimately used to determine the charge.
This matters because not all usage-based pricing models work the same way.
Some models need each usage event rated immediately. Others need the platform to wait until the full billing period is known so it can:
- sum usage,
- identify a peak value,
- apply tier thresholds across the full period,
- or aggregate activity across multiple services or accounts before determining the final charge.
That flexibility is what allows LogiSense Billing to support both straightforward event-based rating and more advanced infrastructure, platform, and hierarchy-based pricing models.
The Two Operating Models #
At a high level, there are two common ways usage pricing works in the platform:
- real-time or event-level rating,
- and aggregate rating with billing-period calculation.
Real-Time Or Event-Level Rating #
In a real-time or event-level model, each usage event is rated as it arrives.
The platform determines:
- which account and service the event belongs to,
- which usage class applies,
- which rate group and rate should be used,
- and what charge amount should be associated with that event.
What this means is:
- pricing is determined record by record,
- charges are available immediately after rating,
- and the model works very well when each event can be priced independently.
This is a strong fit for:
- API calls,
- transaction pricing,
- per-message charging,
- metered events,
- and straightforward usage where each event is simply multiplied by the applicable rate.
Aggregate Rating #
Aggregate rating is used when the final charge should not be determined from one usage event at a time.
Instead, usage is collected and grouped first. The platform then determines the billable quantity for the billing period and calculates the charge later during usage billing.
What this means is:
- the rating stage still identifies the correct rate structure,
- but the final charge amount is deferred,
- because the platform needs to see the full usage picture before it can price accurately.
This is especially important for:
- tiered usage pricing,
- High Watermark pricing,
- usage models based on daily or period-level summaries,
- and hierarchy-wide usage aggregation.
Why Aggregate Rating Exists #
Many advanced usage models depend on the total outcome of the period rather than on any single record.
For example:
- if pricing depends on the total GB used in the month,
- if the bill should be based on the peak measured value,
- or if the total across a whole invoicer hierarchy determines the tier,
then pricing cannot be finalized correctly from one event at a time.
Aggregate rating solves that by separating two activities:
- identify the right pricing structure during rating,
- determine the final billable quantity and charge during usage billing.
Simple Comparison #
Imagine a service has three daily measured values in a billing period:
- Day 1: 10
- Day 2: 20
- Day 3: 15
What this means is:
- Sum would bill 45
- Max would bill 20
- Mean would bill 15
- Median would bill 15
- Last would bill 15
This is why aggregation type matters so much. The same underlying usage can produce very different billing outcomes depending on what the commercial model is trying to capture.
Account And Service Level Aggregation #
The most common aggregate model is aggregation at the account service or usage identifier level.
In this model, the platform groups together usage that belongs to the same priced service context for the billing period. It then applies the configured aggregation logic to determine what quantity should actually be billed.
That grouping can support scenarios such as:
- summing all qualifying usage in the period,
- finding the highest measured value,
- finding the last measured value,
- calculating an average,
- calculating a median,
- or carrying forward a persisted usage state.
What this means is:
- the charge can reflect the whole period rather than one event,
- advanced tiering becomes practical,
- and pricing can better match capacity, state, or threshold-oriented commercial models.
Calculation Types #
When aggregate rating is used, the platform can apply different calculation types to determine the billable usage value for the billing period.
These calculation types are:
- Sum
- Max
- Mean
- Median
- Last
- Continuous
Each one answers a different business question.
Sum #
Sum adds together all qualifying usage values for the billing period.
What this means is:
- the bill reflects total accumulated consumption,
- this is the most familiar aggregate usage model,
- and it is often the right choice when customers should pay for everything they used in the period.
Strong fit:
- data transfer,
- API request totals,
- message counts,
- transaction counts,
- and most standard consumption models.
Example #
If a customer consumes:
- 100 GB on Monday
- 120 GB on Tuesday
- 80 GB on Wednesday
then Sum produces a billable usage quantity of 300 GB.
What this means is:
- every qualifying unit in the billing period contributes to the final bill,
- and this is the right model when the business wants to charge for total consumption.
Max #
Max uses the highest qualifying usage value recorded in the billing period.
What this means is:
- the bill reflects peak demand rather than total accumulated usage,
- and this is the core High Watermark model.
Strong fit:
- peak bandwidth,
- capacity billing,
- infrastructure demand,
- and services where the business cost is driven by the highest level reached.
Example #
If measured daily values are:
- 100 Mbps
- 250 Mbps
- 180 Mbps
then Max produces a billable usage quantity of 250 Mbps.
What this means is:
- the customer is billed on the highest level reached,
- not on the sum of all three measurements.
Mean #
Mean uses the arithmetic average of the qualifying usage values over the billing period.
What this means is:
- the bill is based on average usage rather than total or peak usage,
- and this can be useful when the business wants a smoother representation of usage over time.
Strong fit:
- average demand models,
- monitored infrastructure consumption,
- and some utility or capacity-based scenarios where average usage is more commercially meaningful than a peak.
Example #
If measured daily values are:
- 100
- 250
- 180
then Mean produces a billable usage quantity of 176.67 on average.
What this means is:
- the final bill reflects the average level across the period,
- not just the highest point or the total sum.
Median #
Median uses the middle value from the set of qualifying usage values in the billing period.
What this means is:
- the bill reflects a typical measured value rather than an extreme,
- and it reduces the effect of unusually high or low outlier points.
Strong fit:
- statistical or analytic-style charging models,
- specialized performance-based charging,
- and scenarios where a central tendency matters more than a peak.
Example #
If measured daily values are:
- 100
- 250
- 180
then sorted values become:
- 100
- 180
- 250
and Median produces a billable usage quantity of 180.
What this means is:
- the middle value is what matters,
- which can be useful when the business wants to reduce the effect of short-lived spikes.
Last #
Last uses the most recent qualifying usage value in the billing period.
What this means is:
- the bill reflects where the customer ended the period,
- not the sum of what happened throughout the period,
- and not necessarily the highest point reached.
Strong fit:
- end-of-period provisioned state,
- seat counts at period end,
- final bandwidth level,
- and other “snapshot at close” pricing models.
Example #
If a seat-based service is measured during the month as:
- Week 1: 40 seats
- Week 2: 55 seats
- Week 3: 48 seats
- End of month: 50 seats
then Last produces a billable usage quantity of 50 seats.
What this means is:
- the bill reflects where the customer finished the period,
- even if they were higher or lower earlier in the month.
Continuous #
Continuous carries the last known usage value forward until a new value is received.
What this means is:
- the platform treats the usage value as a persisted state,
- not as a one-time event,
- and missing daily records do not automatically imply zero usage.
Strong fit:
- seat licensing,
- provisioned capacity,
- persistent service state,
- and models where the customer only sends a new record when the quantity changes.
Important behavior:
- Continuous is supported for aggregate rating by usage identifier,
- but not for invoicer-level aggregation.
Example #
If a customer sends seat-count changes like this:
- Day 1: 25 seats
- Day 10: no new record
- Day 15: 30 seats
- Day 20: no new record
then Continuous treats the service as:
- 25 seats from Day 1 until the next change,
- then 30 seats from Day 15 until the next change.
What this means is:
- the platform assumes the state remains in effect until a new value is received,
- which is very different from a model where missing usage would imply zero.
Invoicer-Level Aggregation #
Invoicer-level aggregation extends aggregate rating beyond one service or one account context.
Instead of pricing usage separately per account service or per usage identifier, the platform can aggregate usage across the broader usage invoicer hierarchy before determining the charge.
What this means is:
- usage from multiple child accounts can contribute to one pricing outcome,
- a shared hierarchy can reach a better tier collectively,
- and the final usage charge can be created at the invoicer level rather than on each individual account separately.
This is especially useful when the commercial agreement is negotiated at the parent or billing-relationship level rather than at the individual subaccount level.
Why Invoicer-Level Aggregation Matters #
Without invoicer-level aggregation, customers in a hierarchy may be priced as several smaller accounts even when the commercial agreement expects them to be treated as one combined usage relationship.
That can change pricing outcomes significantly.
For example:
- five child accounts each using 25 TB could be charged as five separate smaller consumers,
- or they could be aggregated as one 125 TB relationship and reach a different tier outcome.
What this means is:
- invoicer aggregation protects the intended commercial structure,
- supports parent-child enterprise billing models,
- and avoids under-realizing the pricing value of combined usage.
Example #
Imagine an invoicer has three child accounts with monthly usage of:
- Child A: 40 TB
- Child B: 35 TB
- Child C: 50 TB
If those accounts are priced separately, each one is evaluated on its own total.
If they are aggregated by invoicer, the usage is treated as one 125 TB relationship.
What this means is:
- the combined hierarchy may qualify for a different tier than the child accounts would have reached individually,
- which can materially change the final billed amount.
Aggregate Rating By Invoicer #
When a usage rate group is configured for both:
- aggregate rating,
- and aggregation by invoicer,
the platform evaluates qualifying usage across the invoicer hierarchy and applies the configured calculation type to that broader total.
Depending on the setup, that can mean:
- summing all hierarchy usage,
- finding the highest hierarchy-wide daily value,
- using the last hierarchy-wide value,
- or applying average or median logic across the hierarchy.
What this means is:
- the billing result reflects the usage relationship of the full invoicer structure,
- not just one service instance in isolation.
Real-Time Vs Batch Rating #
The distinction between real-time and batch is important because customers often use those words to mean different things.
In LogiSense Billing:
- usage can be ingested and rated as records arrive,
- or usage can be processed in larger scheduled batches,
- but aggregate pricing still defers final charge calculation until billing when the period-level outcome matters.
That means there are really two separate questions:
- when does the platform ingest and classify the usage record?
- when does the platform determine the final billable charge?
Real-Time #
Real-time processing is best understood as immediate or near-immediate mediation and rating of incoming usage records.
What this means is:
- the platform can identify ownership, class, rate context, and record-level outcomes quickly,
- visibility into usage can happen soon after the record arrives,
- and this is a strong fit for operational responsiveness.
Strong fit:
- transactional products,
- near-real-time balance or usage visibility,
- and services where event-level rating itself is the final pricing action.
Example #
If a platform charges $0.01 per API call, and a customer sends 1,000 API requests during the day, each request can be rated as it arrives.
What this means is:
- the platform does not need to wait until month-end to know what each event was worth,
- because each event is independently billable.
Batch #
Batch processing is best understood as scheduled or period-based handling of usage, especially where pricing depends on a larger set of records.
What this means is:
- usage may still be mediated and classified promptly,
- but the financial outcome may be calculated later in a scheduled billing stage,
- especially for aggregate, tiered, or hierarchy-dependent pricing models.
Strong fit:
- monthly usage tiers,
- High Watermark billing,
- invoicer-level aggregation,
- and any model where the final answer depends on the full period.
Example #
If a provider uses monthly tiered pricing where the final rate depends on total usage in the period, the platform may wait until the billing run to determine the final charge.
What this means is:
- usage can still be collected and classified throughout the month,
- but the final invoice outcome is not known until the period total is complete.
A Practical Way To Think About It #
The easiest way to explain the difference is:
- real-time answers “what is this record and where does it belong?”
- aggregate billing answers “what should the customer actually be charged once the full period is known?”
That distinction helps customers understand why some usage services can show immediate rated results while still having final billing outcomes determined later.
Business Benefits #
Advanced rating and aggregation provide several important business benefits:
- More pricing accuracy for complex usage models.
- Better support for hierarchy-based and enterprise billing relationships.
- Stronger support for infrastructure and capacity-oriented pricing.
- Better alignment between commercial intent and billing outcomes.
- More reuse of rate structures across different product and account shapes.
Most importantly, it allows the business to choose the rating behavior that matches the economics of the offer instead of forcing every usage model into one flat event-by-event pricing approach.
SaaS Example #
A SaaS platform charges API usage using aggregate tiers at the end of the month.
Why this model works:
- all API calls can be collected through the month,
- the full transaction total determines the tier,
- and the final charge reflects the customer’s true scale for the period rather than the price of isolated calls.
If the same provider also sells seat-based licensing, they could use:
- Last for end-of-month active seat count,
- or Continuous if seat state persists until changed.
Telecom Example #
A telecom provider may:
- use standard summed aggregate pricing for total data usage,
- use High Watermark logic for peak bandwidth services,
- and use invoicer-level aggregation so multiple subaccounts qualify together for better wholesale tier pricing.
Why this model works:
- it separates simple consumption from peak-capacity pricing,
- and it lets the provider price the commercial relationship at the right hierarchy level.
Infrastructure Example #
A network or CDN provider may aggregate measured usage daily and then apply:
- Max to bill the peak value,
- Progressive pricing to that peak-derived billable quantity,
- and invoicer-level aggregation so the hierarchy is treated as one priced relationship.
Why this model works:
- it matches infrastructure economics,
- it supports capacity-oriented contracts,
- and it avoids flattening a sophisticated pricing model into a basic event total.
When To Use Which Model #
| Need | Best fit |
|---|---|
| Price every event independently | Real-time or event-level rating |
| Bill total consumption in the period | Aggregate rating with Sum |
| Bill peak demand | Aggregate rating with Max |
| Bill end-of-period state | Aggregate rating with Last |
| Bill persistent changing state | Aggregate rating with Continuous |
| Bill typical or average measured level | Aggregate rating with Mean or Median |
| Price all children as one usage relationship | Invoicer-level aggregation |
Final Takeaway #
Advanced Rating & Aggregation in LogiSense Billing gives businesses more than one way to turn usage into billable outcomes.
Some pricing models work best when each record is rated immediately. Others require the platform to wait, combine, summarize, or transform usage across a period or across an invoicer hierarchy before the final charge is known.
That flexibility is what makes it possible to support simple metering, complex usage tiers, High Watermark billing, hierarchy-wide pricing, and state-based charging within one platform.
